ColumnClick event
Description
Occurs when the user clicks a column header.
Event ID
|
Event ID |
Objects |
|---|---|
|
pbm_lvncolumnclick |
ListView |
Parameters
|
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 |
string ls_label, ls_align |
|
1 |
integer li_width |
|
1 |
alignment la_align |
|
1 |
|
1 |
ii_col = column |
|
1 |
This.GetColumn(column, ls_label, la_align, & |
|
1 |
   li_width) |
|
1 |
|
1 |
CHOOSE CASE la_align |
|
1 |
CASE Right! |
|
1 |
   rb_right.Checked = TRUE |
|
1 |
   ls_align = "Right!" |
|
1 |
|
1 |
CASE Left! |
|
1 |
   rb_left.Checked = TRUE |
|
1 |
   ls_align = "Left!" |
|
1 |
|
1 |
CASE Center! |
|
1 |
   rb_center.Checked = TRUE |
|
1 |
   ls_align = "Center!" |
|
1 |
|
1 |
CASE Justify! |
|
1 |
   rb_just.Checked = TRUE |
|
1 |
   ls_align = "Justify!" |
|
1 |
END CHOOSE |
|
1 |
|
1 |
sle_info.Text = String(column) & |
|
1 |
   + " " + ls_label & |
|
1 |
   + " " + ls_align & |
|
1 |
   + " " + String(li_width) |
See Also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest