Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hiding the Title Bar of a Main Window

Status
Not open for further replies.

PBFighter

Programmer
Jan 18, 2008
4
CA
Hi,

I'm trying to create a window that will allow me to disable/hide the title bar. I originally have this programmed using a pop-up window, however, there are certain properties of pop-up windows that make this less desirable (when the pop-up window is clicked, the parent window is brought into focus, minimization of the parent window also minimizes the pop up - I'd like to keep it maximized). The best alternative I could think of would be to change the window type to main, however, I do NOT want a title bar as I do not wish the user to be able to reposition, or generally manipulate the screen.

I haven't been able to figure out how to disable the title bar of a main window type and google has proven futile. Any ideas?

Thanks in advance.
 
As far as simply checking/unchecking a checkbox to hide/show the titlebar, I know of none for a Main window.
 
Could you possibly use a Response! window ?? That has a checkbox to turn off the title bar.
 
You can have this done either at design time or at execution time.

The first would be disabling the check box for MaxBox, MinBox, Resizable.

The second can be done by seting to false the next values in it's parent class:

titlebar = false
minbox = false
maxbox = false
resizable = false

remove the icon property and the title property too.

This is how I would do it. But it depends on what you need. Now since this would remove any option from the titlebar, including it's name displayed to the user, I would recomend you to use a response! window since it can't be moved to anyother part of the screen. The 2 other answers are good ones too.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top