On May 02, 2006, at 18:58 UTC, Matt Harrington 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.
That's because the window hasn't gone full-screen yet. Try doing this in the Resized event. That works for me. Best, - Joe > > 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> > -- Joe Strout -- [EMAIL PROTECTED] Available for custom REALbasic programming or instruction. _______________________________________________ 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>
