Re: Numeric Edit Control


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]

Posted by Mike Saunders on December 21, 2007 at 05:25:29:

In Reply to: Re: Numeric Edit Control posted by Brian Levantine on December 20, 2007 at 20:12:50:

Thanks for the reminder about CosWin.inc.
NE.DontPadWithZerosIfEmpty was one of the ones I was looking for.

As for RESTRICTING the input.. (and I'm not saying the following 'bug', just posting my observations)

It appears that Gosub COS.NumEditSetDigits only limits when entering directly in the field via the keyboard.

They have no effect if COS.SetDlgItemText is used to change the text in the control.
If I have it at 12 and 4 and do a SetDlgItemText with "3.12345678", the display IS NOT truncated to "3.1234"

Side Note.
COS.NumEditSetDigits will affect the orginal display, If I have the COS.NumEditSetFlags coswParam at 0 and do a SetDlgItemText with "", the control will display 0.0000 , If I change the digits to 12 and 2 the control will display 0.00.

I have resorted to adding code to verify the value used with SetDltItemText according to the restrictions needed.



Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

What is the name of the main Signature System's Product?

Comments:

Optional Link URL:
Link Title:
Optional Image URL:

You may attach up to 5 files to your followup (see below):






[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]