Here is another LC wish list for practical reasons:

I with that the menu item format for "regular" (pulldown/menubar) menus of:

[<flags>] <label> ['/' <accelerator> ['|' <tag>]] -- with the caveat that to have a <tag> with out an <accelerator>, you just use /|<tag> [NOTE: This syntax is listed in the Dictionary under the "Menu" (keyword)]

Would work with other menu types, like OPTION menus (as 1 example)

I have several option menus with some long text for each options, for example:

All References to one media file
All References for each Case to a media file per Case
All References for each Source to a media file per Source
All References for each Code to a media file per Code
All References for each Code for each Source to a separate media file
All References for each Code for each Case to a separate media file
Each Reference to a individual media file

I would LOVE to be able to use <tags>s for internationalization (and simplicity), for example:

All References to one media file/|all
All References for each Case to a media file per Case/|case
All References for each Source to a media file per Source/|source
All References for each Code to a media file per Code/|code
All References for each Code for each Source to a separate media file/|codeSource All References for each Code for each Case to a separate media file/|codeCase
Each Reference to a individual media file/|individual

This way my menuPick handler could look like:
on menuPick pChosenItem, pPreviousTab
  switch pChosenItem
    case "all"
      -- do stuff for the 1st option
      break
    case "case"
      -- do stuff for the 2nd option
      break
    case "source"
      -- do stuff for the 3rd option
      break
    -- etc
  end switch

And if I need to change the text of the OPTION menu items, say to another language for internationalization, I do not have to change my on menuPick handler as well. Every button of type menu that is handled by a menuPick handler, should support <tags> for ease of internationalization.

Unfortunately, <tags> do not work in Option menus (I have not tested any other non-menubar menu types)
end menuPick


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to