BitmapButton

Springer Christophe <[email protected]> Fri, 18 Mar 2005 13:49:57 +0100
Newsgroups gmane.comp.lib.wxwindows.wxnet
Organization Ouane
Message-ID <[email protected]>
Hello everybody,

I've a question about the class BitmapButton :
Is there a simple way to do two statements bitmapbutton ?

I have write this :

public int state = 0;
.......
......
BitmapButton but = (BitmapButton) FindWindowById(2,this);
        if (state == 0)
        {
            but.Label = test001WdrClass.MyBitmapsFunc(1);
            state = 1;
        }
        else if (state == 1)
        {
            but.Label = test001WdrClass.MyBitmapsFunc(0);
            state =0;
        }
       
But my probleme is that the button doesn't change after mouseup.

Thank you by advance and excuse me for my bad english i'm french.

*******************
Christophe SPRINGER
www.ouane.com
*******************
cspringer.vcf (text/x-vcard, 156 B)
begin:vcard
fn:Christophe Springer
n:Springer;Christophe
email;internet:[email protected]
tel;work:0870441065
x-mozilla-html:FALSE
version:2.1
end:vcard