Search found 235 matches

by Nunki
Sun Dec 11, 2022 7:16 pm
Forum: Compiler / Linking / IDE Related
Topic: unreachable code
Replies: 5
Views: 3293

Re: unreachable code

Hi Oneeyeman,

I'll keep that in mind the next time.

grtz.
Nunki
by Nunki
Sun Dec 11, 2022 7:06 pm
Forum: Compiler / Linking / IDE Related
Topic: unreachable code
Replies: 5
Views: 3293

Re: unreachable code

Hi Doublemax,

You were right I had still some settings deep down in my toolkit that referred to the 3.1 libraries.
Thanks for helping me

Have a good evening, (in Europe it's evening :-) )
Nunki
by Nunki
Sun Dec 11, 2022 6:49 pm
Forum: Compiler / Linking / IDE Related
Topic: unreachable code
Replies: 5
Views: 3293

Re: unreachable code

Hi Doublemax, I found my message to be moved to this forum. If I follow your suggestion to First include the headers of wx and then the standard C++ headers I get a lot of compilation errors. // Wx Toolkit Headers #include "wx/wx.h" #include "wx/aui/framemanager.h" #include "...
by Nunki
Sun Dec 11, 2022 3:30 pm
Forum: Compiler / Linking / IDE Related
Topic: unreachable code
Replies: 5
Views: 3293

unreachable code

Hi Guys, My application compiles and works well with wxWidgets 3.1.4. However I tried to upgrade to 3.2.1. Compiling went well except for now for no special reason he needed the inclusion of the WinSock2 header file. That went ok so now I have an new executable. Starting the application I get the fo...
by Nunki
Mon May 16, 2022 7:33 pm
Forum: C++ Development
Topic: Print Dialog does not display
Replies: 4
Views: 350

Re: Print Dialog does not display

I use code like this hPrnDlg = new wxPrintDialog(rApp.pMainWindow,&this->PrnData); if (hPrnDlg->ShowModal() == wxID_OK) { this->hPrnDev = static_cast<wxPrinterDC *>(hPrnDlg->GetPrintDC()); } This is what you use when the user needs to choose the printer. If you already know the printer's name yo...
by Nunki
Mon May 16, 2022 7:24 pm
Forum: C++ Development
Topic: How to enable wxTAB_TRAVERSAL on wxStdDialogButtonSizer buttons?
Replies: 10
Views: 428

Re: How to enable wxTAB_TRAVERSAL on wxStdDialogButtonSizer buttons?

Did you put the widgets straight on the panel or did you put a sizer first and added the widgets on the sizer ?

I experienced that TAB traversal worked with adding a sizer first.

with regards,
Nunki
by Nunki
Mon May 16, 2022 7:19 pm
Forum: C++ Development
Topic: What is this widget called ??
Replies: 6
Views: 486

Re: What is this widget called ??

Well it could be a static line with colour white and a width of, say 20 px. You could also start with a vertical sizer and add a panel with background white and a second panel with a grey background colour. Put on that panel an horizontal sizer with a space and two buttons. Set the space to stretch ...
by Nunki
Sun Apr 24, 2022 8:32 pm
Forum: C++ Development
Topic: MDI
Replies: 23
Views: 2022

Re: MDI

@doublemax In MDI the childwindows are not really limited to the parent window view. Once they go out of the viewport of the parent, that part becomes unvisible, but it enlarges your desktop. So at that point the horizontal/vertical sliders should appear. The whole idea of MDI was to have an applica...
by Nunki
Sun Apr 24, 2022 8:28 pm
Forum: C++ Development
Topic: MDI
Replies: 23
Views: 2022

Re: MDI

Hi ikhsoft,

Is this you are looking for

Image

Indeed with wxMDIParentFrame and wxMDIChildFrame.
by Nunki
Mon May 31, 2021 7:22 pm
Forum: Open Discussion
Topic: Documentation
Replies: 2
Views: 9628

Documentation

I'm wondering since the online documentation of wxWidgets (3.0) covers version 3.0.5, how are we to know what changes have been made in 3.1.5 ? More precisely the changes regarding wxGrid I'm curious about. Are there added functions to the API ?
by Nunki
Mon Feb 22, 2021 11:28 pm
Forum: C++ Development
Topic: MDIChildFrames not displaying properly
Replies: 10
Views: 976

Re: MDIChildFrames not displaying properly

I usually add a ConnectEvents method to my classes where I use the Bind method like the example below. void tcAbout::ConnectEvents(void) { wxPanel *hPnl; hPnl = XRCCTRL(*this, "ABOUT_IMG", wxPanel); hPnl->Bind(wxEVT_PAINT,wxPaintEventHandler(tcAbout::OnPaint),this); hPnl->Bind(wxEVT_LEFT_D...
by Nunki
Fri Dec 25, 2020 6:36 pm
Forum: Open Discussion
Topic: Why do they switch from wxWidgets?
Replies: 10
Views: 25380

Re: Why do they switch from wxWidgets?

Since I use both wxWidgets and Postgresql, PGadmin was my tool for administrative tasks. However such type of tool is best a desktop tool for many reasons. It was a pity that the development group did not query the community of PGadmin users on their plan to change this C++ desktop application to a ...
by Nunki
Wed Oct 14, 2020 8:02 pm
Forum: C++ Development
Topic: How to centre ( and fill ) text in wxRect using a dynamic font size
Replies: 2
Views: 1029

Re: How to centre ( and fill ) text in wxRect using a dynamic font size

Hi Katuday, I have attached the GraphTools module of my toolbox (7zip format). Maybe not the best code around but it might give you an insight and set you on the way to your solution. The methods are for displaying text in any fontsize, aligned left, right, centered, with an angle if needed. Also wi...
by Nunki
Mon Oct 05, 2020 2:53 pm
Forum: C++ Development
Topic: how to get list of time zones
Replies: 2
Views: 529

Re: how to get list of time zones

Hi CuteCode,

Why don't you copy paste the data from that Wikipedia page into a std::map<wxString,int> either hardcoded in a class or from a database table ?

with regards,
Nunki
by Nunki
Thu Sep 10, 2020 4:25 pm
Forum: C++ Development
Topic: wxTextCtrl on wxToolBar
Replies: 5
Views: 1023

Re: wxTextCtrl on wxToolBar

Hi OneEyeMan, I would expect with a TAB that the next control of the toolbar would be activated. Since there are two controls, that it would jump to the wxChoice. But that is not important. More important is that the edit control would get a Lost Focus event and that the OnTBedit method is called so...