Search found 2171 matches

by evstevemd
Fri Jun 21, 2019 7:10 am
Forum: Compiler / Linking / IDE Related
Topic: New to wxSmith Few Questions.
Replies: 2
Views: 67

Re: New to wxSmith Few Questions.

DanielA wrote:
Wed Jun 19, 2019 4:21 pm
where exactly do I enter source code from other classmates that they have written.
Sounds like you need to learn C::B first. As with any IDE, you will need to include those files as part of the project
by evstevemd
Thu Jun 20, 2019 6:28 am
Forum: General Development
Topic: WxWidgets?
Replies: 12
Views: 159

Re: WxWidgets?

Second, the plugins can supply a number of different features to the main interface, including UI components whose appearance, features, and functionality are defined using text (XML and possibly other formats) and optionally code. 1. Check wxXRC 2. On Plugins check this thread Qt also supplies mul...
by evstevemd
Mon Jun 17, 2019 8:46 am
Forum: Database Related
Topic: wxDatabase and .accdb files
Replies: 3
Views: 149

Re: wxDatabase and .accdb files

Hi Kerry, I'll answer my own question: It turns out I was having a bitness issue - I was compiling a 32-bit application but only had 64-bit ODBC drivers installed on my system. There were some tricks to get it working, but Jon Raiford's answer here was helpful: https://social.technet.microsoft.com/F...
by evstevemd
Thu Jun 13, 2019 12:31 pm
Forum: C++ Development
Topic: Change instance of other frame
Replies: 5
Views: 104

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: 199

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: 108

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: 164

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: 164

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: 164

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: 164

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: 164

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: 164

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: 108

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: 164

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: 108

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!