Search found 125 matches
- Sat Jun 05, 2010 3:41 pm
- Forum: C++ Development
- Topic: Embeed images into exe but free the memory afterwards
- Replies: 4
- Views: 1361
No matter how you embed the image data in your executable, you'll never be able to free the memory. In your case with base64 encoding in a string literal, it would use even more memory. If I define the string literals on the heap as global, and later on I delete them, doesn't this frees the memory?...
- Sat Jun 05, 2010 10:14 am
- Forum: C++ Development
- Topic: wxDialog with NULL parent does not take focus
- Replies: 5
- Views: 2116
Re: wxDialog with NULL parent does not take focus
dialog->SetFocus right after dialog->ShowModal should be fine enough.maxinuruguay wrote:However, although ShowModal makes the dialog pop up, the focus remains on the application the user was currently using before my program interrupted.
- Sat Jun 05, 2010 10:06 am
- Forum: C++ Development
- Topic: Embeed images into exe but free the memory afterwards
- Replies: 4
- Views: 1361
Embeed images into exe but free the memory afterwards
The example at http://wiki.wxwidgets.org/Embedding_PNG_Images doesn't allow you to free the memory used by the char array that represent the image. I tried this code to achieve that: wxArrayString * Base64Images = new wxArrayString(); Base64Images->Add(wxT("base64 of the binary file goes here&q...
- Mon Mar 08, 2010 1:50 pm
- Forum: C++ Development
- Topic: wxFrame blocked by modal dialog called into another wxFrame
- Replies: 8
- Views: 2596
The major problem here is the handling of the return code. ShowModal() waits until the dialog is closed and returns a value, Show() does not. If the return code of the dialog is needed, this must be simulated by posting a message to the parent, for example in the dialog dtor. The main reason I need...
- Mon Mar 08, 2010 10:39 am
- Forum: C++ Development
- Topic: wxFrame blocked by modal dialog called into another wxFrame
- Replies: 8
- Views: 2596
So you have 2 frames, and and 3rd dialog that you want to only cover the frame that launched it? If so, try putting the dialog in a 3rd frame, and set wxFRAME_FLOAT_ON_PARENT If I understood you well you propose to create a hidden frame as a child of the second frame, and use the hidden frame as a ...
- Mon Mar 01, 2010 1:47 pm
- Forum: C++ Development
- Topic: wxFrame blocked by modal dialog called into another wxFrame
- Replies: 8
- Views: 2596
- Mon Mar 01, 2010 1:24 pm
- Forum: C++ Development
- Topic: wxFrame blocked by modal dialog called into another wxFrame
- Replies: 8
- Views: 2596
wxFrame blocked by modal dialog called into another wxFrame
I have one main wxFrame and another frame created with null parent. When I call modal dialog into the second frame the main frame is blocked for user input as well. I don't know how to avoid the main frame being blocked in such case. Thanks in advance.
- Mon Mar 01, 2010 9:09 am
- Forum: C++ Development
- Topic: wxExecute on MS Vista
- Replies: 4
- Views: 2431
Re: wxExecute on MS Vista
Is it that the main application should also run with admin privileges in order to wxExecute another app that too requires admin privileges? Yes if you start it directly in wxExecute. To make UAC popup and ask for approval try this: wxExecute(wxT("cmd /C \"")+FullPathAndFileName+wxT(&...
- Sun Oct 18, 2009 5:18 pm
- Forum: C++ Development
- Topic: Error received while using wxListBox->clear API
- Replies: 7
- Views: 1758
Re: Error received while using wxListBox->clear API
Call ListControl->Clear(); only if the list is not empty.
Till you find the right cause.
Till you find the right cause.
- Sun Oct 18, 2009 4:04 pm
- Forum: C++ Development
- Topic: wxListBox blocked on SetSelection, or Clear
- Replies: 1
- Views: 732
- Fri Oct 16, 2009 11:07 am
- Forum: C++ Development
- Topic: wxTaskBarIcon: Can't exit application if dialog is shown
- Replies: 4
- Views: 1327
- Wed Oct 14, 2009 11:01 am
- Forum: C++ Development
- Topic: wxTaskBarIcon: Can't exit application if dialog is shown
- Replies: 4
- Views: 1327
- Tue Oct 13, 2009 12:20 pm
- Forum: C++ Development
- Topic: wxTaskBarIcon: Can't exit application if dialog is shown
- Replies: 4
- Views: 1327
wxTaskBarIcon: Can't exit application if dialog is shown
Hi,
When a modal dialog is shown in my application one cannot destroy the application using the taskbar menu command. To double check the issue I modified the wxTaskBarIcon Sample to show a wxMessageBox on the Dialog, the problem still occurs.
The source is attached.
Thanks,
Chris
When a modal dialog is shown in my application one cannot destroy the application using the taskbar menu command. To double check the issue I modified the wxTaskBarIcon Sample to show a wxMessageBox on the Dialog, the problem still occurs.
The source is attached.
Thanks,
Chris
- Tue Jun 30, 2009 2:12 am
- Forum: C++ Development
- Topic: Trouble animating bitmaps with a timer
- Replies: 6
- Views: 1465
- Tue Jun 30, 2009 1:05 am
- Forum: C++ Development
- Topic: Text to speech?
- Replies: 1
- Views: 773