Resize problem

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
Quibbler
Posts: 25
Joined: Tue Feb 14, 2006 5:34 pm

Resize problem

Post by Quibbler »

I have created Irrlicht device inside a Win32 window and now I want to resize the device so that I can have ordinary Win32 scroll bars below and to the right of the device rendering area.

How can I do this?

I want to capture window messages in my window procedure and forward them to my event receiver so that Irrlicht can resize its device area accordingly.
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

don't create Irrlicht in the window, but create another widget in the window and create Irrlicht inside this widget...
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
Quibbler
Posts: 25
Joined: Tue Feb 14, 2006 5:34 pm

Post by Quibbler »

Right, and what type of widget do you recommend me to create?

A borderless owner-drawn button or what?
SwitchCase
Posts: 170
Joined: Sun Jul 01, 2007 11:41 pm
Location: Manchester, UK

Post by SwitchCase »

A borderless button would work great... aslong as you can't click it, otherwise you'll get a flashing mess as it's redrawn.
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

you can use any widget you can get the hdc from...
maybe a picture box... ;)
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
Post Reply