Guest
|
Posted: Sun Jun 25, 2006 8:11 am Post subject: DevExpress: TcxSplitter State |
|
|
Dear Sir/Madam,
I'm using the DevExpress components version 5. I've the following
problem found for TcxSplitter;
1) I've dropped a TPanel (Panel1) on the Form, set the TPanel.Align =
alLeft, set the TPanel.Width = 145.
2) Then I've dropped a TcxSplitter on the Form, set the
TcxSplitter.AlignSplitter = salLeft; and set the TcxSplitter.Control =
Panel1. Set the TcxSplitter.HotZone to MediaPlayer9;
3) Then I write some codes in the TcxSplitter.OnMove event like the
following:
procedure TForm1.cxSplitter1Moved(Sender: TObject);
begin
if (Sender as TcxSplitter).State = ssOpened then
Self.Caption := 'splitter is open.'
else
Self.Caption := 'splitter is close.';
end;
4) Compile and run; first I click on the TcxSplitter, 'splitter is
close' was display on the Form Caption; then when I clicked and moved
the TcxSplitter to the right, the TPanel was show, but I've found that
the Form.Caption remained 'splitter is close.' ! I've traced the
TcxSplitter.State in the OnMove event, I've found that it returns
'ssClosed', suppose need to return 'ssOpend'.
Can anyone plz give me some advices here ? |
|