Search found 11 matches

by paule
Fri Oct 20, 2006 3:15 pm
Forum: C++ Development
Topic: terminal emulator
Replies: 6
Views: 2245

Hi Finally found a solution - kind of. // Create base panel. m_basePanel = new wxPanel( itemFrame1, ID_PANEL1, wxDefaultPosition, wxDefaultSize, wxNO_BORDER|wxTAB_TRAVERSAL ); //Select fixed width font m_basePanel->SetFont(wxFont(12, wxSWISS, wxNORMAL, wxNORMAL, false, _T("Fixedsys"))); it...
by paule
Fri Oct 20, 2006 3:03 pm
Forum: C++ Development
Topic: terminal emulator
Replies: 6
Views: 2245

Thanks David I tried using sizers but it was proving to impractical for terminal emulation. (Use them for all other apps though). I tried your other two suggestions SetSize and SetSizeHints - both had no effect. Using GetCharWidth produces a panel slightly larger then expected maybe by about 10-15%....
by paule
Fri Oct 20, 2006 1:39 pm
Forum: C++ Development
Topic: terminal emulator
Replies: 6
Views: 2245

Thanks for the reply Belgabor. Setting my font like this: m_basePanel->SetFont(wxFont(12, wxSWISS, wxNORMAL, wxNORMAL, false, _T("Fixedsys"))); I've tried calling GetTextExtent() for m_basePanel or any new panel - no difference. I've also tried this: wxStaticText* itemStaticText4 = new wxS...
by paule
Fri Oct 20, 2006 11:23 am
Forum: C++ Development
Topic: terminal emulator
Replies: 6
Views: 2245

terminal emulator

Hi I need to write a quick and dirty terminal emulator app. Can't use sizers. I'm planning to emulate ansi (80*24). I currently use putty but for various reasons I need my own one. Telnet session fine, nice and quick but having a problem with screen layout. I'm looking for a quick way to create a wi...
by paule
Wed Oct 04, 2006 10:36 am
Forum: wxCode
Topic: wxActiveRecordGenerator
Replies: 5
Views: 1812

Mat
by paule
Tue Oct 03, 2006 2:02 pm
Forum: Announcements and Discoveries
Topic: wxActiveRecordGenerator 1.0 First Release
Replies: 8
Views: 2502

Mat
by paule
Tue Oct 03, 2006 11:20 am
Forum: wxCode
Topic: wxActiveRecordGenerator
Replies: 5
Views: 1812

Eran I am using wx 2.6.3 (on win XP) with mysql 5.0. Fails every time I click the "Generate" button. (Both my compiled version and the downloaded exe.) I didn't understand the problem - although it fails on a databaselayer function I'm pretty confident thats not the issue. The exception it...
by paule
Tue Oct 03, 2006 10:55 am
Forum: wxCode
Topic: wxActiveRecordGenerator
Replies: 5
Views: 1812

wxActiveRecordGenerator

Hi I am currently testing wxActiveRecordGenerator but I am having a problem running the exe supplied. It crashes. I've tested it on various machines but same problem. I've downloaded the source, compiled it (mingw32) and I get the same problem. Also the source checked in does not appear to be up to ...
by paule
Mon Oct 02, 2006 9:40 am
Forum: C++ Development
Topic: Resize wxTextCtrl
Replies: 4
Views: 1698

Thanks David That worked beautifully. Here is the code in case anybody is interested. void newTextCtrl::SetMaxLength(unsigned long len) { wxTextCtrl::SetMaxLength(len); int x,y; GetTextExtent(_T("ABCDEabcde"),&x,&y); //Gets Width of string SetSizeHints(((x/10)*(len+2)),-1); // Get ...
by paule
Sat Sep 30, 2006 4:24 pm
Forum: C++ Development
Topic: Resize wxTextCtrl
Replies: 4
Views: 1698

Thanks phlox81

I understand what SetMaxLength does. I'm trying to get a textctrl size to reflect the number of characters allowed (the max length).

I have 100's of textctrls in my app. I'm looking for a way to avoid working out
the length each one needs to be.

Thanks again

Paul
by paule
Sat Sep 30, 2006 12:22 pm
Forum: C++ Development
Topic: Resize wxTextCtrl
Replies: 4
Views: 1698

Resize wxTextCtrl

Hi I'm trying to get a textctrl size to reflect the number of characters allowed (the max length). So I'm trying to resize a wxTextCtrl after it has been created. I want to set the size of the client area according to wxTextCrtl::SetMaxLength(). Basically in my new class newTextCtrl (derived from wx...