Search found 211 matches

by lester
Sat Aug 09, 2008 7:37 am
Forum: C++ Development
Topic: wxHTML creating doubt
Replies: 3
Views: 546

Code: Select all

#include "HTMLTeste.h"

HTMLTeste::HTMLTeste(wxWindow *parent, -1, wxDefaultPosition, wxDefaultSize, wxHW_DEFAULT_STYLE, _("htmlWindow"))
:
    wxHtmlWindow( parent, -1 )
{

}

HTMLTeste::~HTMLTeste()
{

}
by lester
Fri Aug 08, 2008 2:05 pm
Forum: C++ Development
Topic: Problems with the selection of ListCtrl Elements on Mac
Replies: 1
Views: 377

Re: Problems with the selection of ListCtrl Elements on Mac

Hi, I tried to convert a Win32 application to macintosh. The application allows to select multiple entries of a list-control and it works fine. On Windows. The Mac versions doesn't allow to do it. It seems, that there is no mouseclick response, because also the change of a columnsizes by mouse is n...
by lester
Wed Aug 06, 2008 7:24 pm
Forum: C++ Development
Topic: Disabling wxListCtrl items
Replies: 2
Views: 477

Re: Disabling wxListCtrl items

kshitij_ds wrote:Hi All,

Is it possible to disable items in a list control?
Also is it possible to underline first word of every item in the list? I tried doing that using &Text where &T will underline just the letter 'T' but that doesn't seem to work.

Thanks,
Maybe for this better use wxGrid
by lester
Mon Aug 04, 2008 3:52 pm
Forum: C++ Development
Topic: change wizard page programatically
Replies: 5
Views: 639

1. Something like: wxCommandEvent event( wxEVT_BUTTON ); event.SetId( wxID_FORWARD ); wizard->ProcessEvent( event ); 2. From wizard.h: // show the prev/next page, but call TransferDataFromWindow on the current // page first and return false without changing the page if // TransferDataFromWindow() re...
by lester
Mon Aug 04, 2008 3:39 pm
Forum: C++ Development
Topic: wxFileConfig : can't read values...
Replies: 8
Views: 1219

TrV wrote:This one doesn't work at all : it does not even create the file (which file ? no name is given...)

The main problem is not about writing values, but retrieving them from file... The "default" (if () {...}) section works (the one executed when the file does not exist).
OS?
by lester
Mon Aug 04, 2008 1:59 pm
Forum: C++ Development
Topic: wxFileConfig : can't read values...
Replies: 8
Views: 1219

KUConfig = new wxFileConfig("MyApp"); if( KUConfig->GetNumberOfGroups() == 0 && KUConfig->GetNumberOfEntries() == 0 ) { KUConfig->Write("/Update/LastServerId", lastServerId); KUConfig->Write("/Update/LastUpdateTime", lastUpdateTime); KUConfig->Flush(); } else { wxString tmp; tmp.Printf("%d", KUConf...
by lester
Mon Aug 04, 2008 1:05 pm
Forum: C++ Development
Topic: wxFileConfig : can't read values...
Replies: 8
Views: 1219

this->KUConfig = new wxFileConfig("config.ini");

wxString tmp;
tmp.Printf("%d", this->KUConfig->GetNumberOfGroups());
wxMessageBox(tmp); // results: 0

long truc = this->KUConfig->Read("/Update/LastServerId", -1);
tmp.Printf("%d", truc);
wxMessageBox(tmp); // result: -1

try this ;)
by lester
Mon Aug 04, 2008 12:04 pm
Forum: C++ Development
Topic: wxFrame in wxThread
Replies: 16
Views: 3317

Maybe add interface I_Frame?
by lester
Mon Aug 04, 2008 7:53 am
Forum: C++ Development
Topic: progress window for a time-consuming algorithm
Replies: 3
Views: 969

Re: progress window for a time-consuming algorithm

try:

Code: Select all

gauge->Refresh( false );
wxSafeYield();
P.S. I use threads without any problems
by lester
Mon Aug 04, 2008 6:20 am
Forum: C++ Development
Topic: How to block frame resizing and maximizing?
Replies: 3
Views: 521

Maybe just use this style in constructor - wxMINIMIZE_BOX | wxSYSTEM_MENU | wxCAPTION | wxCLOSE_BOX | wxCLIP_CHILDREN ?
by lester
Sun Aug 03, 2008 11:15 am
Forum: C++ Development
Topic: Substring extration using REGEX
Replies: 1
Views: 577

better use

wxArrayString lines = wxStringTokenize( str, wxT("\n\r") );
by lester
Sun Jul 27, 2008 7:20 am
Forum: C++ Development
Topic: print wxpdfdocument
Replies: 4
Views: 978

Re: print wxpdfdocument

Hello, i createt a wxpdfdocument and want to print it with the wxWidgets Printer Framework. I know that the author wanted to include a support in Version 0.9. Is this version available or is there another way to print the pdf document? Thanks for help I have create my own wxPDF_DC, and send it as p...
by lester
Fri May 16, 2008 7:50 am
Forum: C++ Development
Topic: How to resize Fonts
Replies: 4
Views: 865

Thank you for your response, this works, but the controls are not big enough for my purpose. The area i want to resize has several subwindows. I'm looking to find a solution not to change font of each subwindow. Iwant just to change the font of the parent. Is this possible? // For all child windows...
by lester
Thu May 15, 2008 4:54 pm
Forum: C++ Development
Topic: How to resize Fonts
Replies: 4
Views: 865

You must change font after control creation, simplest way use: ////@end MyClass content construction if( mSmall ) { mpLabel1->SetWindowVariant( wxWINDOW_VARIANT_SMALL ); mpButton1->SetWindowVariant( wxWINDOW_VARIANT_SMALL ); ... .. } For MacOS it also make control smaller, on Win it only make font s...
by lester
Wed May 14, 2008 5:12 pm
Forum: C++ Development
Topic: rand()
Replies: 3
Views: 883

You must read c++ reference first:


/* initialize random seed: */
srand ( time(NULL) );

/* generate secret number: */
iSecret = rand() % 10 + 1;