Page 1 of 1

TsimpleGraph locate Node By Num

PostPosted: October 23rd, 2005, 10:46 pm
by sergisan
Hi all

two little questions ?

1-how can I insert a Node with a simple click (without dragging) the demo
inserts a block with left set to 0

2-I have a lot o blocks in a simple graph and 3 pages (I mean, i must scroll to see all the blocks). Supose I want to find the block FID = 315 and center it on the screen (change the colour etc) is it possible ?.

By the way I must st grid off with very small zoom.

Serge

PostPosted: October 25th, 2005, 6:05 pm
by Johnny_Bit
THIS POST IS NOT INTENDET TO HELP

It's fourth post with the same title! GUYS, title should inform at least a little. on big forums it's even said in rules! Edit your title, or someone will do it!

ps. Stefan, moderate more!

Right

PostPosted: October 25th, 2005, 9:28 pm
by sergisan
Johnny_Bit, You are completely right, Sorry.


Sergi.

PostPosted: November 1st, 2005, 9:56 am
by Kambiz
Hi,

1. You should handle OnClick event of the component and Insert an object manually.

2. You can use Objects list property of the component to locate an object.

Cheers

PostPosted: November 2nd, 2005, 3:07 pm
by sergisan
Hi,

1- I have already done it.

2- I can iterate through the object list and find the object I am looking for,

but how can I make it visible in the center of the screen ? (it might not be in

the visible area ?

Thanks

PostPosted: November 3rd, 2005, 2:45 pm
by Kambiz
Take a look at ZoomObject and/or ScrollInView methods of the component in the readme file.