Hi,
can you help me? How can i align the container when i maximize the pub (resize) ?
Because if I resize the pub the conatiner going on the left top corner of the pub, but i want to lock in center and midle of the pub -even if the pub maximize.
Thank you!
D
If resize the pub
Moderator: Neosoft Support
-
- NeoSoft Team
- Posts: 5628
- Joined: Thu Mar 31, 2005 10:48 pm
- Location: Oregon, USA
- Contact:
Re: If resize the pub
You would have to use the Resized action (Book Properties > Actions > Resized) and then use the MoveObject action to manually move the container to the center. You can use the global [ClientHeight] and [ClientWidth] variables to determine the new inside dimensions of the main pub window.
NeoSoft Support
Re: If resize the pub
Thank you for the Help! But do you know how could i count the center midle with the screen resolution?Neosoft Support wrote:You would have to use the Resized action (Book Properties > Actions > Resized) and then use the MoveObject action to manually move the container to the center. You can use the global [ClientHeight] and [ClientWidth] variables to determine the new inside dimensions of the main pub window.
D
Re: If resize the pub
Hello,
Take a look at the predefined global variables in the doc:
Take a look at the predefined global variables in the doc:
Regards[ScreenHeight] The height the entire Windows screen in pixels.
[ScreenWidth] The width of the entire Windows screen in pixels.
Hans-Peter
Re: If resize the pub
I do not know how, so if there is someone who can PAST a code, than please do it... Thanks.
D
D
Re: If resize the pub
Code: Select all
Math "[ScreenWidth]/2" "0" "[ScreenMidX]"
Math "[ScreenHeight]/2" "0" "[ScreenMidY]"
Hans-Peter
Re: If resize the pub
Worg great - thank you, BUT how to align to center middle if pub resized back to default size?
Thanks!
Thanks!
Re: If resize the pub
Code: Select all
Math "[ClientWidth]/2" "0" "[ClientMidX]"
Math "[ClientHeight]/2" "0" "[ClientMidY]"
Regards
Hans-Peter
Re: If resize the pub
Thank you! Works great!!!