Search found 4 matches

by murena
Thu Feb 08, 2018 3:45 pm
Forum: Platform Related Issues
Topic: wxComboBox black panel
Replies: 5
Views: 1864

wxComboBox black panel

Dear all, I'm working on Ubuntu 16 with wxWidgets last issue and c++. i'am facing a little problem with wxComboBox : I can set the background and the foreground color of the items. When I open the widgets and it shows the panel with the list of items, this panel is always dark grey instead of the ba...
by murena
Mon Sep 25, 2017 2:24 pm
Forum: Component Writing
Topic: subclass panel : custom draw and controls
Replies: 6
Views: 7311

Re: subclass panel : custom draw and controls

Hi,
no I am not.
So I have to catch the event in the derived class, and then? Could I catch the event in the derived class and then call prior the superclass method (common to all derived class) ? I will try this.
thank you.
by murena
Mon Sep 25, 2017 8:34 am
Forum: Component Writing
Topic: subclass panel : custom draw and controls
Replies: 6
Views: 7311

Re: subclass panel : custom draw and controls

thank you for your reply. i will try to explain better. For a single panel, how to draw in the render context it is ok. The problem is fired when I try to detect EV_PAINT in a super class. I Have a set of panel, each of them extends a super class custompanel. I would write a piece of generic code fo...
by murena
Fri Sep 15, 2017 1:01 pm
Forum: Component Writing
Topic: subclass panel : custom draw and controls
Replies: 6
Views: 7311

subclass panel : custom draw and controls

Hello to everyone, I have a problem : I want to subclass wxPanel as my template for custom panel. In this derived wxPanel I can add normal controls as wxButton etc but I don't know how to add my custom draws (e.g. a border). In summary, I would mix normal wxControl and custom drawing in a wxPanel. C...