Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Mandatory Pause after positive Message Box Response
#4
Hi,

It turns out I couldnt make a combination of OnScreenDisplay and Menu Items work because the background of the OnScreenDisplay covers the menu items. However, it seems that List does the trick (i.e. looks like a regular dialog but doesnt steal focus even though you can set a default (executes with a press of Return key). The user-defined macro (now in the "Yes Macro" instead of in the same macro executes immediately after the user enters the choice.

Code:
Copy      Help
str SignOffChoices = "&Yes[]No"
sel list(SignOffChoices "" "Sample Question?" 0 0 0 0 1)
,case 1 mac "Yes Macro"
,case 2 mac "No Macro"
,case else out "Cancel"

One additional question: There are a lot of extra lines - I geuss assuming that there would be many choices but with two, I dont need so much white space. Anyway to tighten this up. (like a character that indicates this is the last choice so should size the box appropriately?

This would be good for Toolbars also. It is often that I am spending a lot of time resizing toolbars manually.

Not trying to make extra work for you - just sharing ideas. Thanks for all your help!!
Stuart


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)