ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
The AttachPointEnd property gets and sets the position of the end attachment point of a Wire control.
Example
StartAttachPointID is int
EndAttachPointID is int
 
WIRE_Link_wire is Control
 
WIRE_Link_wire <- ControlCreate("Link", typWire)
 
 
WIRE_Link_wire.StartControl = IMG_Start
WIRE_Link_wire.EndControl = IMG_End
 
StartAttachPointID = AttachPointAdd(IMG_Start, 100, 25))
EndAttachPointID = AttachPointAdd(IMG_End, 0, 75))
 
WIRE_Link_wire.AttachPointStart = StartAttachPointID
WIRE_Link_wire.AttachPointEnd = EndAttachPointID
Syntax

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

<Result> = <Wire control>.AttachPointEnd
<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 positioned 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 the left border of the control.
<Wire control>: Control name
Name of the Wire control to be used.

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

<Wire control>.AttachPointEnd = <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 positioned 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 the left border of the control.
Remarks
  • The start attach point can be customized with the AttachPointStart property.
  • 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

Last update: 03/04/2024

Send a report | Local help