I am using the Actions_Vect sample project...
The Action "Insert Label with Line" seems to do exactly the same as "Insert Line". I assumed that I would be able to enter some text for a label placed next to the line. I have been advised to use this code in the NewObject event:
procedure TMainForm.ImageEnVect1NewObject(Sender: TObject; hobj: Integer);
begin
if ImageEnVect1.ObjKind[hobj] = iekLINELABEL then
ImageEnVect1.ObjText[hobj] := ' ImageEn Rocks! ';
end;
Yes, this works - I now have some text, but it seems to be a rather incomplete solution.
"Insert label with line" implies to me that the user can draw a line and label it (which is exactly what I want). But, the text has to be entered programatically - I would like the user the user to enter it just like they do with a text box. Also, the user doesn't appear to have any way of editing the text at a later time (a regular text box - you can double-click it).
Any suggestions appreciated.
Also, how can I remove the box that is drawn around the text?
Steve Bailey,
ImageEn 5.1.0
Delphi XE4 Professional
Windows 7 Professional