Search found 200 matches

by Nunki
Tue Nov 19, 2019 11:55 am
Forum: C++ Development
Topic: Loading an XRC panel resource into existing panel
Replies: 2
Views: 72

Re: Loading an XRC panel resource into existing panel

Hi John, Have you read the compact yet very good documentation on using XRC files https://docs.wxwidgets.org/3.0/overview_xrc.html I think your problem lies in the use of XRCCTRL (which is a macro by the way) on a fresh allocated frame and thus has no objects to refer to. So your dataholder will be ...
by Nunki
Mon Oct 14, 2019 6:28 am
Forum: C++ Development
Topic: hide MDI child menubar icon and window menu?
Replies: 1
Views: 163

Re: hide MDI child menubar icon and window menu?

Hi Shadowblitz16 I'm not sure about the icon, but the window menu is appended automatically. Simply because it's part of using MDI I guess. As you may see in the screenshot. That menu is used to give you the ability to order your open windows, arrange icons and for the system to add entries for ever...
by Nunki
Thu Aug 22, 2019 9:18 am
Forum: C++ Development
Topic: WxComboBox White Dropdown
Replies: 10
Views: 200

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

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

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

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

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

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

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

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

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

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

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 646 times
with regards,
Nunki
by Nunki
Mon Nov 12, 2018 10:52 pm
Forum: C++ Development
Topic: wxTextCtrl vertical text alignment
Replies: 5
Views: 298

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

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...