Custom control problem

Carsten A. Arnholm arnholm at offline.no
Sun Jun 24 07:23:48 PDT 2007


Vadim Zeitlin wrote:
> On Sun, 24 Jun 2007 13:03:15 +0200 "Carsten A. Arnholm"
> <arnholm at offline.no> wrote:
>
>> I am trying to make a custom control
>
> I think your problem is due to deriving from wxControl -- this class
> is for native controls and you should just derive from wxWindow or
> wxPanel instead.

:-) Wonderful, that fixed it. Many thanks!

I was slowly beginning to suspect something like this when I saw your reply. 
I have now changed it to derive from wxPanel, and now it works just like I 
had hoped! It just didn't strike me at first that a control can be a panel. 
Learning all the time.

Now I am going to make it more general, i.e. allow for a variable number of 
pins/checkboxes.

Best regards
Carsten A. Arnholm
http://arnholm.org/
N59.776 E10.457 








More information about the wx-users mailing list