|
![]() |
![]() |
version 2003
PA_FieldPopup (x; y; tNum; fNum)
Parameter | Type | Description | |
x | short | → | Global vertical coordinate of pop-up top left corner |
y | short | → | Global horizontal coordinate of pop-up top left corner |
tNum | short | → | Table number |
fNum | short * | ← | Field number of the selected field |
Description
The routine
PA_FieldPopup
draws a pop-up menu built with the fields of table
tNum
. If the user chooses a field name,
fNum
is set to the selected field number. If the user does not make a choice (he releases the mouse out of the pop-up menu),
fNum
is set to 0.
The
x
and
y
coordinates are relative to the main screen, or the MDI window.
Usually, this call is made from an object that launches its method when the mouse is down on it (but it is the
On mouse up
event that is sent to the method), such as invisible buttons, arrays, hierarchical list.
This routine uses the virtual structure if it is on (
PA_UseVirtualStructure
)
Example
Refer to the example in
PA_TableAndFieldPopup
.
See Also
Error Handling
Use
PA_GetLastError
to see if an error occurred.