move widget

View previous topic View next topic Go down

move widget

Post  sakrist on Fri May 15, 2009 5:56 pm

A simple question.

Can a Widget be moved?
avatar
sakrist

Posts : 23
Join date : 2009-04-28
Age : 29

View user profile http://www.developers-life.com

Back to top Go down

Re: move widget

Post  Francescu on Fri May 15, 2009 6:53 pm

Yes, just reset:

_myWidget->_SIO2transform->loc->x
_myWidget->_SIO2transform->loc->y

Francescu

Posts : 136
Join date : 2009-03-18

View user profile

Back to top Go down

Re: move widget

Post  sakrist on Sat May 16, 2009 6:43 am

Francescu wrote:Yes, just reset:

_myWidget->_SIO2transform->loc->x
_myWidget->_SIO2transform->loc->y

thanks

x and y max 1 Smile I set 10, 100 Smile

my improvement in landscape
Code:
x = 100;
y = 100;

x = x * (1.0f/480.0f);
y = 1.0f - y * (1.0f/320.0f);
avatar
sakrist

Posts : 23
Join date : 2009-04-28
Age : 29

View user profile http://www.developers-life.com

Back to top Go down

Re: move widget

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum