Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Menus, popup and toolbar

Menus, popup and toolbar

Scheduled Pinned Locked Moved C#
delphiquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Ronenb
    wrote on last edited by
    #1

    Hi, I would like to create application that support main menus, toolbar and popup menus. I know I can define one function and related all events ‘Click’ to this function. I would like to define shortcut, tooltip and image for each GUI interface such as main men, tool bar and popup menu. Is there an option to define it one time and relate it to each control? I know I have in Borland type call ‘Action’ that can define the event function and property such as tooltip, shortcut and then define the action in each control That way I define it one time and not three times for each option in GUI Thanks Ronen

    C 1 Reply Last reply
    0
    • R Ronenb

      Hi, I would like to create application that support main menus, toolbar and popup menus. I know I can define one function and related all events ‘Click’ to this function. I would like to define shortcut, tooltip and image for each GUI interface such as main men, tool bar and popup menu. Is there an option to define it one time and relate it to each control? I know I have in Borland type call ‘Action’ that can define the event function and property such as tooltip, shortcut and then define the action in each control That way I define it one time and not three times for each option in GUI Thanks Ronen

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Ronenb wrote:

      Is there an option to define it one time and relate it to each control?

      Sure, you can create one method and point all of your events to it. That's about it, really.

      Christian Graus Driven to the arms of OSX by Vista.

      R 1 Reply Last reply
      0
      • C Christian Graus

        Ronenb wrote:

        Is there an option to define it one time and relate it to each control?

        Sure, you can create one method and point all of your events to it. That's about it, really.

        Christian Graus Driven to the arms of OSX by Vista.

        R Offline
        R Offline
        Ronenb
        wrote on last edited by
        #3

        Hi OK and what about the definition of the shortcut and tooltip? Ronen

        C 1 Reply Last reply
        0
        • R Ronenb

          Hi OK and what about the definition of the shortcut and tooltip? Ronen

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          The tooltip you can assign in the properties of the control, same place as the event handler goes. But, you do have to do that for each menu item/button/etc. Same for the shortcut.

          Christian Graus Driven to the arms of OSX by Vista.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups