Notifications
Clear all

[Closed] Position of Rollout

Hi everybody

using getDialogPos and the name of the rollout we can find the position of a rollout but when we have multi roulout in one getDialogPos show [0,0]

rollout rollout01 "Rollout 01" category:10
(
  button btn_pressme "Press Me"
)
CreateDialog rollout01
getDialogPos rollout01 --for me [711,395]
rollout rollout01 "Rollout 01" category:10
(
  button btn_pressme "Press Me"
)
rollout rollout02 "Rollout 02" category:1
(
  button btn_pressme "Press Me"
)
rollout rollout03 "Rollout 03" category:2
(
  button btn_pressme "Press Me"
)
theFloater = newRolloutFloater "Test" 200 200
addRollout rollout01 theFloater
addRollout rollout02 theFloater
addRollout rollout03 theFloater

getDialogPos rollout01  ---[0,0]

How to get the position of such rollout?

2 Replies

2nd example uses newRolloutFloater
you can use :
theFloater.pos
to get or set the position of the window.

Thanks so much For the reply