Search found 13 matches

by dohpam1ne
Thu May 28, 2020 2:57 pm
Forum: C++ Development
Topic: private constructor for wxFileInputStream
Replies: 2
Views: 403

Re: private constructor for wxFileInputStream

That fixed the issue. Thank you!
by dohpam1ne
Wed May 27, 2020 4:35 pm
Forum: C++ Development
Topic: private constructor for wxFileInputStream
Replies: 2
Views: 403

private constructor for wxFileInputStream

I'm attempting to load and display an image in my application. However, I'm getting an error I don't quite understand. The relevant code is as follows: GraphWindow::GraphWindow(wxWindow* parent) : wxWindow(parent, wxID_ANY) { currentFunction = FuncSelection::SIN; numOfTerms = 0; dPanel = parent; gra...
by dohpam1ne
Sat May 23, 2020 1:13 pm
Forum: C++ Development
Topic: wxStaticText formatting
Replies: 2
Views: 400

Re: wxStaticText formatting

Awesome, thanks a lot. :)
by dohpam1ne
Sat May 23, 2020 11:25 am
Forum: C++ Development
Topic: wxStaticText formatting
Replies: 2
Views: 400

wxStaticText formatting

Hi all, Is it possible to set formatting properties like text size and background color in wxStaticText or similar classes like wxTextCtrl? I'm attempting to create a title within my panel and I'd like to make it stand out a bit more than the default text. My current application looks like this: htt...
by dohpam1ne
Wed May 20, 2020 3:36 pm
Forum: C++ Development
Topic: Center objects within a vertical box sizer
Replies: 2
Views: 527

Re: Center objects within a vertical box sizer

Ah, somehow I missed that. Thanks!
by dohpam1ne
Wed May 20, 2020 12:57 pm
Forum: C++ Development
Topic: Center objects within a vertical box sizer
Replies: 2
Views: 527

Center objects within a vertical box sizer

Say I have a large square panel, and I've assigned a vertical box sizer to it. The sizer has two children- a text field and a button. The children are much smaller than the panel, and although I'm able to center the children horizontally, wxWidgets complains if I try to center them vertically. Here'...
by dohpam1ne
Tue May 19, 2020 9:58 am
Forum: C++ Development
Topic: Define wxWindow position relative to another window's edge
Replies: 3
Views: 522

Re: Define wxWindow position relative to another window's edge

I didn't realize sizers were used for this type of thing, I'll try that out. Thanks!
by dohpam1ne
Mon May 18, 2020 9:14 pm
Forum: C++ Development
Topic: Define wxWindow position relative to another window's edge
Replies: 3
Views: 522

Define wxWindow position relative to another window's edge

Hi all, I'm a beginner, and I feel like the answer to this question must be out there, but I can't seem to find it. I'm defining two child windows within a wxFrame. They're both very basic subclasses of wxPanel. I want them to completely fill the parent wxFrame in which they reside, so I'd just have...
by dohpam1ne
Sat May 16, 2020 11:05 am
Forum: Compiler / Linking / IDE Related
Topic: _w64 can only be specified on int, long, and pointer types
Replies: 9
Views: 2079

Re: _w64 can only be specified on int, long, and pointer types

That worked, thank you so much! For anyone who has similar difficulties and is looking for a solution, I'll recap what I did: I built wxWidgets with the default Visual Studio Developers Console (which is x86 settings) and used default nmake settings (Also x86.). I created a new project in VS by sele...
by dohpam1ne
Fri May 15, 2020 8:36 pm
Forum: Compiler / Linking / IDE Related
Topic: _w64 can only be specified on int, long, and pointer types
Replies: 9
Views: 2079

Re: _w64 can only be specified on int, long, and pointer types

I've gotten a couple of those weird IntelliSense "errors" that would go away after I'd do something like add a newline and then remove it again, but this one persists across rebuilds and tweaks and such. I religiously followed the guide you linked with a new project (static rather than DLL...
by dohpam1ne
Fri May 15, 2020 7:15 pm
Forum: Compiler / Linking / IDE Related
Topic: _w64 can only be specified on int, long, and pointer types
Replies: 9
Views: 2079

Re: _w64 can only be specified on int, long, and pointer types

oneeyeman, I likely will end up doing that. Luckily, putting my code into the calendar sample solution works. I'm just not the type that can let go of errors easily, so I really want to understand why I'm getting an error in the first place, not just how to avoid it. Thanks for the link, PB. I'll tr...
by dohpam1ne
Fri May 15, 2020 5:31 pm
Forum: Compiler / Linking / IDE Related
Topic: _w64 can only be specified on int, long, and pointer types
Replies: 9
Views: 2079

Re: _w64 can only be specified on int, long, and pointer types

Hi doublemax,

Thanks for the sugggestion. I just tried the "calendar" sample, and it compiles and runs successfully (Debug, x86).

This makes me think that the issue must be within my project configuration, since the code itself must be alright.
by dohpam1ne
Fri May 15, 2020 5:10 pm
Forum: Compiler / Linking / IDE Related
Topic: _w64 can only be specified on int, long, and pointer types
Replies: 9
Views: 2079

_w64 can only be specified on int, long, and pointer types

Hey, First post here. Feel free to correct me on posting etiquette. I'm attempting to compile and run the "Hello World" program described on the wxWidgets site here: https://docs.wxwidgets.org/trunk/overview_helloworld.html . I'm using Visual Studio 2019 with wxWidgets 3.1.3. I compiled wx...