Only resize the form with an IF... THEN... ENDIF but specify the two sizes that 
you want to allow:
Something like:

IF vWidth = 500 OR vWidth = 1000 THEN
  SET vWidthSize = .vWidth
  IF vWidth = 500 THEN
    SET vHeight = 200
      ELSE 
    SET vHeight = 400
  ENDIF
ENDIF

Obviously, choose the IF statement that suits your needs - you might like a 
BETWEEN or something so that the user/app can move between the two sizes...

Regards,
Alastair.


  From: Jason Kramer 
  Sent: Tuesday, January 05, 2010 2:55 PM
  To: RBASE-L Mailing List 
  Subject: [RBASE-L] - Re: Form constraints


  Jan,
      Thanks.  I saw those commands, but I want to lock the size of the form so 
the user can't change it.  I need to display to form at two different sizes, 
depending on what the user is doing, so I can't specify the Max and Min sizes 
at design time.
                                                      Thanks,
                                                      Jason

Jason Kramer
University Archives and Records Management
002 Pearson Hall
(302) 831 - 3127 (voice)
(302) 831 - 6903 (fax)

  jan johansen wrote: 
    Jason,

    The following form properties are available;

    PROPERTY RBASE_FORM CLIENTHEIGHT 'nnn'
    PROPERTY RBASE_FORM CLIENTWIDTH 'nnn'
    PROPERTY RBASE_FORM WIDTH 'nnn'
    PROPERTY RBASE_FORM HEIGHT 'nnn'

    Additional properties can be found at 
    http://www.rbase.com/property/property.php

    Jan
     

     
      -----Original Message-----
      From: Jason Kramer <[email protected]>
      To: [email protected] (RBASE-L Mailing List)
      Date: Mon, 04 Jan 2010 14:19:33 -0500
      Subject: [RBASE-L] - Form constraints

      Is it possible to set the MaxWidth, MinWidth, MaxHeight, and MinHeight 
using a Property command?  I have tried:
      PROPERTY RBASE_FORM maxwidth 600
      and
      PROPERTY RBASE_FORM constraints->maxwidth 600
      and
      PROPERTY RBASE_FORM constraints[1] 600
      but none seem to work.

                                     Thanks,
                                     Jason

-- 
Jason Kramer
University Archives and Records Management
002 Pearson Hall
(302) 831 - 3127 (voice)
(302) 831 - 6903 (fax)

------------------------------------------------------------------------------



  No virus found in this incoming message.
  Checked by AVG - www.avg.com 
  Version: 9.0.725 / Virus Database: 270.14.126/2601 - Release Date: 01/05/10 
07:35:00

Reply via email to