I would use disk file named for the name of the form saved in the users temp dir. If there is more data than just the location you want to save, then use a hidden variable listbox to load/save the settings. You save the lines of info in the form of RBase commands, then all that is required to process the lines is when you read the line into a variable, you execute it using ampersand of the variable.

This process is present in some of my presentations and examples from maybe 4 or 5 years back. I am on vacation at the moment and can't get at my stuff readily, but if any specific examples are needed that you can't figure out yourself, I will endeavor to retrieve the examples for you.

----- Original Message ----- From: "Doug Hamilton" <[email protected]>
To: "RBASE-L Mailing List" <[email protected]>
Sent: Wednesday, February 18, 2009 9:16 PM
Subject: [RBASE-L] - Re: Forms remember screen locations


You're welcome. I just realized that's gonna give every form the same size & position (because I only have the caption buttons on one form, the Main Menu). You could add a UserParamFormName column to UserParams and each form would have its own size & position.

Doug

MDRD wrote:

 Doug

 Thanks, learned something new today

 Marc

----- Original Message ----- From: Doug Hamilton
   To: RBASE-L Mailing List
   Sent: Wednesday, February 18, 2009 3:20 PM
   Subject: [RBASE-L] - Re: Forms remember screen locations


Marc - I put buttons on the caption bar. A "Save" button stores the left, top, width and height values in a UserParams table.
   3 cols in the table UserParams:
   ParamUserID TEXT 16
   UserParamName TEXT 24
UserParamValue TEXT 64 (that might be a little long for form coordinates, but I store other stuff in that col too, e.g. emails addrs)




Reply via email to