ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder
ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 how to switch to select mode after draw line layer

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Format  BoldItalicizedUnderline Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailBrowse for an image to attach to your post Browse for a zip to attach to your post Insert CodeInsert QuoteInsert List


Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

Check here to subscribe to this topic.

T O P I C    R E V I E W
Pawel Posted - May 07 2019 : 15:17:14
I try to draw a measureline,
ImageEnView.MouseInteract := [ miClickCreateLineLayers, miEditLayerPoints, miMeasureLength];

and then, I want to switch to select mode in ImageEnViewLayerNotifyEx procedure:
if ImageEnView.Layers[layer].Kind = ielkLine then
               if event in [ielCreated] then
                  ImageEnView.MouseInteract := [  miMoveLayers, miResizeLayers ];

but, this way my line disappears. Why?
5   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - May 12 2019 : 21:15:30
Can you not disable line creation in the ImageEnViewLayerNotifyEx event, e.g.

procedure TMainForm.ImageEnView1LayerNotifyEx(Sender: TObject; layer: Integer; event: TIELayerEvent);
  if event = ielCreated then
    ImageEnView1.MouseInteract := [ miEditLayerPoints ];

Xequte Software
Pawel Posted - May 10 2019 : 02:59:26
But I want to disable create new line layers, after finished draw.
So I want to remove miClickCreateLineLayers property.
xequte Posted - May 08 2019 : 17:40:30
Why not just use:

ImageEnView.MouseInteract := [ miClickCreateLineLayers, miEditLayerPoints ];

miMeasureLength is for measuring lengths in an image.

You might also want to try Line Layers demo.

Xequte Software
Pawel Posted - May 08 2019 : 04:25:26
measure line isn't a line layer?
I think it is because the debugger catches after the condition
if ImageEnView.Layers[layer].Kind = ielkLine then

but does not matter.
I just want to know how to draw a line and then switch to selection mode
and why my line layer disappears
xequte Posted - May 07 2019 : 17:10:14

Are you trying to convert a measure line into a line layer?

Xequte Software