Funcion browse editar o no una columna

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

Funcion browse editar o no una columna

Post by mastintin »

FUNCIONANDO.

Code: Select all | Expand


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 | Expand


 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: 42403
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 12 times
Been thanked: 47 times
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