Jump to content
Developer Wiki and Function Reference Links ×

Selecting Drawing Objects


Jtoo

Recommended Posts

First, every object has a handle. What you need to do if determine the correct handle, not assign a handle.

If the group the only thing selected on the drawing? If the text box the only one inside the group? If so, then you can get a handle to the group [FSActLayer], use that to get a handle to the first object inside the group [FinGroup] and then step through the objects in the group until you find the text.

Something like (untested)

H1:=FSActLayer;

H2:=FinGroup(H1);

While H2 <> Nil do

Begin

if GetType(H2)=TEXT then

Begin

{Edit your text here}

End;

H2:=NextObj(H2); {Point to the next object in the group}

end;

Pat

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...