Widget->setPosition() for relative position

spacegaier

02-03-2010 20:38:29

Hello folks,

I am just trying to position some MyGUI widgets relatively (as you can do it with static layouts) at runtime. But there is only a method to set a widget's position absolutely. Is this situation created by purpose or is there a way to achieve my wish?

Thanks in advance!

Cheers
spacegaier

Altren

02-03-2010 21:37:25

Multiply relative position on screen width and height and use that value as new position.

spacegaier

02-03-2010 22:23:03

Doh...why didn't I come up with that myself :oops: