Frameless Window

Hi Folks,

I have several windows in a program, All of the properties are set the same… Frame Type - Shadowed Box, Menu Bar - None, Placement - Mainscreen. Some of them open with about a 25 pixel band across the top as if it were expecting a menu bar. There is nothing in the Open Event that changes anything and I am out if ideas.

On the pages that go full screen without any border (preferred choice), even if I change the frame type to Document it still goes full screen without a border and the ones that have the top band stay that way regardless of which frame type I select.

Any suggestions??

John.

Maybe use this http://documentation.xojo.com/index.php/Window.FullScreen

Hi Michel,

Thanks again,that worked fine. It is curious how two windows needed it and the others didn’t. The only thing i can think of is that originally it was written in RB and the problem windows have been added later in XOJO. I think that RB had more options for the defaults as I recall.

John.

can show a window fullscreen but left a “desktop bar?”

What do you mean by “Desktop bar” ? Do you mean the menu bar under Mac, or the TaskBar under Windows ?

See http://documentation.xojo.com/index.php/Window.Maximize_method

I mean the taskbar under windows.

At any rate, maximize will do what you ask.

as I would like to create a borderless and title less window to simulate a “normal window”

I try maximize using “Plain box”,but it act as a “fullscreen”

self.left = screen(0).availableLeft self.top = screen(0).availableTop self.width = screen(0).AvailableWidth self.height = screen(0).AvailableHeight

this code works,but height is small than the screenHeight-taskbar.height

Now it’s time for you to work at some adjustments.

we need a parameter call depth. so it resolved. thanks