I never use full screen ... Sounds like an RB bug  if the window is bigger than 
that but you don't get the larger dimensions...

That said a possible work around  (ignoring some things) could be something 
like: (maybe need to use Screen.Available*?)

If Window1.FullScreen then
   Control1.Left = (Screen(0).Width - Control1.Width)/2 ' Window border width?
   Control1.Top = (Screen(0).Height - Control1.Height)/2 
   ' Do you need to take Title bar and/or a Menu into account as well as Frame?
Else
 Control1.Left = (Window1.Width - Control1.Width) / 2 
 Control1.Top = (Window1.Height  - Control1.Height )/ 2
End if
-------------- Original message -------------- 
From: Matt Harrington <[EMAIL PROTECTED]> 

> I want to center a control in a fullscreen window with 
> Window1.Fullscreen=True and Window1.MenuBarVisible=False. I use 
> RB2006 R1 on OSX 10.4.6. From what I can gather, I have to set the 
> control's position in Window1's Open event like this: 
> 
> Control1.Left = (Window1.Width / 2) - (Control1.Width / 2) 
> Control1.Top = (Window1.Height / 2) - (Control1.Height / 2) 
> 
> My problem is that even when Window1.Fullscreen=True, I still get: 
> 
> Window1.Width = 1024 
> Window1.Height=768 
> 
> Those are the values I created Window1 with in the first place. 
> 
> So, how do I really get a fullscreen window, and is my logic for 
> centering a control in a window sound? I also tried 
> "Window1.Maximize" in Window1's Open event handler, but I still only 
> get Width=1024 and Height=768. 
> 
> ---Matt 
> 
> _______________________________________________ 
> Unsubscribe or switch delivery mode: 
> 
> 
> Search the archives of this list here: 
> 
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to