|
-
Jun 12th, 2002, 10:35 AM
#1
Thread Starter
Frenzied Member
well..
button_resize is called only when the picturebox resized, and once first time in the init procedure (only once!) so, theres no frequently recall of that sub..
doubleclick.. yes, this thread exactly about that, i see and i know ive fired this event, but im never wanted! i'm want to use only the mousedown event, but when ive a double click, that will stoles the handle from the mouse down event, and i cant display a pressed button without this event...
I also noticed the mousemove event, this event is redrawing the button when the mouse is over it. Do you need the program to continuously redraw the button as a user moves the mouse over your form?
yes, as you can see the code isnt complete yet. its needed to redraw only if the button was pressed previously .. i'll fix that, but not that my problem yet 
anyway, as you can see too, the drawbutton is a complete handle of the drawing, if you send a 0 code to this sub, then it will just display a normal-state button, if you send 1 it will draws a pressed button, or 2 then draws a disabled button.. or if you send the code 255, it just redraws the last known state (usefull when you changes the buttons caption only!)
Jim.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|