Page 1 of 1

Two GUI questions...

Posted: Sat Jun 11, 2005 5:14 am
by sugarhigh
Well now I'm at the point of making the gui for my app/game but I've hit yet another road block. I understand how to use tabs but is there any way to make them horizontal (up and down)?


ALSO...

I need an edit box for text input because part of it involves a terminal/command prompt like interface and i use

Code: Select all

env->addEditBox(wchar_t* input, rect<s32>(3,461,637,475), true, 0);
to make the edit box and have the input in a pointer named input... but the compiler gives this

Code: Select all

Source/main.cpp: In function `int main()':
Source/main.cpp:28: error: expected primary-expression before "wchar_t"
make.exe: *** [Output/main.o] Error 1
I'm using dev-c++ if that makes any difference...

Posted: Sat Jun 11, 2005 6:40 am
by don_Pedro
About first, question as far I know it's not possible. About second, it's just basic c++ error, should be:

Code: Select all

wchar_t* input;
env->addEditBox(input, rect<s32>(3,461,637,475), true, 0);

Posted: Sat Jun 11, 2005 2:21 pm
by sugarhigh
Ahhh... Okay I got it now. I've never had to use "wchar_t" before in my programming so I'm not sompletely familiar with it and declaring "input" just completely slipped my mind.