Search found 55 matches
- Tue Feb 16, 2010 12:28 am
- Forum: C++ Development
- Topic: Max window size 32768?
- Replies: 8
- Views: 3033
Try it by setting a different background color for the panel. Doesn't work, behind 32767 background color was back to default gray. The reason nothing over that size is working, is because windows doesn't know about what beyond it. I was afraid so (I have done some WinAPI developing some years ago)...
- Mon Feb 15, 2010 10:25 pm
- Forum: C++ Development
- Topic: Max window size 32768?
- Replies: 8
- Views: 3033
Max window size 32768?
I have a wxPanel inside wxScrolledWindow. I found out that when wxPanel is bigger than 32767, anything above that boundary is not displayed (even though I am allowed to scroll further). I only have MS Windows platform to test this. Is this a wxWidgets limitation, or limitation of OS? Scrollable page...
- Mon Feb 15, 2010 10:06 pm
- Forum: C++ Development
- Topic: Auto-wrap wxStaticText on window resize
- Replies: 5
- Views: 2440
I don't understand this. Does the call to Wrap() insert EOLs in your text? If it does then I didn't know about that and yes you need to reset it. Yep, looks like so: // from wx sources class wxLabelWrapper : public wxTextWrapper ... void WrapLabel(wxWindow *text, int widthMax) { m_text.clear(); Wra...
- Mon Feb 15, 2010 7:40 pm
- Forum: C++ Development
- Topic: Auto-wrap wxStaticText on window resize
- Replies: 5
- Views: 2440
- Mon Feb 15, 2010 1:16 pm
- Forum: C++ Development
- Topic: Auto-wrap wxStaticText on window resize
- Replies: 5
- Views: 2440
Auto-wrap wxStaticText on window resize
I have a wxBoxSizer(vertical) inside vertically-scrolled window (wxScrolledWindow). Sizer contains wxStaticText items in it. I want all the texts to automatically wrap to width of window, when it is resized. Do I have to implement my own handler for resize event and reset all wxStaticTexts manually,...
- Sun Feb 14, 2010 7:55 pm
- Forum: C++ Development
- Topic: Accessing UserData specified in Connect
- Replies: 1
- Views: 852
Accessing UserData specified in Connect
In Connect() method, I can specify wxObject* UserData. However, It isn't clear to me, how to access this data from handler function. Is UserData same as "client data" mentioned elsewhere? Maybe the description of Connect should have extra sentence on this problem. Also, is object pointed b...
- Tue Feb 09, 2010 10:47 pm
- Forum: C++ Development
- Topic: Hook keypresses for text control in dialog
- Replies: 2
- Views: 792
- Tue Feb 09, 2010 9:27 pm
- Forum: C++ Development
- Topic: Hook keypresses for text control in dialog
- Replies: 2
- Views: 792
Hook keypresses for text control in dialog
I have a dialog (wxDialog-derived class), with several edit boxes (wxTextCtrl) in it. I want to check format of text in edit boxes as it is being typed, and display OK/Wrong status. However I don't how to hook this event (text in wxTextCtrl changed) properly. I tried adding EVT_CHAR to dialog's even...
- Mon Feb 08, 2010 11:15 am
- Forum: C++ Development
- Topic: Close box doesn't work after SetEscapeId
- Replies: 2
- Views: 1007
With standard ID it works, thanks.
However, I still find it weird that same code doesn't work with other than standard ID.
BTN_CANCEL was defined inside HintDialog class as:
However, I still find it weird that same code doesn't work with other than standard ID.
BTN_CANCEL was defined inside HintDialog class as:
Code: Select all
enum {
BTN_OK = 1,
BTN_CANCEL
};
- Mon Feb 08, 2010 10:27 am
- Forum: C++ Development
- Topic: Close box doesn't work after SetEscapeId
- Replies: 2
- Views: 1007
Close box doesn't work after SetEscapeId
Hi, I'm new to wxWidgets. I have dialog with OK and Cancel buttons, and I want Cancel button handler to also handle ESC key and Close box (X in upper right corner of dialog window). Following code works for clicking Cancel button and pressing ESC, but not for clicking Close box. BEGIN_EVENT_TABLE(Hi...