Prev | Current Page 2052 | Next

Michael R. Groh, Joseph C. Stockman, Gavin Powell, and Cary N. Prague

"Access 2007 Bible"


Access 2007 Ribbons: The Developer??™s
Perspective
Ribbons are not represented by a programmable object model in Access 2007. Each ribbon is
defined by XML statements contained in a special table named USysRibbons. Access uses the
information it finds in the XML to compose and render the ribbon on the screen.
The ribbon creation process
Briefly, creating custom ribbons is a five-step process:
1. Design the ribbon and compose the XML that defines the ribbon.
2. Write callback (described in the following section) routines that support the ribbon??™s
operations.
3. Create the USysRibbons table.
4. Add XML to USysRibbons table.
5. Specify the custom ribbon property in the Access configuration screen.
None of these steps is particularly intuitive, especially when it comes to composing the XML and
writing callback routines. Your best bet is to find an example that is reasonably close to your
desired end-product, and customize its XML to suit your purposes.
Using VBA callbacks
A callback is code that is passed to another entity for processing.


Pages:
2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064
regały magazynowe Akcesoria komputerowe Do szkoły Komputery stacjonarne gry dla dziewczyn