Thanks heaps Yas

Works brilliantly

I owe you a beer


For the rest of the list here's Yas' solution:


        You basically call Handler right when you create a dialog...


        You say...

        Sub DialogSub

           Dialog
              Title "Testing"
              calling DialogSetupHandler

              Control Button
                 ID 100
                 Title "ClickMe"

              Control OKButton
              Control CancelButton

        End Sub

        Sub DialogSetupHandler

           If NumTables() > 0 Then
              Alter Control 100
                 Show
           Else
              Alter Control 100
                 Hide
           End If

        End Sub


        This basically will Show/Hide certain control depending on if user
has
        opened tables or not
        Good enough?



        Yas
        Software Engineer
        voice: (918) 877.6704 or (800) 727.6774
        fax:   (918) 877.6960
        web:   http://www.mpsisys.com
        email: [EMAIL PROTECTED]

Scott Barling
GIS/Assets Technical Assistant

Eurobodalla Shire Council
Tel:    +61 (02) 4474 1251
Fax:    +61 (02) 4474 1234
e-mail: [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> 

        


        -----Original Message-----
        From: Scott Barling [mailto:[EMAIL PROTECTED]]
        Sent: Sunday, October 29, 2000 5:19 PM
        To: MapInfo-L (E-mail)
        Subject: MI-L MB: Hide Show Dialog Controls


        Hi everybody,

        Is it possible to set whether a control is hidden or not in a dialog
before
        the dialog is opened using MB?

        For example:

        If the number of tables open is greater than 1 open the dialog with
a
        control showing, if less than 1, open the dialog with the control
hidden.

        Please respond to me directly, I will post a summary to the list.

        Thanks heaps

        Scott Barling
        GIS/Assets Technical Assistant

        Eurobodalla Shire Council
        Tel:    +61 (02) 4474 1251
        Fax:    +61 (02) 4474 1234
        e-mail: [EMAIL PROTECTED]
        


_______________________________________________________________________
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, send e-mail to [EMAIL PROTECTED] and
put "unsubscribe MapInfo-L" in the message body.

Reply via email to