NOSIZE Property

 

Enable or disable the capability to re-size the Window

 

 

Description:

 

The NOSIZE Property can be used to enable or disable the capability to re-size a Window, including the system menu SIZE option

 

Syntax:

 

    THISWINDOW | <FormName>.NOSIZE --> lValue

 

    THISWINDOW | <FormName>.NOSIZE := lValue

 

Valid For Use With:

 

This Property is assumed to be available for use with all Window types

 

Notes:

  1. This property is only available after Window definition

  2. It is one of the newer properties which is intended to overcome a limitation with the SIZABLE property which can only be used during Window definition

  3. Important: The values used or returned by THISWINDOW | <FormName>.NOSIZE can easily be misunderstood!

    • Firstly, when you change the value the old value is not returned

    • Secondly, when you need to change the value (either enable or disable the users ability to resize the screen), you do use the value that you would expect. Eg. to disable resizing, you would use THISWINDOW | <FormName>.NOSIZE := .T.

    • Finally, note that the value returned when using THISWINDOW | <FormName>.NOSIZE appears to be the opposite of the value that you would expect. so if you run THISWINDOW | <FormName>.NOSIZE := .T. and then run THISWINDOW | <FormName>.NOSIZE the value returned is actually .F.!

  4. Using this property once a Window has been displayed may affect its width and height appearance very slightly when changes are made

  5. No help documentation was published with the original or subsequent releases of HMG

Properties:

 

The following Property is available after the Window has been defined

 

lValue Logical R, W Gets / Sets a logical value to enable / disable the Window re-sizing. Please refer to Note 3, above

 

D - Properties of this type can be used when defining a Window

R - Properties of this type can only be accessed (read) after the Window has been defined

W - Properties of this type can be changed (write) after the Window has been defined

 

See GETPROPERTY and SETPROPERTY functions for further infomation on accessing or changing properties or use semi-OOP syntax

 

Sample Code:

 

Sample code to test this Property can be found here