|
rowfocuschanged
|
|
Full name
|
pfc_w_toolbars.dw_toolbars.rowfocuschanged
|
Access
|
public
|
Extend of
|
|
Return value
|
|
Prototype
|
event rowfocuschanged()
|
Name
|
Datatype
|
lnv_conversion
|
n_cst_conversion
|
ls_checked
|
string
|
ls_item
|
string
|
event rowfocuschanged;call super::rowfocuschanged;//////////////////////////////////////////////////////////////////////////////
//
// Event: rowfocuschanged
//
// Description:
// Updates the toolbar information displayed
//
//////////////////////////////////////////////////////////////////////////////
//
// Revision History
//
// Version
// 5.0 Initial version
//
//////////////////////////////////////////////////////////////////////////////
//
// Copyright © 1996-1999 Sybase, Inc. and its subsidiaries. All rights reserved.
// Any distribution of the PowerBuilder Foundation Classes (PFC)
// source code by other than Sybase, Inc. and its subsidiaries is prohibited.
//
//////////////////////////////////////////////////////////////////////////////
string ls_item
string ls_checked
n_cst_conversion lnv_conversion
// Validate row
if currentrow <= 0 then
return
end if
inv_rowselect.of_RowSelect (currentrow)
// Obtain the current selected item
ls_item = this.object.toolbarname[currentrow]
if Len (ls_item) = 0 then
return
end if
// Populate controls with correct values for the current toolbar selection.
ii_toolbarindex = currentrow
if ii_toolbarindex > 0 then
ls_checked = lnv_conversion.of_String (inv_toolbar[ii_toolbarindex].b_visible, "YN")
if IsNull (ls_checked) then
ls_checked = 'N'
end if
this.object.toolbarvisible[currentrow] = ls_checked
choose case inv_toolbar[ii_toolbarindex].e_alignment
case alignattop!
rb_top.checked = true
case alignatbottom!
rb_bottom.checked = true
case alignatright!
rb_right.checked = true
case alignatleft!
rb_left.checked = true
case floating!
rb_floating.checked = true
end choose
end if
end event