Search found 203 matches

by eco
Fri Mar 03, 2006 5:45 pm
Forum: Platform Related Issues
Topic: wxMSW - My documents - folder
Replies: 8
Views: 2061

To add a little to this solution, I figure I might as well post the code I use as it is tiny bit different also a bit cleaner: wxString dir; HRESULT result = SHGetFolderPath(NULL, CSIDL_PERSONAL, NULL, SHGFP_TYPE_CURRENT, wxStringBuffer(dir, MAX_PATH)); if(SUCCEEDED(result)) // or FAILED(result) { /...
by eco
Thu Mar 02, 2006 7:16 pm
Forum: Platform Related Issues
Topic: wxMSW - My documents - folder
Replies: 8
Views: 2061

Although it doesn't work for getting "My Documents" it may be of interest to know that there is wxStandardPaths for retreiving several other important paths in a cross platform way.
by eco
Wed Mar 01, 2006 8:39 pm
Forum: C++ Development
Topic: Scaling fonts
Replies: 3
Views: 923

GDI+ supports fractional fonts as well and isn't difficult to get working with wxWidgets. I'd abstract it so you can use GDI+ on Windows and Cairo (or whatever) on other platforms.
by eco
Wed Mar 01, 2006 12:32 am
Forum: C++ Development
Topic: wxDatePickerCtrl - Blank Date
Replies: 1
Views: 797

I don't believe there is any way to not show a date, unfortunately. I wanted this appearance when the control was disabled but found no way so I placed the wxDatePickerCtrl in a horizontal box sizer with a wxChoice. I hide one or the other depending on if I want the wxDatePickerCtrl accessible. It d...
by eco
Thu Feb 23, 2006 4:25 am
Forum: C++ Development
Topic: Beginner question about wxMenuBar
Replies: 2
Views: 983

Most wxWindow and derivatives do not have a copy constructor because the copy constructor wouldn't be able to resolve what the new parent should be (most wxWindow and derivative instances typically have a parent). wxMDIParentFrame has GetMenuBar() because it is part of wxFrame (which wxMDIParentFram...
by eco
Sun Feb 19, 2006 8:26 am
Forum: C++ Development
Topic: Error multiple definition of
Replies: 3
Views: 1610

Might I suggest using a bit more descriptive subject line next time. The forums are also an archive of answers so a descriptive subject helps those searching the forum for pre-existing answers.
by eco
Sun Feb 19, 2006 8:05 am
Forum: C++ Development
Topic: wxPageSetupDialogData default data ?
Replies: 2
Views: 714

Use wxPageSetupDialogData::SetDefaultInfo(true) and pass it into an instance of wxPageSetupDialog to retrieve the default data. I'm not sure if you have to call Show() on the dialog or not for it to work but it won't show the dialog either way. I've recently been having some trouble with the page se...
by eco
Sun Feb 19, 2006 7:52 am
Forum: C++ Development
Topic: Document-View vs MVC (Model-View-Controller)
Replies: 1
Views: 962

The Controller is simply merged into the View (the View performs both functions).
by eco
Fri Feb 17, 2006 8:57 pm
Forum: General Forum Issues
Topic: The FAQ thread
Replies: 6
Views: 2695

The wiki sounds like a great idea (especially with the wiki now using MediaWiki, which rocks). We can keep the FAQ sticky and change it to be a link to the new FAQ page on the wiki.

Ryan (if you are out there), what do you think?
by eco
Thu Feb 16, 2006 8:38 pm
Forum: C++ Development
Topic: wxBoxSizer(wxHORIZONTAL) in wxFlexGridSizer
Replies: 4
Views: 1288

Oh, and I thought I'd mention that, in my opinion, wxGridBagSizer is easier to work with for layouts like these. You can just set controls to span multiple columns/rows. You would, in your case, have 4 columns with the first two rows' controls (the non-static text controls) spanning 3 columns and th...
by eco
Thu Feb 16, 2006 8:34 pm
Forum: C++ Development
Topic: wxBoxSizer(wxHORIZONTAL) in wxFlexGridSizer
Replies: 4
Views: 1288

Re: wxBoxSizer(wxHORIZONTAL) in wxFlexGridSizer

elmo wrote:

Code: Select all

      participant_info->SetFlexibleDirection(wxVERTICAL);
      participant_info->AddGrowableCol(1, 1);
I'm not sure if this is the cause of your problem but shouldn't this be wxHORIZONTAL if you are setting growable columns?
by eco
Thu Feb 16, 2006 7:28 pm
Forum: General Forum Issues
Topic: The FAQ thread
Replies: 6
Views: 2695

The FAQ thread

The thread is filled with some awesome explanations to a lot of common problems (almost entirely thanks to the hard work of Ryan). I think it is being underutilized though because of the fact that it is just a thread and it is difficult to see what questions/answers are availible without reading the...
by eco
Thu Feb 16, 2006 7:15 pm
Forum: C++ Development
Topic: how to disable menu item wxID_NEW?
Replies: 3
Views: 1894

Unless I'm mistaken, you can create and connect a UI update event handler (EVT_UPDATE_UI(wxID_NEW, FooFrame::OnUpdateFileNew)). This, I believe, would be called before the wxDocManager's handler of the same event/id. In your handler you do your customizations to the behavior. When you want the defau...
by eco
Thu Feb 16, 2006 7:08 pm
Forum: C++ Development
Topic: problems with wxDocMDIParentFrame
Replies: 1
Views: 585

A stacktrace would be helpful.
by eco
Tue Feb 14, 2006 5:43 pm
Forum: C++ Development
Topic: wxVScrolledWindow resize problem?
Replies: 4
Views: 1701

This should be it. The addition of Layout() fixes the window size resetting everything issue. There is also an issue while scrolling that is fixed by simplifying the code down to just the ScrollWindow() call. Index: include/wx/vscroll.h ===============================================================...