You better build a small component inherited from TEdit; Trap the event
OnEnter and OnExit and display the value (make it an integer property) with
currency format and right align when it does not have focus (after OnExit)
and without format and left align when it does (during edits.)

However (I think) the TMaskEdit from the Additional palette does exactly
that!

 

Horia

 

  _____  

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf
Of [EMAIL PROTECTED]
Sent: Sunday, April 17, 2005 3:07 AM
To: Soroush Nadim; [email protected]
Subject: Antwort: [delphi-en] Help Me!!!

 

Hi Soroush,
you could use
Edit1.Text := CurrToStrF(123000.0,ffcurrency,2);

Hope, that helps, have fun
Bob

>     How can I show a number with format of currency in an edit!  
>     : e.g :   $123,000 not 123000 in Edit1
>      



-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED] 




  _____  

Yahoo! Groups Links

*       To visit your group on the web, go to:
http://groups.yahoo.com/group/delphi-en/
  
*       To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> 
  
*       Your use of Yahoo! Groups is subject to the Yahoo!
<http://docs.yahoo.com/info/terms/>  Terms of Service. 



[Non-text portions of this message have been removed]



-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/delphi-en/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to