At 04:39 PM 5/2/2012, Stephen Markson wrote:

... but I believe the form will open on top of the PAUSE box before doing the query. That's OK though because the PAUSE box can be moved to the side while the form loads.


Here's a slick method which you can adapt to achieve the desired result, if you wish.

Three Steps:

01. Define the PAUSE 3 options as "On Before Start" EEP, such as:

    -- On Before Start EEP
    CLS
    PAUSE 3 USING 'Preparing ListView Data ... Please Wait ...' +
    CAPTION ' Customer Master List' ICON INFO +
    OPTION MESSAGE_FONT_NAME Tahoma +
    |MESSAGE_FONT_COLOR NAVY +
    |MESSAGE_FONT_SIZE 11 +
    |THEMENAME Longhorn
    RETURN

02. Define the following code as "On After Start" EEP:

    -- On After Start EEP
    PROPERTY ListViewCompID SET_FOCUS 'TRUE'
    PROPERTY ListViewCompID MAKECLICK 0
    RETURN

    -- Do NOT use the CLS as on After Start EEP

03. Define the following code as "On Click" EEP for ListView control:

    -- ListView On Click EEP
    CLS
    RETURN

So, here's the sequence of events:

01. On Before Start EEP (Step 01) will be executed as soon as the EDIT USING
    formname command is issued. The PAUSE message will be displayed while
    the "huge" data set is being loaded in the ListView based on WHERE clause,
    etc,.

02. Once the data set is loaded successfully, the "On After Start" EEP will
    be executed which will click on the first row in the list.

    PAUSE Command will remain intact until the 3rd step.

03. On Click EEP for the ListView will clear the PAUSE 3 message accordingly.

A totally automated and dynamic solution to achieve your goal.

Have fun!

Very Best R:egards,

Razzak.

www.rbase.com
www.facebook.com/rbase


Reply via email to