At 05:29 PM 4/5/2013, Dave McCann wrote:
Anybody using Roll-Up button on forms and if so, I'm trying to find how to
put the form back to a normal state through code? I have an MDI form with
roll-up enabled, if that form is called (and already open) I SET FOCUS but
cannot locate any way to put it back to normal. Tried the WINDOW_STATE
Property which does not work.
WINDOW_STATE has nothing to do with the RollDown or RollUp feature of the
the form.
Use the PROPERTY RBASE_FORM ROLLDOWN 'TRUE' to achieve such functionality.
Here's how:
01. Start R:BASE eXtreme 9.5 (32/64), Build: 9.5.2.20430 or higher ...
http://www.rupdates.com
02. CONNect the database and open the desired form in Form Designer
03. While in Form Designer, update the routine/EEP that will "RollDown"
or "RollUp" the form with the [x] Roll-Up Button enabled, using the
following PROPERTY commands:
-- Example 01
-- To Dynamically Roll Down the current form
PROPERTY RBASE_FORM ROLLDOWN 'TRUE'
RETURN
-- Example 02
-- To Dynamically Roll Up the current form
PROPERTY RBASE_FORM ROLLUP 'TRUE'
RETURN
-- Example 03
-- To Dynamically Roll Down the MDI form
PROPERTY 'MDI_FormName|RBASE_FORM' SET_FOCUS 'TRUE'
PROPERTY 'MDI_FormName|RBASE_FORM' ROLLDOWN 'TRUE'
RETURN
-- Example 04
-- To Dynamically Roll Up the MDI form
PROPERTY 'MDI_FormName|RBASE_FORM' SET_FOCUS 'TRUE'
PROPERTY 'MDI_FormName|RBASE_FORM' ROLLUP 'TRUE'
RETURN
That's all there is to it!
For complete details refer to R:Docs 9.5, Build: 9.5.2.20430 or higher
For a sample application to illustrate the use of RollDown/RollUp
PROPERTY for MDI Forms, refer to "Using RollDown/RollUp In MDI Forms",
sample included with 2013 R:BASE eXtreme 9.5 SAT Sample Applications.
Have fun!
Very Best R:egards,
Razzak.
www.rbase.com
www.facebook.com/rbase