Search found 6681 matches

by Auria
Tue Feb 06, 2007 12:49 am
Forum: C++ Development
Topic: How to detect closing of frame.
Replies: 5
Views: 1402

Well i meant a working sample demonstrating the issue, not just an empty method :) Though still i noticed something: BEGIN_EVENT_TABLE(wxKSMPFrmApp, wxApp) wxKSMPFrmApp is a wxApp? i don't think wxApps can throw wxCloseEvents, only wxFrames can. You may need to define an event table for a child of w...
by Auria
Tue Feb 06, 2007 12:39 am
Forum: C++ Development
Topic: Using event handler without a GUI?
Replies: 1
Views: 822

by Auria
Tue Feb 06, 2007 12:37 am
Forum: C++ Development
Topic: wxGrid save to the file.
Replies: 8
Views: 1802

What gets printed if you do that: for (int i = 0; i < 6; i++) { for (int j = 0; j < numLayers; j++) { fprintf(OurFile, "%s\n", (const char *)layers[j] ); printf("%s\n", (const char *)layers[j] ); // <--------- } } Just to determine if problem is during saving or because saving is...
by Auria
Tue Feb 06, 2007 12:34 am
Forum: C++ Development
Topic: wxSplitterWindow & resizing contents
Replies: 21
Views: 4579

FlyingIsFun1217 wrote:Tell me though, how can I set proportions of the panels (as DavidHart said 1 and 0)?

Thanks!
FlyingIsFun1217
When you create a component, you give it a size... just use that, if you tell the sizer not to stretch the default size should be respected
by Auria
Tue Feb 06, 2007 12:15 am
Forum: Compiler / Linking / IDE Related
Topic: problem with "extern" c++ command on linux
Replies: 14
Views: 3094

/export/home/fernando/application/src/application.cpp:28: undefined reference to `InitXmlResource()' /export/home/fernando/application/src/application.cpp:30: undefined reference to `wxclassWindows::wxclassWindows()' /export/home/fernando/application/src/application.cpp:32: undefined reference to `...
by Auria
Mon Feb 05, 2007 2:38 am
Forum: C++ Development
Topic: wxSplitterWindow & resizing contents
Replies: 21
Views: 4579

not an easy one ;) FlexGridSizer with a vertically flexible area could be good There must be many good ways to do it, have a look at the docs... though for a side bar like this i usually use wxBorderSizer, even though it's not part of the default distribution and has to be downloaded from wxCode / w...
by Auria
Mon Feb 05, 2007 2:10 am
Forum: C++ Development
Topic: wxSplitterWindow & resizing contents
Replies: 21
Views: 4579

About Splitter:

- I don't think you can remove the cursor.
- Setting min and max would be harder than just dismissing events, since you'll need to keep track of window size changes, and calculate and apply a new mix and max everyime it does

About Panels:

true it may not as nice though
by Auria
Mon Feb 05, 2007 2:04 am
Forum: C++ Development
Topic: wxSplitterWindow & resizing contents
Replies: 21
Views: 4579

Well, looking at the Splitter example, I could maybe do something like setting the min and max (can you set the max) at the same value, right? And if I did that, could I just remove the arrow cursor that shows over the splitter? Thanks again! FlyingIsFun1217 I don't know why you want to use a Split...
by Auria
Mon Feb 05, 2007 1:47 am
Forum: C++ Development
Topic: wxSplitterWindow & resizing contents
Replies: 21
Views: 4579

Look at this:
http://lists.wxwidgets.org/archive/wxPy ... 08286.html

basically catch events and invalidate them

found that with a google search in a few seconds :P google is your friend
by Auria
Mon Feb 05, 2007 1:40 am
Forum: C++ Development
Topic: wxSplitterWindow & resizing contents
Replies: 21
Views: 4579

Re: wxSplitterWindow & resizing contents

What I am not achieving with that though is resizing the wxListBox to fit the height of the window on a resize Well you'll need to use a sizer for that... FlexGridSizer is usually good when you just want to make a component take all available space (check your previous thread) in this code there is...
by Auria
Mon Feb 05, 2007 1:01 am
Forum: Compiler / Linking / IDE Related
Topic: problem with "extern" c++ command on linux
Replies: 14
Views: 3094

But.. why and how should I use --enable-xrc on my project?? I am using kdevelop 3.4.. if you can explain to me will be great. Fernando. No, i just meant use --enable-xrc when building wxWidgets. But please post the commands that are issued when you build, i.e. what is the call to g++ that KDevelop ...
by Auria
Mon Feb 05, 2007 12:58 am
Forum: C++ Development
Topic: How to detect closing of frame.
Replies: 5
Views: 1402

can you provide some code? with no code, we can only speculate.
by Auria
Sun Feb 04, 2007 7:41 pm
Forum: C++ Development
Topic: Streching components
Replies: 19
Views: 3734

you can have a panel, you'll just need to set the sizers accordingly (i.e. a first sizer in the frame to make the panel extend to the dimensions of the frame, and a second sizer inside the panel to make its child components stretch with it - just add the sizers to the right component, don't mix thin...
by Auria
Sun Feb 04, 2007 6:53 pm
Forum: C++ Development
Topic: How to detect closing of frame.
Replies: 5
Views: 1402

by Auria
Sat Feb 03, 2007 10:34 pm
Forum: Compiler / Linking / IDE Related
Topic: problem with "extern" c++ command on linux
Replies: 14
Views: 3094

okay, but the commands when you build your own project?

And i think you may need to configure with --enable-xrc on linux