Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic boxcreated  event is not work. (Read 2605 times)
parkwonwoo
Junior Member
**
Offline


Open the Podbay Doors
HAL!

Posts: 61
Joined: Dec 8th, 2006
boxcreated  event is not work.
Dec 18th, 2006 at 11:21pm
Print Post  
In delphi, boxcreated  event is not work.

Code
Select All
// this event handling did not working.
procedure TForm1.FCXBoxCreated(ASender: TObject; const box: IBoxItem);
begin

  box.Text:='good';
end;

// this event handling works well.
procedure TForm1.FCXBoxSelected(ASender: TObject; const box: IBoxItem);
begin
  box.Text:='good';
  //box.MnpHandlesMask:=100000000;
end;

 



What's wrong with this event ?

Thanks in advance.
  

OS: WinXP sp2&&RAD: Borland Delphi7, C++Builder6, JBuilder9&&FrameWork: VCL+Win32 or J2SE&&FCX: FCX 4.1.x
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: boxcreated  event is not work.
Reply #1 - Dec 19th, 2006 at 5:45am
Print Post  
BoxCreated is raised only when a box is drawn by the user, and not when you call CreateBox. You can call a common method from the event handler and after calling CreateBox if you need to execute the same code in both situations.

Stoyan
  
Back to top
 
IP Logged
 
parkwonwoo
Junior Member
**
Offline


Open the Podbay Doors
HAL!

Posts: 61
Joined: Dec 8th, 2006
Re: boxcreated  event is not work.
Reply #2 - Dec 20th, 2006 at 8:04am
Print Post  
Thanks

Like This :

Code
Select All
Box0:=Fc1.CreateBox(10, 10, 100, 100);
Fc1.OnBoxCreate(self, Box0);
 

  

OS: WinXP sp2&&RAD: Borland Delphi7, C++Builder6, JBuilder9&&FrameWork: VCL+Win32 or J2SE&&FCX: FCX 4.1.x
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint