|
-
September 29th, 1999, 08:00 AM
#1
Can A MDI Form Exists Without Title Bar ?
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
-
September 29th, 1999, 08:16 AM
#2
Yes you can...
... 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
#3
Re: Yes you can...
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
#4
Re: Can A MDI Form Exists Without Title Bar ?
Yes u can work without a status bar
for more details contact
[email protected]
[email protected]
in detail !!
Sunsui Labs
-
October 6th, 1999, 03:44 PM
#5
Re: Can A MDI Form Exists Without Title Bar ?
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
[email protected]
[email protected]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|