From the Edge: Using One Form to Enter, Edit and Browse Data Section: Form Designer Chapter: Running R:BASE Your Way! Platform: R:BASE 7.1 for Windows Build: 7.1.72.30323 and higher
The fully supported and documented PROPERTY and GETPROPERTY commands in R:BASE 7.1 for Windows introduces yet another possibility for designing only one form which can be used as ENTER, EDIT or BROWSE with related captions, field focus and dynamic display of custom navigation buttons depending on the mode of the form.
Typically, we'll have a separate form for data entry, for example CustomerEnter, with specific push buttons related to ENTER mode, and then another form, for example CustomerEdit, with specific push buttons related to EDIT mode. Then to be really cool, we'll have another form, for example CustomerView, with specific push buttons related to BROWSE mode. That makes at least three forms that give your application a nice look and feel related to data entry, edit and browse functions.
Now, you can design a form using R:BASE 7.1 for Windows to achieve the functionality of using one form as Enter, Edit and Browse mode. All you have to do is to assign Component IDs for all related controls, custom navigation bar with push buttons, and then decide what caption to display, where the focus should be when the form starts, and finally which push button of the custom navigation bar to activate, and which push button of the navigation bar to disable when using the form as Enter, Edit or Browse mode.
Included is an example of using the same functionality in all forms included with Running R:BASE Your way! (Part 8) sample applications, bundled with R:BASE 7.1 for Windows. (Figure 1)
Each form is based on new Enhanced Tab Control and Custom Navigation Bar using Enhanced GroupBox with custom First, Prev, Next, Last, Add, Del, Save, Cancel and Refresh Bit Buttons.
For complete details, examples and code, a PDF document of this article is also available at:
From The Edge: http://www.razzak.com/fte (Powered by R:PHP) Category: R:BASE 7.x for Windows
Enjoy and make sure to have fun!
Very Best R:egards,
Razzak.
--- RBASE-L ================================================ TO POST A MESSAGE TO ALL MEMBERS: Send a plain text email to [EMAIL PROTECTED]
(Don't use any of these words as your Subject:
INTRO, SUBSCRIBE, UNSUBSCRIBE, SEARCH,
REMOVE, SUSPEND, RESUME, DIGEST, RESEND, HELP)
================================================
TO SEE MESSAGE POSTING GUIDELINES:
Send a plain text email to [EMAIL PROTECTED]
In the message SUBJECT, put just one word: INTRO
================================================
TO UNSUBSCRIBE: Send a plain text email to [EMAIL PROTECTED]
In the message SUBJECT, put just one word: UNSUBSCRIBE
================================================
TO SEARCH ARCHIVES:
Send a plain text email to [EMAIL PROTECTED]
In the message SUBJECT, put just one word: SEARCH-n
(where n is the number of days). In the message body, place any text to search for.
================================================

