Mas funciones para usar con SAY y Get

Mas funciones para usar con SAY y Get

Postby mastintin » Thu Aug 12, 2010 12:58 pm

Otras funciones para usar con say y get :

Code: Select all  Expand view


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.
User avatar
mastintin
 
Posts: 1516
Joined: Thu May 27, 2010 2:06 pm

Return to FiveMac / FivePhone (iPhone, iPad)

Who is online

Users browsing this forum: No registered users and 3 guests