|
|
 | | From: | Mariusz | | Subject: | creating new control ... | | Date: | Wed, 19 Jan 2005 21:32:43 +0100 |
|
|
 | Hello, I'm trying to create new control from wxTextCtrl. I'v declared that I want to process OnPaint Event. In Event handler I'm drawing some example circles, but there seems to be one "problem". I don't want wxTextCtrl to launch it's own OnPaint mechanism. How can I prevent base class from drawing anything on screen?
Second thing - I realized that I can paint on entire screen - not only in area that belong to my control but on entire screen. I guess I'm doing something wrong. How can I check actual position and size of component?
Sorry for such a questions but I'm rather new to wxWidgets.
I tried to take a look at samples but haven't found similiar situation.
I would be very gratefull for any clue.
-- Regard Mariusz
wxWidgets 2.4.2 Win XP, VS 2003 NET
|
|
 | | From: | Mariusz | | Subject: | Re: creating new control ... | | Date: | Fri, 21 Jan 2005 09:24:51 +0100 |
|
|
 | Any ideas? -- Regards Mariusz
Użytkownik "Mariusz" napisał w wiadomości news:41eec3ed$1@news.home.net.pl... > Hello, > I'm trying to create new control from wxTextCtrl. I'v declared that I want > to process OnPaint Event. In Event handler I'm drawing some example > circles, > but there seems to be one "problem". I don't want wxTextCtrl to launch > it's > own OnPaint mechanism. How can I prevent base class from drawing anything > on > screen? > > Second thing - I realized that I can paint on entire screen - not only in > area that belong to my control but on entire screen. I guess I'm doing > something wrong. How can I check actual position and size of component? > > Sorry for such a questions but I'm rather new to wxWidgets. > > I tried to take a look at samples but haven't found similiar situation. > > I would be very gratefull for any clue. > > -- > Regard > Mariusz > > wxWidgets 2.4.2 > Win XP, VS 2003 NET > >
|
|
|