Search found 2168 matches

by evstevemd
Thu Jun 13, 2019 12:31 pm
Forum: C++ Development
Topic: Change instance of other frame
Replies: 5
Views: 79

Re: Change instance of other frame

class MyDialog: public wxDiaog { public: MyDialog(MyFrame *parent): wxDalog(parent....){} void ShowLalala(){ MyFrame *frame = dynamic_cast<MyFrame*>(GetParent()); if(frame) frame->SetMyText("Lalalalaaaa"); } }; //then MyFrame class MyFrame : public wxFrame { public: MyFrame(wxWindow* parent): wxFra...
by evstevemd
Thu Jun 13, 2019 12:19 pm
Forum: C++ Development
Topic: wxStaticLine resizing
Replies: 14
Views: 167

Re: wxStaticLine resizing

It's unfortunate that you have to go that way. But if you come back to it make a very minima example, handwritten that one can test on their machine. That way you get real help quickly. We lack time to take the whole thing and make it work.

Again, sorry :oops:
by evstevemd
Wed Jun 12, 2019 10:57 am
Forum: C++ Development
Topic: [wxMSW][wx3.0.3] wxRichTextCtrl, wxColorPickerCtrl and wxUpdateUIEvent
Replies: 7
Views: 84

Re: [wxMSW][wx3.0.3] wxRichTextCtrl, wxColorPickerCtrl and wxUpdateUIEvent

Great that you solved it. Just to help making things clear, wxSTC is more of code editing component while wxRTC like its name says, is more of document editing components. Each have its strength and weakness, so choose carefully!
by evstevemd
Tue Jun 11, 2019 8:13 pm
Forum: C++ Development
Topic: Show/Hide window in wxAuiManager
Replies: 13
Views: 134

Re: Show/Hide window in wxAuiManager

you're wrong in idea. because there are troubles ONLY if window was hidden in manager by user during session, ...so hiding function must save the window's panel info in a map - "pointer->string". and showing function must find the saved value in the map, and restore the panel size. that's how i wil...
by evstevemd
Tue Jun 11, 2019 5:29 pm
Forum: C++ Development
Topic: Show/Hide window in wxAuiManager
Replies: 13
Views: 134

Re: Show/Hide window in wxAuiManager

after line fm.AddPane(fw,lpi); Save the settings. It's not hard. Here is a simple non-working code for just explaining what am saying in your app let say OnInit you add wxFileConfig *conf = new wxFileConfig("", "", "/path/to/config/config.ini"); wxConfigBase::Set(conf); then you can use it, for exam...
by evstevemd
Tue Jun 11, 2019 4:58 pm
Forum: C++ Development
Topic: Show/Hide window in wxAuiManager
Replies: 13
Views: 134

Re: Show/Hide window in wxAuiManager

it's not "just load". In generic way i need a map (panel names/panel pointers) -> saved data. then if i want to show hidden panel, i need to find saved data by panel pointer, and restore it's size. it's ideologically wrong imho. would you a like a windows-looking interface, if hidden window restore...
by evstevemd
Tue Jun 11, 2019 4:35 pm
Forum: C++ Development
Topic: Show/Hide window in wxAuiManager
Replies: 13
Views: 134

Re: Show/Hide window in wxAuiManager

Hi, my idea is very simple. face of my programm - it's wxAuiManager with different panes. Sometime user wants to hide a pane, if he does not need it. he presses a cross sign, and hides. but to restore the window - there is a menu - show this panel, show that panel, etc. he presses menu item, and i c...
by evstevemd
Tue Jun 11, 2019 4:00 pm
Forum: C++ Development
Topic: Show/Hide window in wxAuiManager
Replies: 13
Views: 134

Re: Show/Hide window in wxAuiManager

BTW I have checked again your code and I see you are using wxWindow to get the pane. You can get pane by its name. Make sure you set name to pane info before adding towith AddPane. Then you can use that name to search it wxTextCtrl* text1 = new wxTextCtrl(this, -1); wxTextCtrl* text2 = new wxTextCtr...
by evstevemd
Tue Jun 11, 2019 3:54 pm
Forum: C++ Development
Topic: Show/Hide window in wxAuiManager
Replies: 13
Views: 134

Re: Show/Hide window in wxAuiManager

strange, that it's not default behavior. what else could user prefer than show the window with last its size? Not really if you understand what AUI thing was designed to do. Once you get used to it, its far accurate in restoring and you can have different "persectives" each with its own layout. to ...
by evstevemd
Tue Jun 11, 2019 2:52 pm
Forum: C++ Development
Topic: [wxMSW][wx3.0.3] wxRichTextCtrl, wxColorPickerCtrl and wxUpdateUIEvent
Replies: 7
Views: 84

Re: [wxMSW][wx3.0.3] wxRichTextCtrl, wxColorPickerCtrl and wxUpdateUIEvent

Hi, I now understand what you means and code works as it should. The only thing I see is you have misunderstood what SetDefaultStyle is. Docs makes it clear : To use the styles you can either call SetDefaultStyle() before inserting the text or call SetStyle() later to change the style of the text al...
by evstevemd
Tue Jun 11, 2019 12:26 pm
Forum: C++ Development
Topic: Show/Hide window in wxAuiManager
Replies: 13
Views: 134

Re: Show/Hide window in wxAuiManager

You will need to save size information and restore them
See Save and Load methods to save and load correct size et al
by evstevemd
Tue Jun 11, 2019 12:23 pm
Forum: C++ Development
Topic: [wxMSW][wx3.0.3] wxRichTextCtrl, wxColorPickerCtrl and wxUpdateUIEvent
Replies: 7
Views: 84

Re: [wxMSW][wx3.0.3] wxRichTextCtrl, wxColorPickerCtrl and wxUpdateUIEvent

That is what you have. Now tell us what you want to do and the actual problem!
by evstevemd
Tue Jun 11, 2019 12:12 pm
Forum: C++ Development
Topic: wxStaticLine resizing
Replies: 14
Views: 167

Re: wxStaticLine resizing

Can you try to *Not* expanding the line, just to see how it behaves? FlexGridSizer1->Add(StaticLine1, 0, wxALL|wxEXPAND, 5); to FlexGridSizer1->Add(StaticLine1, 0, wxALL, 5); also can you add wxSHAPED to sizer, that is FlexGridSizer1->Add(StaticLine1, 0, wxALL|wxSHAPED, 5); and FlexGridSizer1->Add(S...
by evstevemd
Mon Jun 10, 2019 9:04 am
Forum: C++ Development
Topic: FilterEvent: How-to correctly forward the event?
Replies: 4
Views: 89

Re: FilterEvent: How-to correctly forward the event?

@ Mick P. you would get a better help when you explain what exactly you want to do than try to do X as is done in Y toolkit. Some things are just done differently and there comes the beauty of diversity. Else you will keep disagreeing with Wx decisions all the way to the end of the app you are writi...
by evstevemd
Sun Jun 09, 2019 7:31 pm
Forum: Announcements and Discoveries
Topic: wxCustomControls
Replies: 3
Views: 846

Re: wxCustomControls

The wxCustomControls are currently independent, i.e. you can run and build them without the CodeLite sources I don't think I will merge them into CodeLite in the forseen future. That is good News! Same as Notebook - you can build it without the need of CodeLite sources. Some features are enabled wh...