Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do you calculate the header height?
Message
From
11/11/1999 19:54:06
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00290365
Message ID:
00290403
Views:
35
>>>Hi Dan,
>>>
>>>Look at sysmetric(3) and sysmetric(4) as well. they tell you the border width of the form. Also 10 and 11 (for non-sizeble borders).
>>>
>>>Sysmetric(9) tells you the height windows sets for a window title. I doesn't change if you don't have a title, it's just the default setting for all window titles. I put the following in a button and it lines a form up perfectly next to the button.
>>>
>>>x = newobject('form')
>>>x.titlebar = 0
>>>x.top = this.top + thisform.top + sysmetric(9) + sysmetric(4)
>>>x.left = this.left + this.width + thisform.left + sysmetric(3)
>>>x.show
>>>
>>>hth.
>>
>>If you turn the title bar off will it still work? It would sure be nice if VFP had a HeaderHeight property. Or is that asking to much. < g >
>
>Um.. See the bold line above, but it works the same with/without titlebar.

Actually, I just turned the titlebar off in design mode, added a command button on the form and in the click event I have the code

WAIT WINDOW STR( SYSMETRIC( 9 ) ) NOWAIT

I added a THISFORM.TitleBar = 0

And still this always returns 24.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform