There is a screen class. It gives information about the availeble moniters. If there is just one moniter, you should use screen(0). That would be the first moniter. If you keep the taskbar you should use screen(0).AvailebleHeight/Width. If you don't keep the taskbar just Screen(0).Height/Width
Maarten On 02/05/06, Matt Harrington <[EMAIL PROTECTED]> wrote:
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: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________ 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>
