Page 1 of 1

Teecommander button events

Posted: Tue Jan 24, 2012 1:56 pm
by 9342094
Hi there,

how can I call the teecommander button events with my own buttons?

Thanks in advance,
Dennis

Re: Teecommander button events

Posted: Wed Jan 25, 2012 3:36 pm
by yeray
Hi Dennis,

There is an example about this in the features demo at All features\Welcome !\Toolbar\Custom buttons

Re: Teecommander button events

Posted: Thu Jan 26, 2012 7:24 am
by 9342094
Hi Yeray,

it isn't what i mean.
I would like have my own TButtons without TeeCommander to activate rotate, move and zoom of my Chart.
Are there function to solve the problem?

Thanks in advance,
Dennis

Re: Teecommander button events

Posted: Thu Jan 26, 2012 9:14 am
by yeray
Hi Dennis,

I'm afraid it's not a simple call or a routine we can easily extract.
If I'm not wrong you are source code customer. Take a look at the MouseMove event in TeeComma.pas, where the actions over the commander are handled:

Code: Select all

Procedure TTeeCommander.DoMouseMove(X,Y:Integer; const Shift:TShiftState);