Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Enable dimmed button


3 replies to this topic

damird

damird
  • Members
  • 6 posts

Posted 09 July 2003 - 12:07

Hi.

Is tehre a way to enable a dimmed button depending on certain action on the dialog.

eg. I have a custum dialog with a Text field. Is there a way to 'disable' (dim) a button when a dialog pops up and enable it after the user enters something into the text box (I want to validate the user input).

How can I do this?

10x and regards,
Dezo

luke_s

luke_s
  • Full Members
  • 532 posts

Posted 09 July 2003 - 23:50

You can enable/disable buttons by using the control event table (dialog behaviour, condition for control)

E.g you can add an event to disable a button when PROPERTY<>1

damird

damird
  • Members
  • 6 posts

Posted 10 July 2003 - 11:43

Yes I know this, however I stil have problems.

I did the following:
Put a text box on a custum dialog. Set the property of this text box to MY_HOST. Then I put a Condition to the Next button:
----
Disable IVD_SRV_HOST=""
----

This way the button remains dimmed until I press back and then next (so it seams that the property is set only when you exit the current dialog).

Do you have any sugestion how to solve this?

Regards,
Dezo

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 10 July 2003 - 17:08

I believe the property is only updated when the edit field looses focus. So this will not work with standard MSI UI elements.