Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Undocumented ERROR #46
Message
From
01/04/2004 11:17:53
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
01/04/2004 10:35:35
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00891256
Message ID:
00891497
Views:
33
Glenn,
HeaderHeight is not illegal.
Wouldn't this work ?

*Grid.Init
with this
.RowHeight = -1
.HeaderHeight = 0
.Height = Max(Sysmetric(8) + Sysmetric(10)*3, .RowHeight)
endwith

Cetin

>I needed my grid.headheight = 0 and my height = 20 both of which are "illegal" values. I reset them to smallest "legal" values and then change the grid.visible = .F.
>
>grid.init
>
>DODEFAULT()
>
>LOCAL lcError, llError
>lcError = ''
>llError = .F.
>
>lcError = ON('ERROR')
>
>ON ERROR llError = .T.
>
>WITH This
> .HeaderHeight = 0
> .Height = 20
> .Top = 10
> .Visible = .T.
>ENDWITH
>
>IF EMPTY(lcError)
> ON ERROR
>ELSE
> ON ERROR &lcError
>ENDIF
>
>
>This is not pretty but it works... additionally resizing the grid is not necessarily a clean appearance on the screen. I wonder if anyone has a sample of the WIN API call to get the value for the windows fonts and I could use that to build this functionality into the base class. Trapping this error and ignoring seems to cause no problems....so far
>
>Thanks,
>
>Mike
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform