Jump to content
Server Maintenance This Week. ×

how can i add...


This topic is 7259 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Unfortunately there is no rollover feature in FM. But I've been playing with the FM7 popup window feature to build help into my solution.

First, have your buttons trigger scripts rather than perform some built-in action. Within your script you set it so that if the button is clicked the script executes as normal. But if it is Shift-Clicked, a help window pops up.

For example, I have a New Record button. It executes the following script:


Set Error Capture On

Perform Script ["Help"; Parameter: "Help - New Record"]

New Record/Request





The Help script is:



If [Get(ActiveModifierKeys)<>1]

     Exit Script

Else

     New Window [Name: Get(ScriptParameter); Height:250; Width:600; Top: 200; Left:200]

     Show/Hide Status Area [Lock ; Hide]

     Go To Layout [Get(ScriptParameter)]

     If [Get (LastError) = 105]

          Go To Layout ["Help - No Help Associated With This Topic"]

     End If

     Halt Script

End If

Then I just have to design layouts that have the help information that needs to be displayed, and take care to name them the same as the script parameter.

Good luck,

Dan

Link to comment
Share on other sites

This topic is 7259 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.