PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | French EN

WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
..AttachPointStart is used to find out and modify the position of the start attach point in a Wire control.
Example
StartAttachPointID is int
EndAttachPointID is int

Link_wire is Control

Link_wire <- ControlCreate("Link", typWire)


Link_wire..StartControl = IMG_Start
Link_wire..EndControl = IMG_End

StartAttachPointID = AttachPointAdd(IMG_Start, 100, 25))
EndAttachPointID = AttachPointAdd(IMG_End, 0, 75))

Link_wire..AttachPointStart = StartAttachPointID
Link_wire..AttachPointEnd = EndAttachPointID
Syntax

Finding out the position of the start attach point in a Wire control Hide the details

<Result> = <Wire control>..AttachPointStart
<Result>: Integer or Integer constant
  • Identifier of the attach point (if the attach point was customized). This identifier corresponds to the value returned by AttachPointAdd.
  • Constant corresponding to the position of the attach point (if this position was not customized).
    ptAutomatic
    (Default value)
    WINDEV automatically selects the best attach point.
    ptBottomCenterThe attach point is found in the middle of the bottom border of the control.
    ptTopCenterThe attach point is positioned in the middle of the top border of the control.
    ptMiddleRightThe attach point is positioned in the middle of the right border of the control.
    ptMiddleLeftThe attach point is positioned in the middle of left control border.
<Wire control>: Control name
Name of the Wire control to use.

Modifying the position of the start attach point in a Wire control Hide the details

<Wire control>..AttachPointStart = <New value>
<Wire control>: Control name
Name of the Wire control to use.
<New value>: Integer or Integer constant
This value can correspond to:
  • the identifier of the attach point returned by AttachPointAdd.
  • one of the following constants:
    ptAutomatic
    (Default value)
    WINDEV automatically selects the best attach point.
    ptBottomCenterThe attach point is found in the middle of the bottom border of the control.
    ptTopCenterThe attach point is positioned in the middle of the top border of the control.
    ptMiddleRightThe attach point is positioned in the middle of the right border of the control.
    ptMiddleLeftThe attach point is positioned in the middle of left control border.
Remarks
Minimum version required
  • Version 21
This page is also available for…
Comments
Click [Add] to post a comment