Search found 6 matches

by dessaya
Tue Feb 15, 2005 12:33 am
Forum: C++ Development
Topic: wxSlider inside a wxToolBar
Replies: 7
Views: 1470

shouldn't it be of some default width? Not according to the documentation. Actually, according to the documentation, if he doesn't specify the size otherwise (and he doesn't in this case)- the wxSlider should get a wxDefaultSize. dessaya, try giving it a size of your own (pass the constructor a wxS...
by dessaya
Mon Feb 14, 2005 10:14 pm
Forum: C++ Development
Topic: wxSlider inside a wxToolBar
Replies: 7
Views: 1470

geon wrote:
shouldn't it be of some default width?
Not according to the documentation. But why did you set both Min and Max to zero?
wxSlider(toolBar, ID_Slider, 0, 0, 100);

According to the docs, if I got it right, the first zero is the value, the second zero is the min, and 100 is the max value.
by dessaya
Sun Feb 13, 2005 5:20 pm
Forum: C++ Development
Topic: wxSlider inside a wxToolBar
Replies: 7
Views: 1470

wxSlider inside a wxToolBar

I have this code in the constructor of a wxFrame:

Code: Select all

wxToolBar *toolBar = CreateToolBar();
toolBar->AddControl(new wxSlider(toolBar, ID_Slider, 0, 0, 100));
I'm getting a zero-width slider... shouldn't it be of some default width?

I'm using libwxgtk2.5-dev in Debian sid.

Thanks,

Diego
by dessaya
Tue Oct 05, 2004 2:46 pm
Forum: Platform Related Issues
Topic: Win32 - Problem with wxToolBar & radio buttons
Replies: 3
Views: 1061

Win32 - Problem with wxToolBar & radio buttons

Hi, it's me again :) , with a similar problem... this time I'm trying to place radio buttons in the toolbar. This code seems to work fine under Linux/GTK+: [syntax="c"]enum { ID_Tool1 = 1, ID_Tool2 = 2, ID_Tool3 = 3, ID_Tool4 = 4, }; BEGIN_EVENT_TABLE(MainFrame, wxFrame) EVT_TOOL_RANGE(ID_Tool1, ID_...
by dessaya
Wed Sep 22, 2004 7:17 pm
Forum: Platform Related Issues
Topic: Win32 - Frames don't close
Replies: 2
Views: 1423

When returning TRUE from OnInit you tell wx that everything initialized ok and that the program can create it's message loop. That's exacttly what happens. Although no window is present .. check out the Minimal sample in the samples/minimal to see how it is done. If you don't want a frame but only ...
by dessaya
Tue Sep 21, 2004 2:27 pm
Forum: Platform Related Issues
Topic: Win32 - Frames don't close
Replies: 2
Views: 1423

Win32 - Frames don't close

Hello, I'm new to wxWidgets and I'm having this little problem. My application compiles and runs perfectly under Linux/GTK+2. I'm trying to make it run on Windows 98. I compiled wxWidgets 2.4.2 using Cygwin/g++ 3.3.3. My app compiles with no errors/warnings, but when I run it, it behaves oddly. I cr...