Using the TSpeedItem on TSpeedBar in the RX library
Posted on 1998-03-05
The title says everything.
My problem is that in the onClick event when I try following
(sender as tspeeditem).caption I get a class cast error.
When I look at run time at the sender.class I can see it's
class is TSpeedButton (or something like that).
The problem is that TSpeedButton is an unknown type
so I cannot use (sender as tspeedButton).caption
Just Try what I sayd and you will understand.
My goal is to do following
if (sender as tspeeditem).caption = 'test' then
What do you thing ?
I'm using RX library 2.32.