Search found 211 matches

by lester
Tue May 08, 2007 11:07 am
Forum: C++ Development
Topic: what is wrong in the code
Replies: 6
Views: 610

you can use ::wxStartTimer() and wxGetElapsedTime( false ) inside your loop
by lester
Tue May 08, 2007 10:38 am
Forum: C++ Development
Topic: Wxtimer Examples
Replies: 2
Views: 1400

#ifndef _vsButtonDrag_H_ #define _vsButtonDrag_H_ // For compilers that support precompilation, includes "wx/wx.h". #include <wx/wxprec.h> ... //---------------------------------------------------------------------------- // vsButtonDrag //-----------------------------------------------------------...
by lester
Tue May 08, 2007 10:25 am
Forum: C++ Development
Topic: XPM from wxBitmap
Replies: 3
Views: 455

also I have found solution in src/common/imagxpm.cpp

sorry for spam :)
by lester
Tue May 08, 2007 10:22 am
Forum: C++ Development
Topic: XPM from wxBitmap
Replies: 3
Views: 455

ok, I found temporary solution: /******************************************************************************************/ wxString wxBitmapToXPM( wxBitmap* a_pBitmap, wxString a_strName ) { wxString t_strResult; wxString t_strFile = ::wxGetTempFileName( _("xpm") ); a_pBitmap->SaveFile( t_strFile,...
by lester
Tue May 08, 2007 9:39 am
Forum: C++ Development
Topic: XPM from wxBitmap
Replies: 3
Views: 455

XPM from wxBitmap

I need to generate XPM string from wxBitmap
by lester
Sat Apr 28, 2007 5:35 pm
Forum: C++ Development
Topic: Fit wxTextCtrl to content?
Replies: 3
Views: 870

that's only example with bug :) try that for( size_t i = 0 ; i < t_strValue.Len() ; ++i ) { ch = t_strValue.GetChar( i ); if( ch == '\n' ) { GetTextExtent( t_strLine, &x, &y, NULL, NULL, &tFont ); t_strLine = _(""); width = wxMax( width, x ); height += y + 1; } else { t_strLine += ch; } } if( t_strL...
by lester
Sat Apr 28, 2007 4:20 pm
Forum: C++ Development
Topic: why the type HANDLE hardly be seen in wxWidgets?
Replies: 1
Views: 303

I use that on mac for remove shadow for window, for example: ... #ifdef __WXMAC__ #include "wx/mac/private.h" class vsMyDragFrame : public wxFrame { public: vsMyDragFrame( wxWindow *parent, wxWindowID id, wxString title, const wxPoint& pos, const wxSize& size, long style ) : wxFrame( parent, id, tit...
by lester
Sat Apr 28, 2007 4:14 pm
Forum: C++ Development
Topic: Fit wxTextCtrl to content?
Replies: 3
Views: 870

something like this wxSize myTextCtrl::MyGetBestSize( void ) { int x = 0, y = 0, width = 0, height = 0; wxChar ch; wxFont tFont = GetFont(); wxString t_strLine; wxString t_strValue = GetValue(); for( size_t i = 0 ; i < t_strValue.Len() ; ++i ) { ch = t_strValue.GetChar( i ); if( ch == '\n' ) { GetTe...
by lester
Sat Mar 31, 2007 7:43 am
Forum: C++ Development
Topic: wxScreenDC doesn`t work on mac?
Replies: 6
Views: 852

no - there is bug of wxWidgets, because wxSplitterWindow and wxAui use wxScreenDC for draw - but I don`t see highlight by wxAui for docking and sash when change sash position by mouse in wxSplitterWindow I try execute simple code: wxScreenDC tDC; tDC.SetBrush( *wxBLACK ); tDC.DrawRectangle( 1, 1, 60...
by lester
Fri Mar 30, 2007 7:51 am
Forum: C++ Development
Topic: wxScreenDC doesn`t work on mac?
Replies: 6
Views: 852

For me wxScreenDC not work at all - also in wxSplitterWindow and wxAui
by lester
Tue Mar 27, 2007 5:45 am
Forum: C++ Development
Topic: wxScreenDC doesn`t work on mac?
Replies: 6
Views: 852

wxScreenDC doesn`t work on mac?

I try paint on screen with wxScreenDC, on win32 all work fine, but not on mac, can you help me, please. I use wx2.8.0.
And second question - I make panel that moved by mouse on parent, on win32 it work fast, on mac - it so slowly... How I can make it faster?
by lester
Wed Feb 14, 2007 10:19 pm
Forum: Announcements and Discoveries
Topic: The road towards wxIFM2 - now on sourceforge!
Replies: 12
Views: 4073

Where I can find last version of wxIFM2 that`s builded like IFM1.05 with vc projects and without boost, or please write how to build wxIFM2
by lester
Tue Feb 13, 2007 12:53 pm
Forum: Announcements and Discoveries
Topic: The road towards wxIFM2 - now on sourceforge!
Replies: 12
Views: 4073

I have try wxIFM - it`s great!!! But I understand that work on it has been stopped? :(
by lester
Fri Jan 12, 2007 8:28 pm
Forum: C++ Development
Topic: wxTipWindow
Replies: 0
Views: 302

wxTipWindow

Hi, All!
I want create tooltip with picture.
How make derivered class from wxTipWindow that can paint on m_view?
I can make it public, but I don't want to change wx source.
Maybe it is meaningful to create public interface to this window in next versions of wx?
by lester
Thu Dec 21, 2006 6:22 pm
Forum: Platform Related Issues
Topic: wxThread - why my code don`t work on mac?
Replies: 2
Views: 586

Thanks, i try