Search found 211 matches

by lester
Wed Mar 05, 2008 6:16 am
Forum: C++ Development
Topic: Bug in wxDC?
Replies: 12
Views: 1473

It is only useless if you don't listen and I really don't have time to waste on someone not willing to listen. I see you still haven't posted all the relevant code. Also, it is still not clear whats wrong between the two because they are different images so its kind of hard to compare them for what...
by lester
Wed Mar 05, 2008 5:43 am
Forum: C++ Development
Topic: Bug in wxDC?
Replies: 12
Views: 1473

Then don't cry like one. Since we are all adults an honest and cool critique shouldn't cause offense. Certainly, but I want get answer - is it wxWidgets bug or not and how fix it, please attentively read title, so your advice was useless I cannot post all code - it placed in many files, but there s...
by lester
Wed Mar 05, 2008 4:10 am
Forum: C++ Development
Topic: Bug in wxDC?
Replies: 12
Views: 1473

wxWidgets 2.8.4 Win XP Pro Visual Studio 2005 When I draw some bitmaps on wxMemoryDC ( not all ) result image was wrong - must be white page with data I use wxPrintout for render/print pages, that's part of code for get page preview: m_pPrint->SetPageSizePixels( tSize.x, tSize.y ); wxBitmap t_bmpMin...
by lester
Wed Mar 05, 2008 2:15 am
Forum: C++ Development
Topic: Bug in wxDC?
Replies: 12
Views: 1473

Bug in wxDC?

When I try to draw on wxMemoryDC I have found strange effect with some bitmaps - please see attachments. I use this code for draw picture: double sx, sy; dc->GetUserScale( &sx, &sy ); int wleft = a_aPart[ i ].Rect.GetLeft() * sx; int wtop = a_aPart[ i ].Rect.GetTop() * sy; wtop += y; wxPoint tOrigin...
by lester
Tue Mar 04, 2008 7:04 pm
Forum: C++ Development
Topic: Change depth of wxBitmap
Replies: 3
Views: 704

Big thanks to JimFairway, doublemax, before I have save picture in wxFileConfig by using XPM, for 24 bit it was too large, now I use Base64 and save .png file into config - that's much more better
by lester
Mon Mar 03, 2008 10:36 pm
Forum: C++ Development
Topic: Change depth of wxBitmap
Replies: 3
Views: 704

Change depth of wxBitmap

I need to change depth of picture from 24 to 8 bit( real change - not wxBitmap::SetDepth ), how I can do this?
by lester
Mon Mar 03, 2008 2:19 pm
Forum: C++ Development
Topic: still now can't load image on toolbar
Replies: 19
Views: 3368

Do You use wxInitAllImageHandlers()?
by lester
Mon Mar 03, 2008 10:29 am
Forum: C++ Development
Topic: how to convert from int to wxString
Replies: 6
Views: 851

wxString t_strValue = wxString::Format( _("%d"), t_iValue );
by lester
Sun Feb 24, 2008 11:52 am
Forum: C++ Development
Topic: wxStyledTextCtrl and Ctrl-Enter
Replies: 2
Views: 612

Very very big thanks :)
by lester
Mon Feb 18, 2008 8:11 pm
Forum: C++ Development
Topic: wxStyledTextCtrl and Ctrl-Enter
Replies: 2
Views: 612

wxStyledTextCtrl and Ctrl-Enter

I need to process pressing of Ctrl-Enter into wxStyledTextCtrl, but cannot - after Ctrl-Enter focus move to next control, wxWANTS_CHARS | wxTE_PROCESS_ENTER doesn't work, can anybody help me?
by lester
Tue Sep 11, 2007 4:36 pm
Forum: C++ Development
Topic: How to get wxBitmap from picture handler on Mac?
Replies: 2
Views: 203

I have found one way - add "#define wxMAC_USE_CORE_GRAPHICS 0" to mac/setup.h
by lester
Tue Sep 11, 2007 2:35 pm
Forum: C++ Development
Topic: How to get wxBitmap from picture handler on Mac?
Replies: 2
Views: 203

How to get wxBitmap from picture handler on Mac?

Before I used this code: wxMetafile mf ; mf.SetHMETAFILE((WXHMETAFILE) hPict ) ; tBitmap = new wxBitmap(); tBitmap->Create( mf.GetWidth() , mf.GetHeight() ) ; wxMemoryDC dc ; dc.SelectObject(* tBitmap ) ; mf.Play( &dc ) ; dc.SelectObject( wxNullBitmap ) ; but in 2.8.4 it doesn't work ( return white ...
by lester
Fri Jun 22, 2007 11:38 am
Forum: C++ Development
Topic: wxTipWindow in wxListCtrl crash
Replies: 7
Views: 793

"The window automatically destroys itself when the user clicks on it or it loses the focus." - from wx help
by lester
Thu Jun 21, 2007 1:16 pm
Forum: C++ Development
Topic: Mouse Event IN the button area , Not OUT!!!
Replies: 2
Views: 383

void vsButton::OnLeftUp(wxMouseEvent &event) { if( !m_Enable ) return; if ( HasCapture() ) { ReleaseMouse(); m_Down = false; Refresh(); int w, h; GetSize( &w, &h ); wxRect t_Rect( 0, 0, w, h); if ( t_Rect.Contains(event.GetX(),event.GetY()) && IsEnabled() ) { Update(); wxCommandEvent tEvent( wxEVT_...
by lester
Thu Jun 21, 2007 11:21 am
Forum: C++ Development
Topic: how do I detect the scrollable length of a wxSlider?
Replies: 2
Views: 456

Maybe You can use winapi with wx/msw/private.h or carbon with wx/mac/private.h for get size of slider.

I have found wxRect GetBoundingBox() in wx/msw/slider95.h, maybe it help You, it`s protected so You must use inheritance.