Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » LineEdit, EditFields, DocEdit » EditTime - how to change format?- [SOLVED]-EditField & Convert
Re: EditTime - Is it possible to change displayed format? [message #534 is a reply to message #532] Sun, 08 January 2006 10:36 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Not using EditTime, but you can quickly cook the widget you need using the generic EditField, creating appropriate Convert and combining them together. 15 lines effort...

There are three methods in Convert class:

virtual Value Format(const Value& q) const;

-> Use Format to convert your Time into String.

virtual Value Scan(const Value& text) const;

-> Use Scan to convert String into your Time

virtual int Filter(int chr) const;

-> Use Filter to limit/convert characters that can be entered to EditField. Each character is Filter-ed - if returned value is zero, it is discarded, otherwise returned value is inserted to the EditField. Means you can perform some conversions too...
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Trouble with EditTime
Next Topic: DocEdit code scrolling
Goto Forum:
  


Current Time: Sun Apr 28 15:49:27 CEST 2024

Total time taken to generate the page: 0.96867 seconds