PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

This content has been translated automatically. Click here to view the French version.
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
The Property PointDAttachDepart makes it possible to know and modify the position of the starting attachment point of an Control Wire.
Example
StartAttachPointID is int
EndAttachPointID is int
 
Link_wire is Control
 
Link_wire <- ControlCreate("Link", typWire)
 
 
Wire_de_ Link .StartField = IMG_Start
ALFREDA_Fil_of_Link.field_Arrival_Field = IMG_Arrival
 
StartAttachPointID = AttachPointAdd(IMG_Start, 100, 25))
EndAttachPointID = AttachPointAdd(IMG_End, 0, 75))
 
Fil_de_ Link .PointDAttacheDépart = IdPointAttacheDépart
Fil_de_ Link .ArrivalAttachePoint = ArrivedAttachePoint Id
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
  • 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