New button on toolbar
Moderator: Moderators
-
Big Muscle
- Posts: 72
- Joined: 2004-01-23 19: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 
-
Twink
- Posts: 436
- Joined: 2003-04-01 04:31
- Location: New Zealand
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.
-
Big Muscle
- Posts: 72
- Joined: 2004-01-23 19:45
-
Big Muscle
- Posts: 72
- Joined: 2004-01-23 19:45
-
Big Muscle
- Posts: 72
- Joined: 2004-01-23 19:45
Who is online
Users browsing this forum: Google [Bot] and 0 guests