Search found 264 matches

by framepointer
Tue Jun 16, 2009 7:40 am
Forum: C++ Development
Topic: List Event
Replies: 1
Views: 548

You could maybe add a context menu. 2x click events are only generated on list items, so if you want to 2x click on an "empty" space, you would probably need to intercept the mouse event yourself. I don't know if this can be done on all platforms. For example, in wxGTK build you don't have access to...
by framepointer
Wed Jun 10, 2009 6:47 am
Forum: C++ Development
Topic: a problem in wxThread::wait()
Replies: 3
Views: 750

Hi. The problem is thread.Wait(), because it blocks the main thread. I suggest that you use detached threads, and send an event to the main thread when the secondary threads are finished. For example: virtual ExitCode Entry() { //EXEC(wxT("notepad")); system(wxT("notepad")); wxMyCustomEvent oEvent(w...
by framepointer
Tue Jun 02, 2009 6:55 am
Forum: C++ Development
Topic: unicode problem
Replies: 2
Views: 533

unicode problem

Hi. I have a unicode problem with wxMSW. I'm running console applications using CreateProcess() and read the output using pipes. The problem is when I read special characters. For example "é" is read like ",". Also, I would need to reply back the same charater, which under the current circumstances ...
by framepointer
Wed Mar 04, 2009 10:48 am
Forum: C++ Development
Topic: Show Desktop
Replies: 3
Views: 968

Hi.

I think this is a platform/window manager related issue. I don't remember seeing anything related to this topic in the docs.

Regards
by framepointer
Sun Mar 01, 2009 6:33 pm
Forum: C++ Development
Topic: [wxTreeCtrl] ToolTip on items
Replies: 4
Views: 1068

Hi.

The only way is to implement your own popup control and show that one.
I have done something similar, I can post you the code later on if you don't find any other sholution.

Regards
by framepointer
Fri Feb 06, 2009 11:40 pm
Forum: C++ Development
Topic: Event Handling in a different thread?
Replies: 5
Views: 1271

You can try the following: 1. Create a list as a member of the thread. This list should hold pointers to events (of any type, make the list hold pointers of type wxEvent *) 2. Catch the events in the main loop, add a clone (created using Clone() ) to the event list of the thread and skip further pro...
by framepointer
Thu Feb 05, 2009 4:13 pm
Forum: C++ Development
Topic: Event Handling in a different thread?
Replies: 5
Views: 1271

Hi.

Might be possible. Just create a class that inherits wxEvtHandler, and create an instance of this class as a member of the htread, than use wxPostEvent() and post the events to that class.

I'm not sure what the outcome will be, but this is how I would approach this pblem.

Regards
by framepointer
Mon Feb 02, 2009 1:48 pm
Forum: C++ Development
Topic: Maximum file size in Wxfile
Replies: 1
Views: 659

I think this is OS dependent.
AFAIK wxFile is implemented using as little overhead as possible. So if there is a problem I think it resides in the c/c++ library that was used to compile wx.

Regards
by framepointer
Fri Jan 30, 2009 3:57 pm
Forum: C++ Development
Topic: wxZipEntry problem
Replies: 3
Views: 696

Might be a wx related issue. But since I didn't not work with any other zip libraries, I can't tell you if this a normal behavior.

Regards
by framepointer
Fri Jan 30, 2009 10:32 am
Forum: C++ Development
Topic: Change the look of wxListCtrl
Replies: 7
Views: 1329

extreme001 wrote:Ok. thank you guys.

The answer main question "Can i manipulate a wxListCtrl to change the color & size of headers?" Is NO. right?
You're right. AFAIK this cannot be achieved.

Regards
by framepointer
Fri Jan 30, 2009 10:31 am
Forum: C++ Development
Topic: wxZipEntry problem
Replies: 3
Views: 696

Hi. Maybe you're doing nothing wrong :) I suggest that you create folders based on the file name/path. So if a path does no exists, create it, regardless if you get the folder elements first, or a file within those folders. Of course this could slow down your code, but you could save all created/che...
by framepointer
Thu Jan 29, 2009 11:52 am
Forum: C++ Development
Topic: creating directory with spaces in Linux
Replies: 1
Views: 428

Hi.

You have 2 options:
1) Use quotes:
"/home/user/ directory with space"
/home/user/" "directory" "with" "space
2) Escape char
/home/user/\ directory\ with\ space

Note that the above are no the C strings. So for a c code you would have to correctly escape the strings above.

Regards
by framepointer
Wed Jan 28, 2009 8:33 pm
Forum: C++ Development
Topic: Close program correctly in OnInit
Replies: 5
Views: 1107

Hi. Just set the return value to FALSE. bool MyApp::OnInit() { bool bRet = true; //Handler für alle Bildformate Initialisieren ::wxInitAllImageHandlers(); //Programm anzeigen try { MyStartDialog dlg; switch(dlg.ShowModal()) { case 0: { bRet = false; //Beenden }break; case 1: { //Inventur frame = new...
by framepointer
Wed Jan 28, 2009 11:56 am
Forum: C++ Development
Topic: wxSemaphore, wxThread, deleting suspened thread
Replies: 2
Views: 567

Hi.

You can delete it I guess, but still it's not a good idea.
Try to make the thread exit by itself by signalling the sempahore.

The idea is to let threads run with as little outside input as possible.

Also try using TestDestroy() in your code to see if the thread should stop or not.

Regards
by framepointer
Mon Jan 26, 2009 8:54 am
Forum: C++ Development
Topic: wxListBox with Freeze() and Thaw()
Replies: 3
Views: 781

Hi.

You should try this:

Code: Select all

listbox->Hide();
listbox->Freeze();
listbox->Set( items );
listbox->Thaw();
listbox->Show();

Regards