PC Review


Reply
Thread Tools Rate Thread

Callback For Ribbon Tab Click or Activate

 
 
Jerry Fox
Guest
Posts: n/a
 
      4th Jun 2009
I have tried onAction in the <Tab line but it cause failure of the Ribbon
XML file and the Std Access ribbons shows, not my customized one.

Surely there is a simple way to have a callback function execute when you
click any Tab and read the id and take action appropaite such as show a
particular form or report rather than force the user to click again to show
the form or report. Any help will be and is appreciated.


I did post this on Access Database Geeral Questions with no repsonse,
hopefully the experts monitoring this forum know the answer.
 
Reply With Quote
 
 
 
 
Sky
Guest
Posts: n/a
 
      4th Jun 2009
"Jerry Fox" <(E-Mail Removed)> wrote in message
news:E5769139-369B-4165-93D8-(E-Mail Removed)...
>I have tried onAction in the <Tab line but it cause failure of the Ribbon
> XML file and the Std Access ribbons shows, not my customized one.
>
> Surely there is a simple way to have a callback function execute when you
> click any Tab and read the id and take action appropaite such as show a
> particular form or report rather than force the user to click again to
> show
> the form or report. Any help will be and is appreciated.
>


Each ribbon object has its own attributes as documented by Microsoft. Since
Microsoft programmed the ribbon to respond to these specific attributes, you
cannot change it. Assigning an invalid attribute will fail to even load, as
you saw.

If you want one-click access to a form or report, then define a button or
other control on a tab that does have a suitable onAction attribute. You can
place the button on the first ribbon tab, so it is always displayed by
default.

I do wish Microsoft provided some additional ribbon manipulation tools, such
as bringing forward a specific tab when needed. Microsoft partially supports
this with contextual tabs when initially opening forms and reports, but
bringing forward tabs is useful in many other situations. (Even with forms
and reports, returning the focus to an already opened form does not bring
its ribbon forward automatically, as you would expect. Toolbars yes, ribbons
no.) As far as I know, the only approach for us developers to bring a tab
forward is the less dependable SendKeys, and then you better have your
keytips specified carefully.

- Steve


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
callback a gallery in xml ribbon khoick245 Microsoft Outlook Program Addins 0 10th Apr 2010 05:09 PM
Ribbon callback from built-in buttons to trigger additional code Andrew Microsoft Excel Programming 0 8th Feb 2010 01:41 PM
Excel ribbon XML callback with parameter HelpMeNow Windows XP 1 1st Nov 2009 01:57 PM
Callback problems with Ribbon gthelin Microsoft Access VBA Modules 3 14th Mar 2009 06:01 PM
Ribbon callback error RTY Microsoft Access VBA Modules 1 26th Feb 2009 05:58 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:12 PM.