Click to See Complete Forum and Search --> : Can A MDI Form Exists Without Title Bar ?
September 29th, 1999, 08:00 AM
Hi,
Can I make my MDI Form without Title Bar and Control Box.. Instead of Title Bar I want to place Sheridian Panel and Display Title of my main Application .
Is it possible..
Regards
Prasad
Dr_Michael
September 29th, 1999, 08:16 AM
... by setting these properties for the form with this order:
1. Border Style = Fixed Dialog
2. Control Box = False
3. Caption = (nothing)
Well, add a label at top of form, color it as you want, add another label over this with the caption you want (transparent color) and generally let your phantasy to create...
Michael Vlastos
Automation Engineer
Company Modus SA
Development Department
Greece, Athens
September 29th, 1999, 11:25 PM
Hello Dr. Micheal,
This is Prasad.. Hope ur properties work fine with normal form but not with MDI Forms.. Please Let me know for MDI Form.. MDI Form doesn't support all these properties which u have listed..
Regards
Prasad
September 30th, 1999, 01:21 PM
Yes u can work without a status bar
for more details contact
bhopalraj@usa.net
sunsui@usa.net
in detail !!
Sunsui Labs
Aaron Young
October 6th, 1999, 03:44 PM
You can use the SetWindowLong API to change the MDI Forms Window Style to Exclue the Title Bar and Buttons, eg.
private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (byval hwnd as Long, byval nIndex as Long, byval dwNewLong as Long) as Long
private Const GWL_STYLE = (-16)
private Const WS_OVERLAPPED = &H0&
private Sub MDIForm_Load()
Call SetWindowLong(me.hwnd, GWL_STYLE, WS_OVERLAPPED)
End Sub
Aaron Young
Analyst Programmer
adyoung@win.bright.net
aarony@redwingsoftware.com
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.