Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 7 of 7
  1. #1
    Join Date
    Oct 2005
    Location
    American Dubai
    Posts
    629

    Menu Item : Check In Runtime

    how do i (in runtime) make a menu item "checked" ?
    i searched the action wizard and didnt find anything.. maybe missed it ?

    thnx,
    Mina

  2. #2
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160
    There are a couple of ways, you can use the Application.GetMenu which will return a table with the contents of the menu. You can then modify that table and then use Application.SetMenu to reload that menu back into the application. There is also a global function g_OnUpdateMenuCheck I think is the name of the function. You can use that to modify the menu on the fly.

    Tigg
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

  3. #3
    Join Date
    Oct 2005
    Location
    American Dubai
    Posts
    629
    appreciate ur help thnx

  4. #4
    Join Date
    Oct 2005
    Location
    American Dubai
    Posts
    629
    though an example would be good

  5. #5
    Join Date
    Nov 2001
    Posts
    498
    See an example from Desmond here.


  6. #6
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160
    Here is a sample using the built-in function.

    Look in the global function to see two functions that control whether the menu item will be checked or not. The global function g_OnUpdateMenuCheck is called for each item in the menu looking to see if there is a true or false value and checks that item according to the returned value. This simple project will check the only item in the second menu if there is text selected.

    HTH
    Tigg
    Attached Files
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

  7. #7
    Join Date
    Oct 2005
    Location
    American Dubai
    Posts
    629
    just what i was looking for!
    thanks

Similar Threads

  1. FUNCTION: Adjust Menu Item Properties
    By Desmond in forum AutoPlay Media Studio 7.5 Examples
    Replies: 20
    Last Post: 05-27-2010, 06:38 AM
  2. Enable menu at runtime
    By jerilyn in forum AutoPlay Media Studio 6.0
    Replies: 2
    Last Post: 09-28-2005, 09:15 AM
  3. INFO: Microsoft Data Access Components 2.8 Runtime Notes
    By Desmond in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 11-28-2003, 08:20 AM
  4. Replies: 3
    Last Post: 09-15-2003, 09:55 PM
  5. TUTORIAL: Showing and Hiding Objects in AutoPlay Menu Studio 3.0
    By Support in forum AutoPlay Menu Studio 3.0
    Replies: 0
    Last Post: 10-10-2002, 02:39 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts