Search found 9 matches

by Schala
Fri May 13, 2016 10:06 am
Forum: C++ Development
Topic: SetSizeAndFit() squishes widgets and ignores style flags
Replies: 2
Views: 231

Re: SetSizeAndFit() squishes widgets and ignores style flags

I see. Valid as in not null, or valid as in the XPM file exists? I'm not sure I understand. Edit: I seem to have fixed the problem by, after creating the status bar like you recommended, called SetSizer() and then sizer->Fit(this) as opposed to SetSizerAndFit(). The window's style flags remain undam...
by Schala
Fri May 13, 2016 9:07 am
Forum: C++ Development
Topic: SetSizeAndFit() squishes widgets and ignores style flags
Replies: 2
Views: 231

SetSizeAndFit() squishes widgets and ignores style flags

I'm trying to make a simple window that has a horizontal series of 32x32 buttons with icons in them but no text, and a status bar. It is not supposed to be maximised or resized. This is an example of what I'm trying to accomplish: http://i.imgur.com/1wtbXnk.png I used a horizontal box sizer to save ...
by Schala
Wed Jun 11, 2014 10:49 pm
Forum: C++ Development
Topic: wxScrolledCanvas inside a sizer -- What am I doing wrong?
Replies: 4
Views: 1105

Re: wxScrolledCanvas inside a sizer -- What am I doing wrong

Many thanks Max. I got the proportion right before seeing your post but you helped me with the flicker problem.
by Schala
Wed Jun 11, 2014 8:58 pm
Forum: C++ Development
Topic: wxScrolledCanvas inside a sizer -- What am I doing wrong?
Replies: 4
Views: 1105

Re: wxScrolledCanvas inside a sizer -- What am I doing wrong

Well, imagine the above screenshot but with a scrollable canvas. That's what I'm trying to accomplish. I tweaked the code to remove panel and reassign the other components parented to it to `this` instead, but no luck.
by Schala
Wed Jun 11, 2014 10:49 am
Forum: C++ Development
Topic: wxScrolledCanvas inside a sizer -- What am I doing wrong?
Replies: 4
Views: 1105

wxScrolledCanvas inside a sizer -- What am I doing wrong?

I'm trying to implement a chat program where a user can connect to a server and move around their avatar in a 2D environment. For this I've been trying to find a suitable widget to use as a canvas for a paint device context. I believe I found what I need with wxScrolledCanvas because it offers a scr...
by Schala
Sat Jul 21, 2012 4:51 pm
Forum: The Code Dump
Topic: Cmake for wxwidgets
Replies: 4
Views: 6652

Re: Cmake for wxwidgets

I believe CMake 2.8.8 already has a wxWidgets module for up to 2.9.4. Though to be fair, I can't get my stuff to compile after a successful CMake run.
by Schala
Fri Jul 20, 2012 9:52 pm
Forum: C++ Development
Topic: wxSocketClient and wxAppConsole
Replies: 2
Views: 637

Re: wxSocketClient and wxAppConsole

Ah right, sorry. I'm using 2.9.4.
by Schala
Fri Jul 20, 2012 5:03 am
Forum: C++ Development
Topic: wxSocketClient and wxAppConsole
Replies: 2
Views: 637

wxSocketClient and wxAppConsole

Hello. I'm trying to make a client program for the Hotline protocol and I'm starting out by simply getting it to send out its identification to the server, and then receive the server confirmation. For this supposed trivial stage of my program I wanted to use CLI instead of a GUI for simplicity. I'v...
by Schala
Mon Jul 16, 2012 8:23 am
Forum: Compiler / Linking / IDE Related
Topic: wxWidgets 2.9 mono lib under VC10 causes errors
Replies: 0
Views: 1272

wxWidgets 2.9 mono lib under VC10 causes errors

I just compiled wxWidgets 2.9.4 as a monolithic release DLL and attempted to compile the "hello world" tutorial as a test, using CMake to save me the trouble of tediously adding in all the dependencies. However, despite CMake giving me a successful generation of a VC2010 project setup, I got a slew ...