>>Is there a function that returns the height of the client area in pixels? I tried SYSMETRIC(22) but the number returned was much less that the actual height. Also, SYSMETRIC seems to ignore the status bar... I need to know how much room I have with the status bar on.
>>
>>TIA
>Try :
>
>this.height=_screen.height - sysmetric(29) - sysmetric(4)*2 - 1
>this.width=_screen.width - sysmetric(4)*2
>
>Cetin
I always prefer visual way to do that, just to make sure it looks good... :)
I have a couple of spinners in my classlib and for such purpose temporarily place them to the form and run it.
***spnHeight.Init()
this.value = thisform.height
***spnHeight.InteractiveChange()
thisform.height = this.value
Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison