Hi Paul,
I'm not able to find in the help file, how to use the FireLines (Lines\Boxes) Custom Control.
If possible, can you post a simple example?
thanks!
Sergio
Select the FireLines in Custom Controls and draw a box on your form. With the box selected go to Properties in the FireFly Workspace. Look down the list for the properties that start with the word "Line". Also look at "Roundness". Play with these properties and you'll get the idea. Set the Roundness to 45, LineBox to "Box and the Width and Height to equal values and you have a circle.
Pat
EDIT: I just discovered that to get a circle you will need to adjust the roundness value for any particular Width and Height.
Hi Sergio,
Pat is right on with his answer. The FireLines control was written with more of a static control approach in mind. Basically, create your line/box/rectangle/circle, etc at design time and it won't change after the program executes.
You can manipulate the object via code if you wish. You would need to look at the code in the FireLines.inc file that is in the CustomControls folder. There are various messages that you can send to the control yourself if you need to change things when your program is executing:
For example,
%FIRELINES_SETLINE = %WM_USER + 2048
%FIRELINES_SETVERTICAL = %WM_USER + 2049
%FIRELINES_SETLINECOLOR = %WM_USER + 2050
%FIRELINES_SETLINEWIDTH = %WM_USER + 2051
%FIRELINES_SETLINESTYLE = %WM_USER + 2052
%FIRELINES_SETROUNDNESS = %WM_USER + 2053
%FIRELINES_SETSOLIDBACK = %WM_USER + 2054
%FIRELINES_SETCTLCOLOR = %WM_USER + 2056
You would use the SendMessage api to call the control.
e.g
SendMessage HWND_FORM1_FIRELINES1, %FIRELINES_SETLINE, 1, 0
The above sets the wParam = 1 indicating the control should draw a Line. If wParam is set to 0 then it draws a Box.
SendMessage is in this format:
SendMessage Handle, Message, wParam, lParam
wParam and lParam are simply 32-bit numbers that have specific meanings depending on what message you are sending to the control.
Thanks! ;D
Sergio