Hi Joseph,

   I've never seen this before, and our application has a lot of menu
bar stuff.  Can you do some debugging or some debug printouts to verify
that the action has not been disabled by some other means?  What happens
if you change the action on this item to something else?

 

~Roger Whitcomb

 

From: Joseph Paterson [mailto:[email protected]] 
Sent: Saturday, November 17, 2012 11:08 PM
To: [email protected]
Subject: Simple button in MenuBar

 

Hi all,

 

My application contains a MenuBar in which I would like to place a
simple button (to give easy access to a particular action), and I'm not
sure how to do this. I've got the following code:

 

    <MenuBar>

            [...]

      <MenuBar.Item action="refresh">

        <buttonData>

          <content:MenuItemData text="Refresh"
icon="/icon/refresh_16x16.png"/>

        </buttonData>

      </MenuBar.Item>

    </MenuBar>

 

With the code above I do get something appearing in the menu bar, but it
is disabled (the "refresh" action is enabled).

 

Any help would be greatly appreciated!

 

Thanks,

 

Joseph.

Reply via email to