Funcion browse editar o no una columna

Post Reply
User avatar
mastintin
Posts: 1502
Joined: Thu May 27, 2010 2:06 pm

Funcion browse editar o no una columna

Post by mastintin »

FUNCIONANDO.

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  ];    
    
} 

 
el metodo :

Code: Select all

 METHOD SetColEditable( nColumn, lEdit ) INLINE BrwSetColeditable( ::hWnd, nColumn, ledit )
METHOD SetHeadTooltip( nColumn, Ctext ) INLINE BrwSetHeadTooltip( ::hWnd, nColumn, cText )
 
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Funcion browse editar o no una columna

Post by Antonio Linares »

Manuel,

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

Antonio Linares
www.fivetechsoft.com
Post Reply