Search found 55 matches

by Lowkus
Mon Feb 11, 2019 5:21 pm
Forum: Compiler / Linking / IDE Related
Topic: Form Style in wxSmith
Replies: 5
Views: 752

Re: Form Style in wxSmith

This seems to get it done... wxDEFAULT_DIALOG_STYLE, wxRESIZE_BORDER, wxMINIMIZE_BOX
by Lowkus
Mon Feb 11, 2019 8:32 am
Forum: C++ Development
Topic: wxString pointer crash
Replies: 3
Views: 179

Re: wxString pointer crash

That helps immensely, thanks! I normally wouldn't use a pointer but I'm going to pass it into SplitPath and I think that requires a pointer. Here's what it ended up looking like and it seems to work a treat. //...earlier code fetched the filepathname... wxString* sVol = new wxString; wxString* sDir ...
by Lowkus
Mon Feb 11, 2019 6:41 am
Forum: C++ Development
Topic: wxString pointer crash
Replies: 3
Views: 179

wxString pointer crash

Running wxWidgets-3.1.0.

I'm probably making some basic mistake. Why does this crash at runtime? And why do I get this build warning?
warning: 'sVol' may be used uninitialized in this function.

Code: Select all

wxString* sVol;
*sVol = wxT("hi");
wxMessageBox(*sVol, wxT("caption"));
by Lowkus
Sun Dec 02, 2018 8:23 am
Forum: C++ Development
Topic: wxFileInputStream File Not Found Error
Replies: 1
Views: 159

wxFileInputStream File Not Found Error

I instantiate a wxFileInputStream object giving it a filename that doesn't exist: wxFileInputStream fizzy5(fdlg->GetPath()); At the point the wxFileInputStream object is destroyed it always throws this message box: "Can't open file 'C:\somefilename' (error 2: the system cannot find the file specifie...
by Lowkus
Wed Nov 07, 2018 11:36 pm
Forum: General Development
Topic: Form Design Improvement Request
Replies: 7
Views: 669

Re: Form Design Improvement Request

Margin and Padding are not fixed positions on the form, rather they are fixed distances from the edge of a control. Margin and Padding properties are far superior to using sizers; using sizers to pad the space between form objects is like using transparent GIF's to align objects on web pages, it's a...
by Lowkus
Wed Nov 07, 2018 6:19 pm
Forum: General Development
Topic: Form Design Improvement Request
Replies: 7
Views: 669

Re: Form Design Improvement Request

I've been using wxSmith in CodeBlocks.
by Lowkus
Wed Nov 07, 2018 5:07 pm
Forum: General Development
Topic: Form Design Improvement Request
Replies: 7
Views: 669

Form Design Improvement Request

Form designing with wxWidgets is a pain, it would be nice if it could have padding and margin amounts for controls, similar to how .Net allows spacing around controls. It also needs buttons that allow pictures and text with better alignment options, such as a picture centered dead middle of the butt...
by Lowkus
Wed May 16, 2018 8:34 pm
Forum: Compiler / Linking / IDE Related
Topic: wxSmith Couldn't Add New Handler
Replies: 1
Views: 390

wxSmith Couldn't Add New Handler

When I try to look at the events list in wxSmith, on any of three forms, it is not showing the events that I had created through wxSmith in the past. If I try to add an event now, wxSmith asks me for an event name and I enter a unique name, then it throws an error "Couldn't Add New Handler". Queryin...
by Lowkus
Fri Feb 09, 2018 6:28 pm
Forum: Compiler / Linking / IDE Related
Topic: Form Style in wxSmith
Replies: 5
Views: 752

Re: Form Style in wxSmith

Windows Vista, CodeBlocks + wxSmith, wxWidgets 3.1.0 static individual libraries. The executable works fine except it doesn't have the titlebar options I am trying to achieve.
by Lowkus
Fri Feb 09, 2018 4:41 pm
Forum: Compiler / Linking / IDE Related
Topic: Form Style in wxSmith
Replies: 5
Views: 752

Re: Form Style in wxSmith

The application icon dropdown on the top left of the form. There must be some way to show it while simultaneously disabling the form maximize button.
by Lowkus
Thu Feb 08, 2018 1:10 am
Forum: Compiler / Linking / IDE Related
Topic: Form Style in wxSmith
Replies: 5
Views: 752

Form Style in wxSmith

I'm trying to set the form style in wxSmith; I want a fixed border form with a control box at the top left of the form title, disabled maximize button, enabled minimize button, and the close button far right. When I try to set this up in wxSmith I am finding it impossible because... 1) If I turn on ...
by Lowkus
Sun Oct 15, 2017 5:28 am
Forum: C++ Development
Topic: UUID DataType
Replies: 4
Views: 779

Re: UUID DataType

I have been unable to get that library to work. It uses OS calls to generate the UUID values, so possibly it can't handle that I'm running Windows Vista (or a more likely reason is that I screwed up linking the library somehow). Are there libraries you can recommend that will provide UUID without ca...
by Lowkus
Wed Sep 20, 2017 5:15 am
Forum: C++ Development
Topic: UUID DataType
Replies: 4
Views: 779

UUID DataType

Does wxWidgets provide a UUID class that works across platforms? I'm seeing a UUID class in "wx/msw/ole/uuid.h", but is that only for Windows builds or will it compile cross-platform? Is there a better solution for implementing UUID datatypes in a wxWidgets C++ application?
by Lowkus
Mon Jul 31, 2017 6:24 am
Forum: C++ Development
Topic: Assigning NULL to wxDateTime?
Replies: 1
Views: 317

Assigning NULL to wxDateTime?

Is there a datatype similar to wxDateTime but that also allows assignment of a NULL value? I'm trying to do something like this...

Code: Select all

wxDateTime Book::getDate()
{
    wxDateTime val;
    val = NULL; //No date is assigned yet.
    return val;
}
Or will I have to return wxDateTime*?
by Lowkus
Thu Jul 06, 2017 1:35 am
Forum: C++ Development
Topic: wxFrame Minimum Size on Load
Replies: 1
Views: 491

Re: wxFrame Minimum Size on Load

Never mind, I just had to set the wxFrame default size to something larger than the minimum size.