Search found 30 matches

by redrgreen
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...
by redrgreen
Tue Aug 14, 2007 5:57 pm
Forum: C++ Development
Topic: Problems with wxGridBagSizer
Replies: 1
Views: 520

So further research revealed wxGridBagSizer::SetEmptyCellSize
which if set appropriately will solve the problems outlined in the above post, also setting the windows to expand using wxEXPAND is useful.
by redrgreen
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...
by redrgreen
Tue May 22, 2007 10:27 am
Forum: C++ Development
Topic: i18n and Unicode
Replies: 5
Views: 1439

The library must be complied with wxUSE_UNICODE set to 1 which is not the default did you do this? Also I think swapd0 is correct _T() or wxT() is the correct option, not _()
by redrgreen
Mon May 21, 2007 4:57 pm
Forum: C++ Development
Topic: create diagrams
Replies: 7
Views: 1922

Since Umbrello is open source I would suggest that you download the source and study it, its not written in wxWidgets but is in C++ so perhaps you could modify it to use the wxWidgets library and in the process make it cross platform. Failing this you might get some ideas at least.
by redrgreen
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...
by redrgreen
Mon May 21, 2007 4:19 pm
Forum: C++ Development
Topic: assigning a vector of wxTextCtrls....
Replies: 5
Views: 1054

No problem :D

I think the reason you had problems using

Code: Select all

vector<notebook_tab> mytabs;
is that notebook_tab contains a pointer to a text control, so you can't declare an array of non pointer structs.
by redrgreen
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...
by redrgreen
Tue May 15, 2007 12:57 pm
Forum: C++ Development
Topic: Event Handling Design Question
Replies: 3
Views: 819

I would let the closest event handling window handle the event, unless theres a specific need to do otherwise. So In this case it would be the Main Frame unless the wxPanel has some other functionality.

To subclass the edit control would seem to be alot of extra work for no good reason.
by redrgreen
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...
by redrgreen
Mon May 14, 2007 8:47 pm
Forum: C++ Development
Topic: Show wxCaret, alltough blinking?
Replies: 4
Views: 1060

On MSW You can set the caret blink time using static function wxCaret::SetBlinkTime this takes a value in miliseconds so if you set it to someting low it will seem as if its not blinking. But beware this will change the blink rate for all Apps not just yours.
by redrgreen
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...
by redrgreen
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 ...
by redrgreen
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...
by redrgreen
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 ...