PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

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> = <Control Name>..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 found in the middle of the top border of the control.
    ptMiddleRightThe attach point is found in the middle of the right border of the control.
    ptMiddleLeftThe attach point is found in the middle of the left border of the control.
<Control Name>: Character string (with or without quotes)
Name of the Wire control to use.

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

<Control Name>..AttachPointStart = <New Value>
<Control Name>: Character string (with or without quotes)
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 found in the middle of the top border of the control.
    ptMiddleRightThe attach point is found in the middle of the right border of the control.
    ptMiddleLeftThe attach point is found in the middle of the left border of the control.
Remarks
  • The end attach point can be customized by AttachPointEnd.
  • If the default attach points have been deleted by AttachPointDeleteAll, the position constants cannot be used anymore.
Minimum version required
  • Version 21
This page is also available for…
Comments
Click [Add] to post a comment