New button on toolbar
Moderator: Moderators
-
- Posts: 72
- Joined: 2004-01-23 14:45
New button on toolbar
How can I add the new button on toolbar??? I have tried to copy it from another button and it works, but DC++ very often freeze. Thanks
There are a number of steps
Add the button to the toolbar bitmaps. (unless you are reusing an old icon)
Edit createToolbar() in mainform.cpp to actually add the button (fairly simple just look at the code)
Add a command_id_handler to mainform.h with the new buttons id and the name of the function its to call
make the function it has to call.
Thats pretty much it. I can't see why it freezes occasionally, does it only freeze when you click the button? if not maybe the button isnt the problem.
Add the button to the toolbar bitmaps. (unless you are reusing an old icon)
Edit createToolbar() in mainform.cpp to actually add the button (fairly simple just look at the code)
Add a command_id_handler to mainform.h with the new buttons id and the name of the function its to call
make the function it has to call.
Thats pretty much it. I can't see why it freezes occasionally, does it only freeze when you click the button? if not maybe the button isnt the problem.
-
- Posts: 72
- Joined: 2004-01-23 14:45
-
- Posts: 72
- Joined: 2004-01-23 14:45
-
- Posts: 72
- Joined: 2004-01-23 14:45