Search found 198 matches

by Nunki
Thu Aug 22, 2019 9:18 am
Forum: C++ Development
Topic: WxComboBox White Dropdown
Replies: 10
Views: 154

Re: WxComboBox White Dropdown

Hi Gillp28, Could it be that you have only three controls on your dialog of which only the combobox gains the input focus. Or where your combobox is the first object in the dialog (when being created). And if the focus is set on the combobox it automatically opens to show the possible choices, of wh...
by Nunki
Sat Jul 27, 2019 10:55 am
Forum: C++ Development
Topic: Combining title bar and menu bar into one (on Windows)?
Replies: 6
Views: 172

Re: Combining title bar and menu bar into one (on Windows)?

Yeah, Like the one-pixel resizer frame on a window. Try to resize your window. 50% chance you have to try 2 or 3 times to get that one-pixel line to resize your window. Especially on UHD displays. It's good that a break pedal in a car is on the exact same spot for every car.... Some things are best ...
by Nunki
Thu Jul 25, 2019 9:15 am
Forum: C++ Development
Topic: wxPanel re-sizing issues
Replies: 7
Views: 198

Re: wxPanel re-sizing issues

Hi widgetMaster696969, For what it's worth. I work with DialogBlocks from anthemion (written by one of the founders of wxWidgets). It's a wysiwyg way of drawing your dialogs and frames. As output you may use the generated C++ source or XRC files (=xml) which you can load and display. Saves you a lot...
by Nunki
Mon Apr 29, 2019 7:22 am
Forum: C++ Development
Topic: determine number of cpu cores
Replies: 9
Views: 342

Re: determine number of cpu cores

Hi Mael15 Performance gain, always a nice one. You start with analysing what you are actual trying to achieve and how you implemented it. Threads are a possibility. You say you read a lot of files. Are there files that you read in several times ? Maybe you can keep them in memory. You say you run th...
by Nunki
Thu Apr 18, 2019 7:28 pm
Forum: C++ Development
Topic: how to hide a complex wxDialog's slow first render?
Replies: 2
Views: 151

Re: how to hide a complex wxDialog's slow first render?

Hi, Maybe some code or a screenshot may help us visualise what your trying to achieve. However I assume you create a window and then create all kinds of widgets on it and at the end call layout for resizing and then in the end calls a show method. You can play with the moment you call show of course...
by Nunki
Thu Apr 18, 2019 7:18 pm
Forum: C++ Development
Topic: Memory data sharing between two applications
Replies: 5
Views: 241

Re: Memory data sharing between two applications

Hi pappilon68, Having two applications exchanging data would be by means of a database like Postgresql. Straightforward, reliable and possible with a minimum of extra work. Performance should normally be sufficient. A plus may also be that this solution works both inside one server as between multip...
by Nunki
Thu Apr 18, 2019 6:56 pm
Forum: Compiler / Linking / IDE Related
Topic: VisualStudio 2017 v15.8.5 (vc141)
Replies: 12
Views: 2107

Re: VisualStudio 2017 v15.8.5 (vc141)

@ryanlee

Apart from wxWidgets I also use the Chilkat library. Turned out one of their headers had to be one of the first included to fix this problem. Later on the guy at Chilkat argued that adding the windows.h header would also have done the trick.

Hope this helps you in some way,
regards,
Nunki
by Nunki
Sun Feb 10, 2019 11:02 am
Forum: C++ Development
Topic: How to manually call button.onClick function
Replies: 11
Views: 412

Re: How to manually call button.onClick function

Hi ValeV, Maybe this reply is a little late, maybe you already have an answer, anyway. The way I understand your question is that when binding your GUI button with a method like onButton1Click(wxCommandEvent& event) this is Ok when the user clicks the button. If, however, you want to call that funct...
by Nunki
Sat Jan 12, 2019 2:13 pm
Forum: C++ Development
Topic: wxFrame maximize bug
Replies: 13
Views: 515

Re: wxFrame maximize bug

Hi Guys, If I may add to the confusion... recently we stumbled upon a similar problem. My application likes to store its position and size in an xml file when closing the application. So I can restart the application restoring the same location and size when you last left the application. That works...
by Nunki
Thu Nov 22, 2018 12:00 pm
Forum: C++ Development
Topic: wxFlexGridSizer and wxDatePickerCtrl
Replies: 10
Views: 649

Re: wxFlexGridSizer and wxDatePickerCtrl

The simplest way is to start with a Horizontal sizer in which you place two vertical sizers. Sorry, but that's a good example what you should not do and why you should use a grid based sizer. If for some reason you wanted the first button to be a little higher, you will have a hard time to align th...
by Nunki
Wed Nov 21, 2018 5:04 pm
Forum: C++ Development
Topic: wxFlexGridSizer and wxDatePickerCtrl
Replies: 10
Views: 649

Re: wxFlexGridSizer and wxDatePickerCtrl

Hi Natu,

The simplest way is to start with a Horizontal sizer in which you place two vertical sizers. See the screenprint from Dialogblocks (Test2)
test2.png
test2.png (76.71 KiB) Viewed 629 times
with regards,
Nunki
by Nunki
Mon Nov 12, 2018 10:52 pm
Forum: C++ Development
Topic: wxTextCtrl vertical text alignment
Replies: 5
Views: 259

Re: wxTextCtrl vertical text alignment

Hi RudolfNinja, Thinking out of the box, and probably with some drawback.. you could add a wxPanel on your frame, with a border and a background the same as a textcontrol. Then add a borderless textctrl to that wxPanel, so optically you could vertically center the textctrl in the wxPanel and being b...
by Nunki
Sun Nov 11, 2018 7:29 pm
Forum: C++ Development
Topic: Printing issues
Replies: 2
Views: 176

Re: Printing issues

Hi raananb, I would think that the issue lies in a different default setting. Unless you make your own settings, defaults are used and they may differ between these two OS'es. Are you using a PDF printerdriver ? Are you using a PDF creation tool ? Maybe the printing example sets such settings and th...
by Nunki
Sun Nov 04, 2018 6:31 pm
Forum: C++ Development
Topic: Hiding a radio button
Replies: 2
Views: 184

Re: Hiding a radio button

Maybe a missing Refresh() or Update() ? to make it all visible ?

regards,
Nunki
by Nunki
Wed Oct 17, 2018 9:52 pm
Forum: C++ Development
Topic: Multiple source files with a GUI
Replies: 2
Views: 212

Re: Multiple source files with a GUI

Hi Markmilleru, I would like to help, but with all respect, you're explanation is quite fuzzy. What is it exactly that you want to achieve ? Is it a typical frame with a menubar, toolbar and statusbar. You choose a menu on which you present a dialog, on which you placed a button ? And you want to ca...