Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / BlueGUI: resizable window + scrollbars

Author
Message
RaZX
17
Years of Service
User Offline
Joined: 24th Mar 2007
Location:
Posted: 24th Mar 2007 19:25
Hi,

I'm using DBPro and BlueGUI and I have a question about scrollbars on resizable windows. What I aim to get is a simple resizable window that holds a larger image and then use the scrollbars to browse over it.

Currently I'm doing some tests based on this source code I found somewhere in this forum:




This code is not mine, but from D Ogre. I hope he won't mind me using it as a starting point.. The thing is I'd like to know if there's a way to update the scrollbars' size and position whenever the window is resized, much like regular Win apps behave. Currently they get stuck at their original position, much to my despair.

I've tried catching up gadget events (GADGET_SIZING and GADGET_SIZE - what's the difference btw?) to trigger updates on sliderX and sliderY but failed miserably.

Any ideas/suggestions?

Cheers

Login to post a reply

Server time is: 2024-11-25 22:53:26
Your offset time is: 2024-11-25 22:53:26