Hi
all,
I am very new to Sdl and
Paragui and hence this question might seem very simple to most of you.
First of all thanks to John R. Hall for suggesting me to use
Paragui.
I already have my
program written using SDL working fine, and also a simple scrollbar program in
Paragui working fine. Now I would like to merge both of them, so that I will
have the scroll bar position input available for the SDL
part.
I actually need to have
the scrollbar on top of the SDL surface.
How do I do it in a simple way.
Actually presently I have coded
app.InitScreen(1280, 480, 0, SDL_SWSURFACE);
PG_Rect
sc_rect(50, 50, 100, 300);
PG_ScrollBar myscroll(NULL, 100, sc_rect,
PG_SB_VERTICAL);
myscroll.Show();
app.Run();
for the scroll bar
and afterwards when i use
screen = SDL_SetVideoMode(1280, 480, 24,SDL_RESIZABLE);
.............................
to display the image, the scroll bar disappears. I would like to
have both of them visible.
Any help in this regard would be
great.
I guess from the documentation that I need to use one of them as
the parent. But If I do that, it says "cannot convert parameter 1 from struct
SDL_Surface *' to 'class PG_Widget *"
Thanks,
Raj