Search found 130 matches

by Wanderer82
Thu Aug 16, 2018 8:40 pm
Forum: C++ Development
Topic: From int to float (from 1 to 1.0)
Replies: 5
Views: 253

Re: From int to float (from 1 to 1.0)

No, I didn't. But I don't need float numbers in SpinCtrl, it's only for a calculation later on, I realized now. Thanks anyway for your additional info that's nice to know.
by Wanderer82
Thu Aug 16, 2018 6:20 pm
Forum: C++ Development
Topic: From int to float (from 1 to 1.0)
Replies: 5
Views: 253

Re: From int to float (from 1 to 1.0)

I've already tried that but it didn't work. I didn't get a usable value after doing the division. But somehow I've managed to get it to work in another way. If I come across a similar problem I'll get back to this thread.
by Wanderer82
Thu Aug 16, 2018 5:52 pm
Forum: C++ Development
Topic: From int to float (from 1 to 1.0)
Replies: 5
Views: 253

From int to float (from 1 to 1.0)

Hello In my program I read a value from a SpinCtrl which is of "int" value (for example 300). I need this value as 300.0 for a division which needs at least one decimal, two would even be better. How can I do that? Well, in the meantime I found a solution to my problem but my question is still unans...
by Wanderer82
Wed Aug 15, 2018 4:39 pm
Forum: C++ Development
Topic: expected ';' before 'dialog'
Replies: 2
Views: 225

Re: expected ';' before 'dialog'

:lol:
by Wanderer82
Wed Aug 15, 2018 3:49 pm
Forum: C++ Development
Topic: expected ';' before 'dialog'
Replies: 2
Views: 225

expected ';' before 'dialog'

Sorry, I have to start a thread again. This error is driving me nuts. I just want to open a dialog when clicking on a menu item. But always this error: expected ';' before 'dialog' is showing up. I had this before and somehow I managed to find my mistake or at least after fiddling around it suddenly...
by Wanderer82
Wed Aug 15, 2018 10:14 am
Forum: C++ Development
Topic: Set position of bitmap inside a wxFlexGridSizer
Replies: 3
Views: 204

Re: Set position of bitmap inside a wxFlexGridSizer

Yes, that's what I did first (using a boxsizer with a spacer) which worked well. But I thought maybe a FlexGridSizer would give less nested / complicated code. If I use a boxsizer I might as well design everything using boxsizers instead of FlexGridSizers. I thought using FlexGridSizers would group ...
by Wanderer82
Wed Aug 15, 2018 9:25 am
Forum: C++ Development
Topic: Set position of bitmap inside a wxFlexGridSizer
Replies: 3
Views: 204

Set position of bitmap inside a wxFlexGridSizer

Hello I have a wxFlexGridSizer with 3 columns. In the first and third column I put a spacer, in the middle there's a bitmap, a small arrow pointing downwards. Underneath that arrow there is a progress bar. The small arrow should indicate a "reward" as soon as the progress bar has reached a certain v...
by Wanderer82
Wed Aug 15, 2018 9:20 am
Forum: C++ Development
Topic: Different behaviour of wxGauge
Replies: 3
Views: 206

Re: Different behaviour of wxGauge

Ok, I'll have to check that when I'm at my place of work. The trick sounds interesting ;-)
by Wanderer82
Tue Aug 14, 2018 9:36 pm
Forum: C++ Development
Topic: Different behaviour of wxGauge
Replies: 3
Views: 206

Different behaviour of wxGauge

Hello In my program there is a wxGauge to show how many points you have gotten for good behavior. So at the end of the day I can choose between 1 and 3 points. After that the wxGauge is increased by this value. Well, on my Windows 10 computer I get a simple green bar as a wxGauge and if I add 3 poin...
by Wanderer82
Thu Aug 09, 2018 9:38 am
Forum: C++ Development
Topic: Change Spacer size during runtime
Replies: 7
Views: 701

Re: Change Spacer size during runtime

No, I'm not assigning the same value as "SuS" is modified before:

SuS = SuS + Kugeln;
by Wanderer82
Thu Aug 09, 2018 6:49 am
Forum: C++ Development
Topic: Change Spacer size during runtime
Replies: 7
Views: 701

Re: Change Spacer size during runtime

Oh, that was it. The "Layout()" was missing, now it works. Thank you!
by Wanderer82
Wed Aug 08, 2018 10:51 pm
Forum: C++ Development
Topic: Change Spacer size during runtime
Replies: 7
Views: 701

Re: Change Spacer size during runtime

There's no error but nothing happens if I click Button1. And well, let me explain again: What I want to change is the size of a spacer inside a BoxSizer. Maybe that wasn't clear enough. I don't want to change the size of the BoxSizer itself. Here's the entire code (I excluded most of the code in the...
by Wanderer82
Wed Aug 08, 2018 10:13 pm
Forum: C++ Development
Topic: Change Spacer size during runtime
Replies: 7
Views: 701

Re: Change Spacer size during runtime

That unfortunately is too demanding for me. I'd need a concrete code. So what I'm doing is very basic... just adding a BoxSizer to my wxFrame: ... wxBoxSizer* BoxSizer6; Create(parent, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxDEFAULT_FRAME_STYLE|wxSIMPLE_BORDER, _T("wxID_ANY")); ...
by Wanderer82
Wed Aug 08, 2018 9:24 pm
Forum: C++ Development
Topic: Change Spacer size during runtime
Replies: 7
Views: 701

Change Spacer size during runtime

Hello

I'd like to know how I can change the size of a spacer (BoxSizer) during the runtime of my program...

Thanks a lot,
Thomas
by Wanderer82
Sat Jun 23, 2018 3:58 pm
Forum: C++ Development
Topic: Exclude all characters that need an escape
Replies: 8
Views: 897

Re: Exclude all characters that need an escape

Well, for example in the text file it says "Paper/Sheets" without the quotes. Then in the program I use an ifstream variable to read the text into a string. It just doesn't work if I write "Paper/Sheets", I have to write "Paper//Sheets" to make it work. EDIT: After I had written this post it dawned ...