U++ framework
Do not panic. Ask here before giving up.

Home » Community » Newbie corner » Convert: Format, Scan and Filter...
Convert: Format, Scan and Filter... [message #50727] Mon, 10 December 2018 04:13
ptkacz is currently offline  ptkacz
Messages: 89
Registered: March 2017
Member
Hi Guys,

I'm playing around at building an Edit widget. I started by playing with and basing my implementation on EditString. I've successfully implemented the use of Filter. From what I understand, Format takes in value and converts it to a textual representation, and Scan the opposite (text -> value), yes?

When a real number value is entered into a DoubleEdit field and not correctly formatted, the text field turns red, indicating that a formatting error has occurred. What is the mechanism that tells and edit field such as DoubleEdit, that the input a user has provided is incorrect, and thus in turn, the edit field highlights red?


Peter
Previous Topic: Issue compiling U++ version 12603 on OpenSuse Leap 15
Next Topic: Delete modeless TopWindow based object created with new
Goto Forum:
  


Current Time: Tue May 05 04:29:14 GMT+2 2026

Total time taken to generate the page: 0.00508 seconds