Results 1 to 3 of 3

Thread: Masked Edit Box

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2000
    Posts
    94

    Question

    I am looking to use the Masked Edit Box (or Even The regular Edit Box) for a currency value. I am wondering if there is a way to do the bahaviour I am after or if I should create a custom control to do it. Anyway, here is what I am after:

    I want the box to display a $ on the left hand side. (easy enough)

    I want a fixed decimal precision of 2.

    Ideally I would like the numbers entered to start from the right and shift LEFT as new ones are entered. For instance:
    starting text - $0.00
    enter a '1' $0.01
    enter a '2' $0.12
    enter a '3' $1.23
    enter a '4' $12.34

    See what I mean?

    Is there a way to do this using existing controls? or should I be concentrating on creating my own?

    Thanks,
    Cthulhu Dragon

  2. #2
    Junior Member
    Join Date
    Jun 2000
    Posts
    27

    Re ...

    You can Add A component
    That Called Microsoft Masked edit control
    And From there you can put any mask u like
    KraMba

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jul 2000
    Posts
    94
    Yes I know, but it does not to my knowledge have the functionality that I am looking for. It formats currency but does not enter the data the way I would like.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width