[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [paragui-users] changes to PG_Button
From: |
Alexander Pipelka |
Subject: |
Re: [paragui-users] changes to PG_Button |
Date: |
Sat, 25 Jan 2003 17:29:31 +0100 |
User-agent: |
KMail/1.5 |
Ok. It's in CVS.
Thanks Keith.
Just as suggestion: output from "diff" or "cvs diff" would be a bit easier to
handle :))
Alex
PS: Please check if i merged your code the right way.
Am Donnerstag, 23. Januar 2003 19:09 schrieb Keith Swyer:
> i think a few changes to the PG_Button class are in need. they are very
> small and deal with the button being in toggle mode. in the eventEnter and
> eventLeave and the eventButtonup there are a few changes to make the
> buttons work a little nicer.
>
> eventMouseButtonUp .... last lines
>
> if(!IsMouseInside()) {
> my_state = BTN_STATE_NORMAL;
> ReleaseCapture();
> Update();
> return false;
> } else {
> ** if(!my_internaldata->togglemode)
> my_state = BTN_STATE_HIGH;
> }
>
> eventMouseEnter
> **if (!(my_internaldata->togglemode&&my_internaldata->isPressed))
> my_state = BTN_STATE_HIGH;
>
> eventMouseLeave
> if(my_state == BTN_STATE_HIGH) {
> ** (my_internaldata->togglemode&&my_internaldata->isPressed)?my_state =
> BTN_STATE_PRESSED:my_state = BTN_STATE_NORMAL;
>
> }
>
>
>
>
>
> _______________________________________________
> paragui-users mailing list
> address@hidden
> http://mail.nongnu.org/mailman/listinfo/paragui-users