Resize Questions

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
xhrit
Posts: 140
Joined: Mon Jun 14, 2004 8:54 am
Location: earth
Contact:

Resize Questions

Post by xhrit »

I am not exactly sure how to describe them, vertical/horizontal resizable split views?

they say a picture is worth a thousand words;

Image

the area between the row display and the database schema is a 4px wide bar, when the user hovers over said bar, the cursor should change, and upon mouse down, should be able to drag the line left or right. resizing the views.

I can emulate the effect with a button and lots ov scripting, is there a feature native to irrlicht that does the same thing?

Next question is; is there a window resize event? All my gui elements are placed relative to window size, if the user sets the resolution in the settings and then restarts the application it looks as it should.

However if the user just resizes the window, there is a black area or parts get cut off, depending on if you make the window bigger or smaller, as the gui elements are not sized to the window on the fly.

any help will be appreciated.
Core2Duo E8400 3.0ghz - 2048mb DDR2 800 - geForce 9600 - Slackware12.1

Word-image-symbol programming limits, controls, and imprisons the individual.
Smash the control images, smash the control machine.
CuteAlien
Admin
Posts: 9933
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

Sorry, Irrlicht does not support such window-splitting so far. I'm also not yet sure what is the best way to implement this - making it a special element or doing this by some element attributes. When I needed that once I hardcoded it in CGUIWindow (old patch is still online here but won't work anymore without some adaptions). Basically I just allowed resizing the border of a window - and hardcoded in neighborwindows that they also reacted on resize events by resizing themselves. Works, but not a good solution, so I won't add it that way to the engine.

Also changing cursors is not yet supported by Irrlicht so far. So currently you have to use the OS-specific API for that.

Also looks like you currently have to poll to find out about resizing.

But we have some support to make resizing of gui-elements easier. You can set the alignment of each border of a IGUIElement and also set some min/max sizes.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply