Search found 30 matches
- Sun Apr 06, 2008 12:36 pm
- Forum: C++ Development
- Topic: How can you move MediaCtrl around the screen?
- Replies: 2
- Views: 827
Hi If you just want to position your controls on the form then you should try using sizers which is the preferred wxWidgets method, there are various available. However if you don't want to do that or you want to move the control during runtime then you can use the SetSize function. wxMediaCtrl is d...
- Tue Aug 14, 2007 5:57 pm
- Forum: C++ Development
- Topic: Problems with wxGridBagSizer
- Replies: 1
- Views: 520
- Tue Aug 14, 2007 5:14 pm
- Forum: C++ Development
- Topic: Problems with wxGridBagSizer
- Replies: 1
- Views: 520
Problems with wxGridBagSizer
Hi, I am a little confused by wxGridBagSizer and how the positioning and spanning works, so I have some questions: Is the height of each row/ column the same? How is the row height determined? If I insert a window at say row position 1 and another same sized window at row position 3 do I get a gap b...
- Tue May 22, 2007 10:27 am
- Forum: C++ Development
- Topic: i18n and Unicode
- Replies: 5
- Views: 1439
- Mon May 21, 2007 4:57 pm
- Forum: C++ Development
- Topic: create diagrams
- Replies: 7
- Views: 1922
- Mon May 21, 2007 4:32 pm
- Forum: C++ Development
- Topic: Sizer troubles.
- Replies: 3
- Views: 950
m_sizer->Add(0,0,1); //spacer <====does not work // m_sizer->AddStretchSpacer(); //spacer <====does not work This will only work for a wxBoxSizer, and also as Auria said you will need to set the flag to wxEXPAND so try m_sizer->Add(0,0,1, wxEXPAND); Also I would call SetDimension after you have add...
- Mon May 21, 2007 4:19 pm
- Forum: C++ Development
- Topic: assigning a vector of wxTextCtrls....
- Replies: 5
- Views: 1054
No problem
I think the reason you had problems using
is that notebook_tab contains a pointer to a text control, so you can't declare an array of non pointer structs.
I think the reason you had problems using
Code: Select all
vector<notebook_tab> mytabs;
- Mon May 21, 2007 1:26 pm
- Forum: C++ Development
- Topic: assigning a vector of wxTextCtrls....
- Replies: 5
- Views: 1054
You haven't initialized temp. You have declared a pointer to the notebook_tab struct then tried to use it without initializing it first, as it stands when you try to use temp it has a value of NULL and will crash. I don't think it is necessary to declare mytabs to be a vector array of pointers try i...
- Tue May 15, 2007 12:57 pm
- Forum: C++ Development
- Topic: Event Handling Design Question
- Replies: 3
- Views: 819
- Tue May 15, 2007 12:49 pm
- Forum: C++ Development
- Topic: Show wxCaret, alltough blinking?
- Replies: 4
- Views: 1060
Yes i've found that allready but if i do so it could also be hidden (because of blinking). I want to make it visible allthough its blinks. Do i have to write my own small caret? I don't understand what you are asking here? If you set the caret blink rate to say 1 milisecond then it will not look as...
- Mon May 14, 2007 8:47 pm
- Forum: C++ Development
- Topic: Show wxCaret, alltough blinking?
- Replies: 4
- Views: 1060
- Mon May 14, 2007 8:26 pm
- Forum: C++ Development
- Topic: Vertical tile ?
- Replies: 8
- Views: 1622
Hi Unfortunately Destroy() does not delete the window immediately see quote from the docs below Destroys the window safely. Use this function instead of the delete operator, since different window classes can be destroyed differently. Frames and dialogs are not destroyed immediately when this functi...
- Mon May 14, 2007 5:02 pm
- Forum: C++ Development
- Topic: wxOwnerDrawnComboBox capturing text.
- Replies: 2
- Views: 729
Re: wxOwnerDrawnComboBox capturing text.
Essentially i would like a Text/Combo control similar to that in Windows and Firefox. Whereby, the user types text and a history listbox drops down beneath the control. The user can use the up/down keys to 'browse' the items and select an item with 'enter'. wxComboBox doesn't work this way. Unless ...
- Mon May 14, 2007 4:51 pm
- Forum: C++ Development
- Topic: Vertical tile ?
- Replies: 8
- Views: 1622
I don't think you can specify what way they tile, they will normally tile to best fit whatever size the parent window is, adjusting the widths of the child windows to accommodate this, that should work well in most cases, and will probably do what you want, however if you really want exactly 5 windo...
- Mon May 14, 2007 10:46 am
- Forum: C++ Development
- Topic: drag and drop problems with wxFIleDataObject
- Replies: 2
- Views: 832
Hi If anybody is interested, I have discovered the source of this problem I had been compiling this with wxWidgets 2.6.2, however when I compiled it with wxWidgets 2.8.3 it worked. It seems that wxFileDataObject does not work as a data source in wxWidgets up to at least version 2.6.2 but does in at ...