Search found 225 matches
- Mon Feb 22, 2021 11:28 pm
- Forum: C++ Development
- Topic: MDIChildFrames not displaying properly
- Replies: 10
- Views: 248
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_DOWN, wxMou...
- Fri Dec 25, 2020 6:36 pm
- Forum: Open Discussion
- Topic: Why do they switch from wxWidgets?
- Replies: 10
- Views: 6900
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 ...
- 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: 273
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...
- Mon Oct 05, 2020 2:53 pm
- Forum: C++ Development
- Topic: how to get list of time zones
- Replies: 2
- Views: 217
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
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
- Thu Sep 10, 2020 4:25 pm
- Forum: C++ Development
- Topic: wxTextCtrl on wxToolBar
- Replies: 5
- Views: 353
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...
- Wed Sep 09, 2020 6:23 am
- Forum: C++ Development
- Topic: wxTextCtrl on wxToolBar
- Replies: 5
- Views: 353
wxTextCtrl on wxToolBar
Hi Guys, I'm trying to work with a toolbar that has a wxChoice and wxTextCtrl on it. It displays ok, the wxChoice works ok, the edit control too. Apart from the fact that the text control don't seem to handle a TAB key. Which is needed for the wxEVT_KILL_FOCUS to call the wxFocusEventHandler method....
- Wed Aug 26, 2020 11:45 am
- Forum: C++ Development
- Topic: Colour Picker
- Replies: 1
- Views: 138
Colour Picker
Hi, does any of you know how to use the wxColourPickerCtrl with Pantone or RAL ?
thanks,
Nunki
thanks,
Nunki
- Mon Aug 03, 2020 9:58 am
- Forum: C++ Development
- Topic: check box in grid column
- Replies: 12
- Views: 736
Re: check box in grid column
Hi pvn, The first time I used checkboxes in a wxGrid I experienced I had to click twice to check or uncheck the checkbox. The first click was to set the cell in focus, the second to actually select the checkbox control in the cell. However Julian Smart sent me the code to actually make the checkbox ...
- Wed Jul 08, 2020 8:32 pm
- Forum: C++ Development
- Topic: wxTimeSpan
- Replies: 3
- Views: 302
Re: wxTimeSpan
Hi pvn,
It is two days. It would be three days if your second date would be 2020-03-29T23:59:59. But since the time is 00:00:00, the 29th day is 'about to' begin...
tricky hey!
regards,
Nunki
It is two days. It would be three days if your second date would be 2020-03-29T23:59:59. But since the time is 00:00:00, the 29th day is 'about to' begin...
tricky hey!
regards,
Nunki
- Tue Jun 30, 2020 10:02 am
- Forum: C++ Development
- Topic: How can the best output and storage of large amounts of data
- Replies: 3
- Views: 411
Re: How can the best output and storage of large amounts of data
Hi Andy, Working with data in your application, you should always ask yourself what am I going to do with the data besides writing it to a file. Are you going to read it, alter it, search in it. If so you should do the little overhead now to introduce storage into an SQL database. So that for future...
- Tue Jun 02, 2020 8:53 pm
- Forum: C++ Development
- Topic: Main window too large
- Replies: 12
- Views: 932
Re: Main window too large
Hi Quinze, Since you did not include your source, it may be very difficult for us to give you a descent answer. However I use DialogBlocks made by Julian Smart. Which is a good tool to create in a wysiwyg style your frames and dialogs. It also generates C++ code if you like which gives you good stud...
- Tue May 12, 2020 3:32 pm
- Forum: C++ Development
- Topic: Drag and drop
- Replies: 3
- Views: 396
Re: Drag and drop
Hi OneEyeMan, In the meantime I found some similar question from back in 2005. Seemed that wxGrid did not support DnD. Don't know if they support it now. I don't see any event that may be linked like EVT_GRID_BEGIN_DRAG as there is with a treeview. Also it would be a DnD between two different object...
- Tue May 12, 2020 9:34 am
- Forum: C++ Development
- Topic: Drag and drop
- Replies: 3
- Views: 396
Drag and drop
Hi Guys,
I would like to know how to implement the drag and drop feature between a wxGrid (row selection) and a treeview.
with regards,
Nunki
I would like to know how to implement the drag and drop feature between a wxGrid (row selection) and a treeview.
with regards,
Nunki
- Sun May 03, 2020 1:36 pm
- Forum: C++ Development
- Topic: One file - many users (program instances) should write to it
- Replies: 17
- Views: 1178
Re: One file - many users (program instances) should write to it
Hi Wanderer82, I'm pretty sure the first instance who opens the file for writing (CreateFile) will succeed, the second will get a 'locked' error while opening and an invalid file handle. However, reading this post I get the funny feeling you have spent a lot of time searching for a bypass of a commo...
- Thu Apr 30, 2020 10:12 am
- Forum: C++ Development
- Topic: One file - many users (program instances) should write to it
- Replies: 17
- Views: 1178
Re: One file - many users (program instances) should write to it
Best beware for easy solutions, they tend to bite you back in the long run. Go for a real database like Postgresql or MySql, or even MS sqlserver. SQlite is not an option for it too uses 1 datafile and has issues with simultaneous writes as has MS access. It may seem to you as overkill but the desig...