I'm in trouble with scroll bars. first of all, if i add a vertical scroll bar to my window, it appears but don't scroll anything.
if i set allowScrolling for my window to be true, adds additional scroll bars.
instead, if i don't make a scroll bar but i set only the allowScrolling to true, add scroll bars, but the objects that scrolls don't appear from my window but behind...
here is a screenshot:
try something like
this method could help you
Post the code to create all of the widgets in that screenshot, please.
this is the code:
/*Create the window and set properties*/
tableWin = mSheet->createWindow();
tableWin->allowScrolling(true); //code added
label1 = tableWin->createLabel();
TextBox1 = tableWin->createTextBox();
QuickGUI::Image *logo = mSheet->createImage();
tb2 = tableWin->createTextBox();
tb3 = tableWin->createTextBox();
A question that don't regards scroll bar:
how can i set the mouse pointer visible also outside the render window (in windowed mode)? and to change it's image, i must set from ogre or i can from quickgui?
Oh, I think I know the problem, its probably that the borders of the text box aren't clipping. Can you actually click and type text into that textbox outside of the window? (can you show me a screenshot if you can type text in it)
Regarding the Cursor outside the window, that is an OIS specific question. Changing the OS cursor's image is OS dependent.
no, i can't type text into the textbox outside of the window. the strange thing is that if i scroll the window, when the textbox pass the border of the window the text appear.
this screenshot is more clear than my description:
Yep, it's just as I thought. I just need to fix clipping of border widgets. As long as nothing is wrong with scrolling, scrolling is a nightmare...
I will fix this soon. Please update this thread if I forget, I can't actively make fixes right now, I'm working on the new Render changes. Don't let that stop you from posting, otherwise I'm losing valuable feedback.
ok, don't warry! i will not stop posting and "studing" how use quick gui!
a last question: can i add a scroll bar to the window but setting allowScrolling(false)?
does it work?
Nope. The only reason I allowed users to create ScrollBars is if you wanted to tie the widget to some functionality not related to scrolling. It's impossible to just place a scrollbar on a widget and expect it to scroll.
For example, you could use scrollbars to adjust shader properties, like in the Ogre Ocean demo using CEGUI.
I tried an experiment: i have created a window (win) and with this widget i have created a text box (textBox = win->createTextBox();).
than i have called the function isChild(win) to determin if the text box is child of the window and the result show in a label.
i have obtained false...maybe is this the problem?
Interesting, I need to look into that. I don't think it is related to the problem but I could be wrong. Thanks for bringing it up, if its not working as intended it needs to be fixed.