Page 1 of 1

Mas funciones para usar con SAY y Get

Posted: Thu Aug 12, 2010 12:58 pm
by mastintin
Otras funciones para usar con say y get :

Code: Select all


HB_FUNC( TXTSETENABLED ) // hGet --> cText
{
    NSTextField * get = ( NSTextField * ) hb_parnl( 1 );
    [get setEnabled: YES  ];
    [get setTextColor: [NSColor controlTextColor]];
}  


HB_FUNC( TXTSETDISABLED ) // hGet --> cText
{
    NSTextField * get = ( NSTextField * ) hb_parnl( 1 );
    [get setEnabled: NO  ];
    [get setTextColor: [NSColor secondarySelectedControlColor]];
} 


HB_FUNC( TXTISENABLED ) // hGet --> cText
{
    NSTextField * get = ( NSTextField * ) hb_parnl( 1 );
    hb_retl( ( BOOL ) [ get isEnabled ] );
} 
 
Saludos.