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
 iekLineLabel

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

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
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
John Posted - Apr 10 2012 : 15:59:02
Hello

If I create an iekLineLabel object in code (see example below), the text portion of the label at the end of the line (opposite the arrow) does not display.

procedure TformXrayMeasure2.DrawPutLineHoldingAngleDegrees(AngleType: String; Degrees: Extended; Color: TColor);
var
tempNewObj: TMarkerRecord;
begin
with ImageEnVect1 do
begin
ObjText[-1] := AnsiString('Test');
// ObjText[-1] := AnsiString(AngleType + ' = ' + IntToStr(Round(Degrees)));
ObjTextAutoSize[-1] := True;
ObjStyle[-1]:=[ievsSelectable, ievsMoveable, ievsSizeable, ievsVisible];
ObjFontHeight[-1] := 12; // default value is 11

ObjBeginShape[-1] := iesOUTARROW;
ObjBrushStyle[-1] := bsSolid;
ObjPenColor[-1] := Color;
AddNewObject(iekLineLabel, Rect(42, 367,
325, 195), Color);
{ AddNewObject(iekLineLabel, Rect(Round(tempTwoLineIntercept_X), Round(tempTwoLineIntercept_Y),
Round(tempTwoLineIntercept_X) + 200, Round(tempTwoLineIntercept_Y) - 200), Color);
}
end;
end;

Suggestions

John

2   L A T E S T    R E P L I E S    (Newest First)
John Posted - Apr 13 2012 : 21:47:30
Fabrizio

Thanks.

John
fab Posted - Apr 12 2012 : 01:29:42
Please move ObjText[] after AddNewObject:

....
AddNewObject(iekLineLabel, Rect(42, 367, 325, 195), Color);
ObjText[-2] := AnsiString('Test');