Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic overview creation in delphi (Read 4941 times)
unisnk
Junior Member
**
Offline


D'Oh!

Posts: 59
Joined: Sep 3rd, 2008
overview creation in delphi
Sep 8th, 2008 at 8:12am
Print Post  
Hi, I'm still testing the control. I want to create an overview window clicking on a button.

I use this simple code:
Code
Select All
procedure Tfrm_Main.btnOverviewClick(Sender: TObject);
var ov : overview;
begin
  ov.Document := FlowChart1.DefaultInterface;
end;
 



but it doesn't work: I'm getting an Access Violation error via runtime. How can I fix it?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: overview creation in delphi
Reply #1 - Sep 8th, 2008 at 8:31am
Print Post  
Hi,

You will have to create an Overview instance and assign it to the 'ov' variable before setting ov.Document.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
unisnk
Junior Member
**
Offline


D'Oh!

Posts: 59
Joined: Sep 3rd, 2008
Re: overview creation in delphi
Reply #2 - Sep 8th, 2008 at 8:46am
Print Post  
i modified code in this way:

Code
Select All
procedure Tfrm_Main.btnOverviewClick(Sender: TObject);
var tov : toverview;
ov: ioverview;
begin
 tov := toverview.create(self);
 ov := tov.DefaultInterface;
 ov.Document := FlowChart1.DefaultInterface;
end; 



no more access violation errors, but overview window is still not shown. Where was I wrong?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: overview creation in delphi
Reply #3 - Sep 8th, 2008 at 8:51am
Print Post  
I suppose you should add 'ov' to a form now. I don't how that can be done programmatically in Delphi.
  
Back to top
 
IP Logged
 
unisnk
Junior Member
**
Offline


D'Oh!

Posts: 59
Joined: Sep 3rd, 2008
Re: overview creation in delphi
Reply #4 - Sep 8th, 2008 at 2:53pm
Print Post  
nothing to do for now... I'll do some other tests.. I would be great if I could create that window.

Thank you for now, I'll keep you informed on my progress.
  
Back to top
 
IP Logged
 
unisnk
Junior Member
**
Offline


D'Oh!

Posts: 59
Joined: Sep 3rd, 2008
Re: overview creation in delphi
Reply #5 - Sep 11th, 2008 at 10:02am
Print Post  
update. I solved the problem simply dropping in another form the Toverview object and then assigning it to the ControlInterface property of  flowchart object.

bye
  
Back to top
 
IP Logged
 
Stuart
Junior Member
**
Offline


Short, fat and bald, that's
me.

Posts: 64
Location: Lincs, UK
Joined: Sep 5th, 2008
Re: overview creation in delphi
Reply #6 - Sep 11th, 2008 at 10:15am
Print Post  
I was just about to post to say something ver similar.

In my case I have a form with a number of controls. I simply added the tOverview, set the .Document property and bingo! Job done.
  

-- &&Stuart
Back to top
YIM  
IP Logged
 
unisnk
Junior Member
**
Offline


D'Oh!

Posts: 59
Joined: Sep 3rd, 2008
Re: overview creation in delphi
Reply #7 - Sep 15th, 2008 at 9:14am
Print Post  
very good, probably developers can do something to make easier the creation of an overview  Grin

byebye
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint