Search found 235 matches

by Nunki
Wed Mar 25, 2020 10:25 am
Forum: C++ Development
Topic: [Solved] problem with socket program for p2p
Replies: 45
Views: 6896

Re: problem with socket program for p2p

Hi Marco, I think it would be wise to do some reading on sockets and how to build a client-server. Luckily sockets is quite standard on all platforms so you could start with the following book: UNIX Network Programming Networking APIs: Sockets and XTI Volume 1 by W. Richard Stevens This will help yo...
by Nunki
Fri Feb 21, 2020 12:12 pm
Forum: C++ Development
Topic: How to know if a wxFrame is beeing closed by a user
Replies: 11
Views: 1452

Re: How to know if a wxFrame is beeing closed by a user

Hi,
Maybe not the nicest way and maybe I'm looking at it too simple. When your application closes the frame itself, set a global boolean flag bAutoClosed to true. Then you can at any time after closing a frame, determine whether a user closed the frame or your program did.

regards,
Nunki
by Nunki
Fri Feb 21, 2020 10:10 am
Forum: C++ Development
Topic: How to change language at runtime
Replies: 8
Views: 1603

Re: How to change language at runtime

Hi,

You could, instead of creating the whole dialog with several wx statements, create XRC files and simply load them and display them. Then you can layout them while designing them with your wysiwig tool. Saves you a lot of coding.

with regards,
Nunki
by Nunki
Wed Jan 08, 2020 10:18 am
Forum: C++ Development
Topic: Proposal for 64-bit (row count) wxGridTableBase
Replies: 6
Views: 841

Re: Proposal for 64-bit (row count) wxGridTableBase

Hi,

First question that pops into mind is: will it be a workable situation ? I would guess that filling the grid with so many rows would take up a lot of time. Users may not like the long wait.

regards,
Nunki
by Nunki
Thu Dec 12, 2019 1:47 pm
Forum: C++ Development
Topic: Creating an empty Grid stops the Application with an assert
Replies: 19
Views: 2340

Re: Creating an empty Grid stops the Application with an assert

Rocrail,
If I'm not mistaken you create a grid with no columns no rows. So adding data in cells will cause this kind of assert. "invalid column index"

You probably have to add columns and rows, before you can fill cells.

Hope this helps you out,

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

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

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

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

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

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

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

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

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

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

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