General information
Category:
Forms & Form designer
>Francisco,
>
>If MyWidth is a #DEFINE constant your approach won't work because the #DEFINE >is a compiler directive that is only evaluated at compile time. You would be >better to use the SYSMETRIC() call right in your code or to use a property or >memvar to hold the value.
I used a memvar, but the main problem is this:
In the form designer, in properties you have Witdh, and there
you can't put a memvar or constant. You have to put a number (
(10,120,640 etc) so I'm forced to put 640.
In the Activate Event I put:
ThisForm.Width=MyWidth (memvar or constant)
Suppose MyWidth is 800. I also tried in the Init Event.
When I run the form: The Width is still 640.
I can't change it to 800 unles I put 800 in
the Width Property of the form.
So the width is always constant and I can't change it
dependign of sysmetric().
Any suggestions.
Thanks for your help and time.
Francisco
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only