Consulting

Results 1 to 3 of 3

Thread: Explain What a "CallBack" is

  1. #1

    Explain What a "CallBack" is

    Jn reviewing various discussions about the Ribbon, the writers often mention the "CallBack", but I have been unable to figure out what that is. Will someone attempt to explain it to me in 5000 words or less please?
    Thanx.
    Sid

  2. #2
    VBAX Sage
    Joined
    Apr 2007
    Location
    United States
    Posts
    8,711
    Location
    The way I think of it

    1. XML CustomUI code is in a document (XLSM, DOCM, etc.) that puts a control on the ribbon

    2. User clicks or does something to the Ribbon control

    3. The control 'calls back' to the document to be handled.

    http://www.vbaexpress.com/forum/showthread.php?t=22497

    Might be worth while to browse through the earlier postings in the Ribbon forum. Ken Puls has put a lot of good information into his answers, others also of couse, but Ken writes and explains things very well

    Paul

  3. #3
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,443
    Location
    A callback is essentially the OnAction macro, except that it applies to various events such as clicking, get image, get enabled, get image size etc. It is also passed the ribbon control as an argument, much like commandbars can use Application.Commandbars.ActionControl.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

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