Ribbon button - "wrong" name of OnClick events

Add-in Express™ Support Service
That's what is more important than anything else

Ribbon button - "wrong" name of OnClick events
 
Vladimír Klaus




Posts: 20
Joined: 2014-03-03
Hello,

there is "wrong" implementation of working with buttons/assigning OnClick events.

Try this:
1) add button
2) doubleclick on "OnClick" -> adxRibbonTab1Controls0Controls0Click
3) add another button
4) move it up
5) doubleclick on "OnClick" -> adxRibbonTab1Controls0Controls0Click <<< the same name!!!

There is missing Name property as in usual button and these procedures should have appropriate names.

Vladimír
Posted 27 Mar, 2014 06:53:52 Top
Andrei Smolin


Add-in Express team


Posts: 14115
Joined: 2006-05-11
Vladimír,

A usual button is a TComponent. A Ribbon button is a TCollectionItem; it doesn't has the Name property. Whence the collision that you see.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 27 Mar, 2014 08:02:29 Top
Vladimír Klaus




Posts: 20
Joined: 2014-03-03
Hello Andrei,

thank you for explanation! I work with DevEx components a lot of year so this is a new world for me. :)

Vladimír
Posted 28 Mar, 2014 06:26:15 Top