Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
T O P I C R E V I E W
klausdoege
Posted - Sep 05 2021 : 04:43:54 Hello, I use a lot of shadow and glow. Both have the following properties: OffsetX and OffsetY. It is not very nice for the user to enter the offset as OffsetX = 3 and OffsetY = 2. It is better to enter an angle and a width. That is more logical for the user. I do this in my programs and it has worked. Perhaps you can add the two properties of angle and width. If one of these properties is changed, OffsetX and OffsetY are recalculated. If you want to continue working with OffsetX/Y, you could do this too. Only the angle and the width are then not changed. Here is my procedure that I use: procedure SetAngleDis2XY (angle, Distance: integer; var xpos, ypos: integer); var fDegToRad: Real; begin fDegToRad: = angle / 180 * pi; xpos: = round (cos (fDegToRad) * Distance); ypos: = round (sin (fDegToRad) * Distance); end; Unfortunately, it cannot be calculated backwards, so it is better if the properties are added. I am now realizing it with the Lyr.UserData. Maybe you can realize it, e.g. TIEVSoftShadow.angle TIEVSoftShadow.width Many users would definitely be happy. This is what it looks like, see the see red ellipse.