Search found 25 matches
- Mon Jul 15, 2019 6:43 pm
- Forum: C++ Development
- Topic: Change WxPropertyGrid based on button click
- Replies: 9
- Views: 254
- Tue Jul 09, 2019 5:30 pm
- Forum: C++ Development
- Topic: Change WxPropertyGrid based on button click
- Replies: 9
- Views: 254
Re: Change WxPropertyGrid based on button click
I will be adding more properties after but for now just trying to get the colour part to work.
- Tue Jul 09, 2019 3:48 pm
- Forum: C++ Development
- Topic: Change WxPropertyGrid based on button click
- Replies: 9
- Views: 254
Re: Change WxPropertyGrid based on button click
This is the sample I'm working on. So based on the item selected on the listview the property window selected colour changes. wxTreeCtrlFrame::wxTreeCtrlFrame(wxWindow* parent, wxWindowID id) { Create(parent, id, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxDEFAULT_FRAME_STYLE, _T("id")); SetC...
- Tue Jul 09, 2019 2:40 pm
- Forum: C++ Development
- Topic: Change WxPropertyGrid based on button click
- Replies: 9
- Views: 254
Re: Change WxPropertyGrid based on button click
wxPGProperty* pg = grid->Append(new wxColourProperty(wxT("Label Colour"),wxPG_LABEL, wxColour(242, 109, 0))); grid->ChangePropertyValue(pg,new wxColourProperty(wxT("Label Colour"), wxPG_LABEL, wxColour(*wxBLACK))); if I just want to change the colour property can I do it using the change property va...
- Tue Jul 09, 2019 1:33 pm
- Forum: C++ Development
- Topic: Change WxPropertyGrid based on button click
- Replies: 9
- Views: 254
Change WxPropertyGrid based on button click
I have a property window that is going to be controlled from the list. Every item on the list corresponds to the same property window but with different colour and label values. The colour is just going to be the background colour of the item. The only question i have is how do i change a property o...
- Tue Jul 09, 2019 1:26 pm
- Forum: C++ Development
- Topic: Colour List
- Replies: 9
- Views: 337
Re: Colour List
Thank you this was exactly what I was looking for.
- Mon Jul 08, 2019 3:52 pm
- Forum: C++ Development
- Topic: Colour List
- Replies: 9
- Views: 337
Re: Colour List
How do you colour the individual row/column field in wxListCtrl?
- Mon Jul 08, 2019 3:34 pm
- Forum: C++ Development
- Topic: Colour List
- Replies: 9
- Views: 337
Colour List
What widget would be best for having two columns? I want one column to have a label and the other column has the background colour corresponding to the label and every label has a different colour.
- Thu Jul 04, 2019 4:03 pm
- Forum: C++ Development
- Topic: wxTreeListCtrl Adding a Button
- Replies: 2
- Views: 119
Re: wxTreeListCtrl Adding a Button
Thank you so much
- Thu Jul 04, 2019 3:16 pm
- Forum: C++ Development
- Topic: wxTreeListCtrl Adding a Button
- Replies: 2
- Views: 119
wxTreeListCtrl Adding a Button
Hi, The wxTreeListCtrl is working fine by itself on the whole frame. But when i try to add a button or a panel. The tree resizes to the set size and the items added to the tree just disappear. wxTreeCtrlFrame::wxTreeCtrlFrame(wxWindow* parent, wxWindowID id) { Create(parent, id, wxEmptyString, wxDef...