Search found 160 matches

by bigpilot
Mon Nov 21, 2016 3:40 pm
Forum: C++ Development
Topic: wxThread
Replies: 12
Views: 911

Re: wxThread

The best way to deal with UI and threading is to use custom messages.

I'd open the progress dialog in the UI thread and then start a worker thread. Use the custom messages to signal progress (you can send anything back to the UI thread) to the dialog in the UI thread.
by bigpilot
Mon Nov 21, 2016 7:46 am
Forum: C++ Development
Topic: Size specified in XRC file not being honored
Replies: 1
Views: 405

Size specified in XRC file not being honored

I just switched from 2.8 to 3.0 and I noticed that the size I specify in the XRC file is being ignored. I can only get the proper size by programmatically setting it in code.

Anyone know why this was changed?
by bigpilot
Wed Nov 20, 2013 10:26 am
Forum: C++ Development
Topic: XP Theme frame border issues
Replies: 2
Views: 934

Re: XP Theme frame border issues

I think I solved it. I had the border style set to DOUBLE_BORDER and have now changed it to NO_BORDER.
by bigpilot
Wed Nov 20, 2013 9:46 am
Forum: C++ Development
Topic: XP Theme frame border issues
Replies: 2
Views: 934

XP Theme frame border issues

I'm developing an application which looks fine in Windows Classic theme under Windows XP but when I switch to Windows XP Theme the border of the frame begets painting issues. It looks like the border is not properly repainted. I mitigated it somewhat with adding wxWindow::ClearBackground() in the Pa...
by bigpilot
Sat Jul 23, 2011 3:16 pm
Forum: C++ Development
Topic: Transparency of XPM and wxTaskBarIcon
Replies: 3
Views: 1075

Re: Transparency of XPM and wxTaskBarIcon

That should work. I'm using more or less the same code and it works: wxBitmap icon( ProgIcon_xpm ); wxMask* pMask = new wxMask( icon, wxColor( 0, 0, 0 ) ); icon.SetMask( pMask ); wxIcon program_icon; program_icon.CopyFromBitmap( icon ); SetIcon( program_icon ); But note that your bitmap needs to be ...
by bigpilot
Wed Jul 20, 2011 7:25 pm
Forum: C++ Development
Topic: Problem with wxArrayString::Index()
Replies: 5
Views: 1373

Re: Problem with wxArrayString::Index()

You were right. I made an error when receiving from DDE. My code was: bool MainFrame::OnPoke(const wxString& topic, const wxString& item, wxChar* data, int size, wxIPCFormat format) { wxLogDebug( wxT("MainFrame::OnPoke() %d"), wxGetProcessId() ); if ( topic == wxT("ARGS") ) { if ( item == wxT("ARGV"...
by bigpilot
Wed Jul 20, 2011 6:55 pm
Forum: C++ Development
Topic: Problem with wxArrayString::Index()
Replies: 5
Views: 1373

Re: Problem with wxArrayString::Find

It now reports that the size s1 is 31 bytes and the size of s2 is 64 bytes, even though they are identical. And which would be the correct size? I'm using a Unicode build of 2.8.12. I'm receiving the file paths through DDE from another instance of the program. It looks like it's storing one string ...
by bigpilot
Wed Jul 20, 2011 6:54 pm
Forum: C++ Development
Topic: Problem with wxArrayString::Index()
Replies: 5
Views: 1373

Re: Problem with wxArrayString::Index()

The length of 31 is correct. I'm wondeing about this code: #define STRING(p) ((wxString *)(&(p))) In combination with for( size_t ui = 0; ui < m_nCount; ui++ ) { if( STRING(m_pItems[ui])->IsSameAs(sz, bCase) ) return ui; And with the knowledge that m_pItems is of type wxChar**. The STRING macro take...
by bigpilot
Wed Jul 20, 2011 4:26 pm
Forum: C++ Development
Topic: Report bugs on http://trac.wxwidgets.org/
Replies: 17
Views: 24938

Re: Report bugs on http://trac.wxwidgets.org/

Is there a list for feature requests as well?
by bigpilot
Wed Jul 20, 2011 3:45 pm
Forum: C++ Development
Topic: Problem with wxArrayString::Index()
Replies: 5
Views: 1373

Problem with wxArrayString::Index()

I'm storing file paths in a wxArrayString to check whether I've previously loaded a file. If not, I add the filepath to the wxArrayString. However, when I check with wxArrayString::Index() whehter a string is in the array, it always returns wxNOT_FOUND even when it's in the array. Debugging the wxWi...
by bigpilot
Tue Mar 15, 2011 10:32 am
Forum: C++ Development
Topic: reentrancy problem in DDE
Replies: 4
Views: 2201

I had exactly the same problem. I solved it in this thread:

http://forums.wxwidgets.org/viewtopic.p ... highlight=
by bigpilot
Mon Mar 14, 2011 10:33 am
Forum: General Forum Issues
Topic: Forums Site Performance
Replies: 14
Views: 9438

I would like the complain that the site performance is again intermittent and poor. Sometimes the site simply fails to respond, other times it's very slow to respond.
by bigpilot
Mon Mar 14, 2011 10:31 am
Forum: C++ Development
Topic: Problem with command line parameters
Replies: 1
Views: 507

I solved it by contactenating the command line arguments and trying with wxFileName::FileExists() to see if the file exists. If it's valid I add it to the files to be opened.
by bigpilot
Sat Mar 12, 2011 2:02 pm
Forum: C++ Development
Topic: Problem with command line parameters
Replies: 1
Views: 507

Problem with command line parameters

I've made a text editor and I'm having problems getting it to work with the command line file being passed to it. My code looks like this: MainFrame* pMainFrame = new MainFrame( NULL ); wxArrayString arrFilePaths; if ( this->argc > 1 ) { for (int i = 1; i < this->argc; i++) { wxString strPath = this...
by bigpilot
Sat Mar 12, 2011 1:12 pm
Forum: C++ Development
Topic: Determining the maximum font size for text display
Replies: 3
Views: 848

I have solved this by simply removing one character at a time and then measuring the width of the text using wxDC::GetTextExtent() until the width is sufficiently small.