Code: Select all
HB_FUNC( BRWSETCOLEDITABLE ) // hTableView, nIndex,lOnOff
{
NSTableView * browse = ( NSTableView * ) hb_parnl( 1 );
[ [ [ browse tableColumns ] objectAtIndex : hb_parnl( 2 ) - 1 ] setEditable :hb_parl( 3 ) ];
}
HB_FUNC( BRWSETHEADTOOLTIP ) // hTableView, nIndex,cText
{
NSTableView * browse = ( NSTableView * ) hb_parnl( 1 );
NSString * string = [ [ [ NSString alloc ] initWithCString: ISCHAR( 3 ) ? hb_parc( 3 ) : "" ] autorelease ];
[ [ [ browse tableColumns ] objectAtIndex : hb_parnl( 2 ) - 1 ] setHeaderToolTip : string ];
}
Code: Select all
METHOD SetColEditable( nColumn, lEdit ) INLINE BrwSetColeditable( ::hWnd, nColumn, ledit )
METHOD SetHeadTooltip( nColumn, Ctext ) INLINE BrwSetHeadTooltip( ::hWnd, nColumn, cText )