----boundary-LibPST-iamunique-893297042_-_-
Content-type: text/plain
>> Hi:
>>
>> is there a simple way to format numerical strings displayed
>> in Text Fields?
Yes - put in a negative 'Level' for fixed point, a positive level
for scientific notation..
>> The default formatting of REAL numbers is hardly
>> useful in the current implementation of Text Field. For example,
>> displaying a number -5.995171696219752E-8 makes little sense
>> in GUI. I would rather want to format this to something like
>> -5.995E-8. Moreover, would be useful to perform such formatting
>> on the fly, without explosion of interactor variables in the code,
>> whose only purpose would be to reformat the variables to be shown
>> in the GUI.
>>
>> To this end I looked at the definition of Dialog, hoping to use
>> either guards or notifiers to perform on-the-fly formatting.
>> To my dismay the definition of Dialog.Par does not allow for this,
>> because the internal text field is not exported. The label
>> is exported,
>> and it can be changed on the fly, but the text field itself is not.
>>
>> I wonder if there is a way to reformat the Text Field from the
>> default formatting to something more sensible.
>>
>> Thank you in advance for any hints,
>> Wojtek
However I find the above formatting still lacking in flexibility.
Try CtlsRealField from Helmut's site. 'Highly recommended' - the author!
(Also look at CtlsUnitField - also has it's uses!)
Cheers
Robert
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************
--------------------------------------------
To unsubscribe from this mailing list, send a message containing the word "unsubscribe" to:
blackbox-request{([at]})nowhere.xy
To get a list of valid e-mail commands and instructions on their usage, send a message containing the word "help" to the above address.
Send any problem reports or questions related to this email list to the list owner at
owner-blackbox{([at]})nowhere.xy
Current posting policy:
a) To post you should use the same address by which you are subscribed to the mailing list. That way, the list server will recognize you as subscriber and forward your posting immediately, without creating any overhead.
b) If, for some reason, you cannot post from the address, by which you are subscribed, your message will be moderated to avoid spam. Please understand that moderation will often cause some delay, in particular over weekends or holydays.
----boundary-LibPST-iamunique-893297042_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZn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