ColumnClick
PowerScript event
Description
Occurs when the user clicks a column header.
Event ID
|
Event ID |
Objects |
|---|---|
|
pbm_lvncolumnclick |
ListView |
Arguments
|
Argument |
Description |
|---|---|
|
column |
The index of the clicked column |
Return Values
Long.
Return code choices (specify in a RETURN statement):
0 — Continue processing
Usage
The ColumnClicked event is only available when the ListView displays
in report view and the ButtonHeader property is set to true.
Examples
This example uses the ColumnClicked event to set up a instance
variable for the column argument, retrieve column alignment information,
and display it to the user:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
string ls_label, ls_align integer li_width alignment la_align ii_col = column This.GetColumn(column, ls_label, la_align, & li_width) CHOOSE CASE la_align CASE Right! rb_right.Checked = TRUE ls_align = "Right!" CASE Left! rb_left.Checked = TRUE ls_align = "Left!" CASE Center! rb_center.Checked = TRUE ls_align = "Center!" CASE Justify! rb_just.Checked = TRUE ls_align = "Justify!" END CHOOSE sle_info.Text = String(column) & + " " + ls_label & + " " + ls_align & + " " + String(li_width) |
See also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest