Search found 211 matches

by lester
Fri Mar 13, 2009 5:51 am
Forum: C++ Development
Topic: How to change wxRadioBox labels colors
Replies: 12
Views: 4253

Maybe just use wxStaticBoxSizer + wxRadioButtons? is there no way to do it with wxRadioBox? src/msw/radiobox.cpp .... m_radioButtons = new wxSubwindows(n); m_radioWidth = new int[n]; m_radioHeight = new int[n]; for ( int i = 0; i < n; i++ ) { m_radioWidth[i] = m_radioHeight[i] = wxDefaultCoord; lon...
by lester
Thu Mar 12, 2009 10:48 pm
Forum: C++ Development
Topic: How to change wxRadioBox labels colors
Replies: 12
Views: 4253

Maybe just use wxStaticBoxSizer + wxRadioButtons?
by lester
Thu Mar 12, 2009 10:48 pm
Forum: C++ Development
Topic: How to change wxRadioBox labels colors
Replies: 12
Views: 4253

krishnaprasad wrote:What OS you are using ? On Mac AFAIK you cant change the native look and feel.
On Mac You can use carbon for access many unavailable from wxWidgets properties
by lester
Tue Mar 10, 2009 10:17 pm
Forum: C++ Development
Topic: STC
Replies: 1
Views: 767

mpTextEditor->MarkerDefineBitmap( 1, wxBitmap( ledred_xpm ) );
...
mpTextEditor->MarkerAdd( line, 1 );
by lester
Tue Mar 10, 2009 1:07 pm
Forum: C++ Development
Topic: Please help me with this
Replies: 2
Views: 921

Seems Text() == NULL, so maybe when wxWidgets call IsAcceptedKey( analog of StartingKey in 2.8.9? ) - here none created widget yet
by lester
Tue Mar 10, 2009 10:18 am
Forum: C++ Development
Topic: Problems with showing two wxFrame objects
Replies: 2
Views: 859

Or maybe wxTheApp->SetTopWindow( frame1 ); ?
by lester
Tue Mar 10, 2009 9:13 am
Forum: C++ Development
Topic: Invalid DC for DoGetTextExtent
Replies: 2
Views: 1274

wxBitmap bmp( 1, 1 );
wxMemoryDC memdc( bmp );

?
by lester
Tue Mar 10, 2009 9:10 am
Forum: C++ Development
Topic: Question about Grid (again :D)
Replies: 2
Views: 926

maybe grid->doPopupMenu(event.GetPosition());( and MyGrid* grid = (MyGrid*)window->GetParent(); ) instead of doPopupMenu(event.GetPosition());?
by lester
Mon Mar 09, 2009 11:47 am
Forum: C++ Development
Topic: wxChar to utf8 char
Replies: 1
Views: 866

Solution for me: /**********************************************************************************************/ int UtfToUniChar( char *str, int* chPtr ) { int byte = *((unsigned char *) str); if( byte < 0xC0 ) { *chPtr = (int) byte; return 1; } else if( byte < 0xE0 ) { if( ( str[ 1 ] & 0xC0 )...
by lester
Mon Mar 09, 2009 9:36 am
Forum: C++ Development
Topic: question about Grid
Replies: 2
Views: 1011

wxWindow* gridWindow = grid->GetGridWindow(); gridWindow->Connect( wxEVT_RIGHT_DOWN, wxMouseEventHandler( MyGrid::OnWhiteRightDown ) ); ... /**********************************************************************************************/ // User click on white space ( or cell - we must check it ) vo...
by lester
Mon Mar 09, 2009 9:33 am
Forum: C++ Development
Topic: wxChar to utf8 char
Replies: 1
Views: 866

wxChar to utf8 char

Please help, how to convert wxChar to character in UTF8( int )?
by lester
Sat Feb 28, 2009 5:20 pm
Forum: C++ Development
Topic: wxImage to RGBA
Replies: 2
Views: 1449

Big thanks for replay, Yes - that's simple and working solution, maybe I will cannot find faster
by lester
Sat Feb 28, 2009 4:51 pm
Forum: C++ Development
Topic: wxImage to RGBA
Replies: 2
Views: 1449

wxImage to RGBA

wxImage::GetData return data in RGB format and wxImage::GetAlpha return alpha, please help - how to fast mix it to RGBA?
by lester
Sat Aug 16, 2008 8:14 pm
Forum: wxWidgets Development (Russian)
Topic: Необходима помощь в выборе RAD or/and
Replies: 8
Views: 3766

советую DialogBlocks
by lester
Mon Aug 11, 2008 9:05 am
Forum: C++ Development
Topic: Why my wxListCtrl style is different from the sample?
Replies: 3
Views: 1525

Your are probably missing the Windows XP style... From the wiki: If project uses a resource (.rc), add the line: #define wxUSE_NO_MANIFEST 1 - i.e. the 'text' sample .rc file will look like this: mondrian ICON "mondrian.ico" #define wxUSE_NO_MANIFEST 1 #include "wx/msw/wx.rc" Op...