Home » Developing U++ » UppHub » The role of Convert diagram
The role of Convert diagram [message #9353] |
Tue, 01 May 2007 18:00 |
andrei-catalin
Messages: 62 Registered: May 2006 Location: Romania
|
Member |
|
|
In this diagram I've tried to summarize the role of Convert on EditField control, easy to understand.
Let's consider reference/Convert app.
text is the main private data member of EditField class used to store internal data of this control.
e.g. To set text="1001" there are many possibilies:
via Keyboard
Keyboard--> "120051"-->Filter-->text="1001"
programmaticaly using SetData
bin.SetData(9)-->Format-->text="1001" (Short form: bin<<=9;)
programmaticaly using SetText
bin.SetText("1001")-->text="1001" (Short form: bin="1001";)
To retrieve the value v of bin ctrl using GetData(): "1001"-->Scan-->v=9
whereas GetText() returns the value of WString text="1001"
Another interesting aspect apparent in this diagram is the autoformat mechanism - like a feedback.
Andrei
-
Attachment: convert.png
(Size: 20.16KB, Downloaded 700 times)
[Updated on: Wed, 02 May 2007 11:13] Report message to a moderator
|
|
|
|
Goto Forum:
Current Time: Fri Apr 19 02:33:59 CEST 2024
Total time taken to generate the page: 0.03380 seconds
|