Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Thu Nov 14, 2019 7:27 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Window Resized,Resizing,Restore,Moved,Maximize,Minimize...
PostPosted: Thu Aug 23, 2012 10:22 am 
Offline
User avatar

Joined: Mon Nov 29, 2010 7:01 pm
Posts: 446
I have controls that are suppose to maintain being centered.

I have put my sizing event in the Window Resized,Resizing,Restore,Moved,Maximize,and Minimize events but on the windows version if you hit the maximize button it still doesn't center the controls. Resizing the window manually works just not when clicking...

Any ideas? Bug?


Top
 Profile  
Reply with quote  
 Post subject: Re: Window Resized,Resizing,Restore,Moved,Maximize,Minimize.
PostPosted: Fri Aug 24, 2012 2:40 am 
Offline

Joined: Sun Nov 26, 2006 11:01 am
Posts: 58
Are you sure the Maximize-event fires? Execute a MsgBox in the event.

The LR says:
Quote:
The window has been maximized. The user triggers the Maximize event by calling the Maximize method, clicking the right button on Macintosh and Linux or the middle button on Windows when the window is in its non-maximized state. If the window has already been maximized, then clicking this button fires the Restore event.


Top
 Profile  
Reply with quote  
 Post subject: Re: Window Resized,Resizing,Restore,Moved,Maximize,Minimize.
PostPosted: Fri Aug 24, 2012 3:27 pm 
Offline
User avatar

Joined: Mon Nov 29, 2010 7:01 pm
Posts: 446
All of the window events are firing, I checked.

The problem appears to be that ContainerControls don't fire their own resized events when the parent window is maximized, and therefore their controls never get moved to the proper location.

So putting the script in the CC's Maximize and resizing events doesn't help. I put it in the resized event of the CC and now everything is good!


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group