Search found 211 matches

by lester
Tue Apr 22, 2008 9:26 am
Forum: C++ Development
Topic: How to get the weekday name?
Replies: 2
Views: 878

wxDateTime::Format( _T("%A") )
by lester
Sat Apr 19, 2008 9:09 am
Forum: C++ Development
Topic: wxAuiSimpleTabArt
Replies: 2
Views: 864

I have copy class wxAuiSimpleTabArt to new two files, rename it, change and include in my project
by lester
Sat Apr 19, 2008 9:03 am
Forum: C++ Development
Topic: wxAuiSimpleTabArt
Replies: 2
Views: 864

wxColour cl = wxSystemSettings::GetColour( wxSYS_COLOUR_3DFACE );

mpNotebook->GetAuiManager().GetArtProvider()->SetColour( wxAUI_DOCKART_BORDER_COLOUR, cl );
mpNotebook->GetAuiManager().GetArtProvider()->SetColour( wxAUI_DOCKART_SASH_COLOUR, cl );
by lester
Thu Apr 03, 2008 9:37 am
Forum: C++ Development
Topic: wxPdfDocument crash with image
Replies: 14
Views: 1563

In my version of wxPdf exist /** * Puts an image in the page * The image is given by an wxImage-Object * \param name Name of the image to be used as an identifier for this image object. * \param image wxImage object which will be embedded as PNG * \param x Abscissa of the upper-left corner. * \param...
by lester
Thu Apr 03, 2008 7:46 am
Forum: C++ Development
Topic: wxPdfDocument crash with image
Replies: 14
Views: 1563

Re: wxPdfDocument crash with image

I'm trying the code samples that come with the library, but every sample with a row like this crash. Image(_T("wxpdfdoc.png"),10,8,28); Any idea? I read some very old post, is it a library bug? I use: m_pDocument->Image( _T(""), bmp.ConvertToImage(), x, y ); and this work for me, so You can try loa...
by lester
Thu Apr 03, 2008 12:04 am
Forum: C++ Development
Topic: How do I save the contents of a wxListBox to a text file?
Replies: 9
Views: 1285

You right - I have miss that
by lester
Wed Apr 02, 2008 10:00 pm
Forum: C++ Development
Topic: How do I save the contents of a wxListBox to a text file?
Replies: 9
Views: 1285

ArKay wrote:file.Create(const wxString& strFile) should be used for creation instead of Open().
for wxFile, wxFFile but not wxTextFile
by lester
Wed Apr 02, 2008 8:45 pm
Forum: C++ Development
Topic: Draw polygon with transparency
Replies: 3
Views: 832

Code: Select all

	wxPoint points[6];
	border_points[0] = wxPoint( 0, 0 );
	...

	// draw tab outline
	dc.SetPen( *wxBLACK );
	dc.SetBrush(*wxTRANSPARENT_BRUSH);
	dc.DrawPolygon(WXSIZEOF(points), points);
by lester
Wed Apr 02, 2008 8:39 pm
Forum: C++ Development
Topic: How do I save the contents of a wxListBox to a text file?
Replies: 9
Views: 1285

#include <wx/textfile.h>
by lester
Wed Apr 02, 2008 7:20 pm
Forum: C++ Development
Topic: How do I save the contents of a wxListBox to a text file?
Replies: 9
Views: 1285

Code: Select all

wxArrayString list = ListBox1->GetStrings();
wxTextFile file( _T("gen_avs.bat") );
file.Open();

size_t count = list.Count();
for( size_t i = 0 ; i < count ; ++i )
    file.AddLine( list[ i ] );

file.Write();
file.close();
by lester
Wed Apr 02, 2008 9:01 am
Forum: C++ Development
Topic: EVT_LIST_COL_CLICK and Connect
Replies: 4
Views: 745

wxEVT_COMMAND_LIST_COL_CLICK ?
by lester
Wed Apr 02, 2008 8:13 am
Forum: C++ Development
Topic: EVT_LIST_COL_CLICK and Connect
Replies: 4
Views: 745

Re: EVT_LIST_COL_CLICK and Connect

bojkar wrote:Hello. Can I use EVT_LIST_COL_CLICK with Connect not event table?

Code: Select all

m_listCtrl->Connect( wxEVT_LIST_COL_CLICK, wxListEventHandler( CMyClass:OnList ), NULL, this);
This isn't work.

Please help.
try without NULL, this
by lester
Tue Apr 01, 2008 6:09 am
Forum: C++ Development
Topic: How do you read in values from a file
Replies: 3
Views: 779

wxFFile?
by lester
Sat Mar 29, 2008 12:19 pm
Forum: C++ Development
Topic: drawline produces broken lines
Replies: 21
Views: 3326

Some code with sample can be very useful for me