Search found 223 matches

by DenDev
Mon Nov 02, 2015 7:28 pm
Forum: C++ Development
Topic: EVT_LISTBOX_DCLICK generating an event without clientData.
Replies: 2
Views: 450

Re: EVT_LISTBOX_DCLICK generating an event without clientData.

The client data and client object is from the event handler / control firing the event (set with ListBox->SetClientData(void*) and ListBox->SetClientObject(wxObject*)) and not for the item selected. You must retreive the items data in the event handler with ListBox->GetClientData(event.GetSelection(...
by DenDev
Fri Oct 30, 2015 2:22 pm
Forum: C++ Development
Topic: Debuging is non correct
Replies: 7
Views: 508

Re: Debuging is non correct

Stackoverflows are related to code that excessively invokes itself: void Stackoverflow() { Stackoverflow(); } When you call Stackoverflow() it will call itself, which again will call itself and this will continue until a stackoverflow exception is raised. You could also achieve this with an event ha...
by DenDev
Tue Oct 27, 2015 8:38 pm
Forum: C++ Development
Topic: wxTreeCtrl - Slow Initial Loading
Replies: 6
Views: 729

Re: wxTreeCtrl - Slow Initial Loading

The usual drill is to create only the root nodes and every node that has sub nodes gets a sub node with a "magic label" (either empty, og some program specific thingy). When a node is then expanded you check the sub nodes for only one node with the "magic label" - if it exists, you delete it and add...
by DenDev
Tue Oct 27, 2015 8:12 pm
Forum: C++ Development
Topic: wxTreeCtrl - Slow Initial Loading
Replies: 6
Views: 729

Re: wxTreeCtrl - Slow Initial Loading

Have you tried tree->Freeze() before you start to create the tree and tree->Thaw() when you are done? Ideally you should create code that only creates sub-nodes on demand.
by DenDev
Tue Oct 27, 2015 7:21 pm
Forum: C++ Development
Topic: Known issues with multi threading and wxSocketClient?
Replies: 1
Views: 348

Known issues with multi threading and wxSocketClient?

I'm facing some odd behaviour with the wxSocketClient (block|waitall) when used in a wxThread, a bit like this: https://forums.wxwidgets.org/viewtopic.php?f=1&t=40703&p=164527 The wxClientSocket is used to send HTTP request(s) and most of the time it works nicely. But every now and then the wxSocket...
by DenDev
Tue Oct 27, 2015 7:06 pm
Forum: Compiler / Linking / IDE Related
Topic: Build problem, possible bug in makefile..
Replies: 2
Views: 582

Re: Build problem, possible bug in makefile..

Nice to know, you might want to document this in the compile guide. I found out that running the make command 2-3 times would eventually end with a successful make :-)
by DenDev
Tue Oct 27, 2015 11:08 am
Forum: Compiler / Linking / IDE Related
Topic: Build problem, possible bug in makefile..
Replies: 2
Views: 582

Build problem, possible bug in makefile..

When I try to build the newest wxWidgets it fails because it cannot find the include "wx/setup.h". In the console I can see that the setup.h has to be copied with the lines: if not exist ..\..\lib\gcc_lib\mswu mkdir ..\..\lib\gcc_lib\mswu if not exist ..\..\lib\gcc_lib\mswu\wx\setup.h copy ..\..\inc...
by DenDev
Sat Oct 03, 2015 6:30 pm
Forum: C++ Development
Topic: GTK/Linux: Floating frame on modal dialog not working?
Replies: 2
Views: 477

Re: GTK/Linux: Floating frame on modal dialog not working?

I've poked around in this and found out that in Linux modal dialogs does not allow other frames to gain input focus. Only sollution to this is to change the frame to a dialog and show it in modal state - sad but true.
by DenDev
Sat Oct 03, 2015 11:39 am
Forum: C++ Development
Topic: GTK/Linux: Floating frame on modal dialog not working?
Replies: 2
Views: 477

Re: GTK/Linux: Floating frame on modal dialog not working?

I'd really like some feedback on this so I've attached a small sample that illustrates the problem. It is a Code::Blocks project and the popup does not work in Linux - but it works in Windows. The sample is pre-compiled in Debian Wheezy and I've not included PCH to limit the size.
by DenDev
Fri Oct 02, 2015 5:54 pm
Forum: C++ Development
Topic: GTK/Linux: Floating frame on modal dialog not working?
Replies: 2
Views: 477

GTK/Linux: Floating frame on modal dialog not working?

I have a frame/dialog that holds a lot of different widgets and the frame is displayed using ShowModal(). The dialog is parent to another frame created with the style wxFRAME_FLOAT_ON_PARENT which holds some "popup widgets" that can be displayed by clicking a wxHyperlinkCtrl. In windows this works r...
by DenDev
Fri Oct 02, 2015 2:19 pm
Forum: C++ Development
Topic: Should you call Wait on a wxThreadHelper joinable thread that has stopped
Replies: 8
Views: 1528

Re: Should you call Wait on a wxThreadHelper joinable thread that has stopped

Incase of JOINABLE threads inside wxThreadHelper "its released" only in wxThreadHelper destructor. So as long as the wxThreadHelper object is alive calling Wait should be always valid. No, the thread is only valid after a successful call to CreateThread(). wxThreadHelper is used to manage the lifec...
by DenDev
Fri Oct 02, 2015 10:47 am
Forum: C++ Development
Topic: Should you call Wait on a wxThreadHelper joinable thread that has stopped
Replies: 8
Views: 1528

Re: Should you call Wait on a wxThreadHelper joinable thread that has stopped

1) You should not call the Wait() function if the thread has already been released. Before you call the Wait() function you must check that the wait operation is valid or you might get into trouble. 2) You can of course reuse the thread helper as many times as you require. But you cannot start it (w...
by DenDev
Wed Sep 30, 2015 6:13 pm
Forum: C++ Development
Topic: Should you call Wait on a wxThreadHelper joinable thread that has stopped
Replies: 8
Views: 1528

Re: Should you call Wait on a wxThreadHelper joinable thread that has stopped

Where du you call GetThread()->Wait()? If you do this in the threads own context (in the Entry() function) it will fail (exception) or cause you program to hang since it will wait for itself to finish (indefinite loop). The Wait() function must always be called outside the threads context (by the th...
by DenDev
Fri Sep 04, 2015 5:24 pm
Forum: C++ Development
Topic: UNICODE character codes
Replies: 3
Views: 392

Re: UNICODE character codes

The character 29 (0x1D) is known as the group separator: http://unicode-table.com/en/
by DenDev
Sat Aug 29, 2015 5:13 pm
Forum: C++ Development
Topic: Get Hard Disk Serial Number or Processor ID
Replies: 15
Views: 5064

Re: Get Hard Disk Serial Number or Processor ID

eranon wrote:I agree with this ! This thread is not mine, DenDev
LOL.. My bad, thawt it was ;-)