FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveMac / FivePhone (iPhone, iPad) Funcion browse editar o no una columna
Posts: 1516
Joined: Thu May 27, 2010 02:06 PM
Funcion browse editar o no una columna
Posted: Tue Jul 06, 2010 09:18 PM
FUNCIONANDO.

Code (fw): Select all Collapse
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  ];    
    
}


el metodo :
Code (fw): Select all Collapse
 METHOD SetColEditable( nColumn, lEdit ) INLINE BrwSetColeditable( ::hWnd, nColumn, ledit )
METHOD SetHeadTooltip( nColumn, Ctext ) INLINE BrwSetHeadTooltip( ::hWnd, nColumn, cText )
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Funcion browse editar o no una columna
Posted: Wed Jul 07, 2010 12:00 PM

Manuel,

Añadido para el próximo build, gracias! :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion