sfDoulbeTextBox is a Dyalog namespace that shows examples on how to use the Syncfusion DoubleTextBox control. The DoubleTextBox control restricts text box input to only numeric values with support for data binding, Watermark, Null Value, Blendability, and culture support. It provides many customization options to enhance its appearance and to suit your applications.

The core features of the DoubleTextBox are as follows:

Installation and deployment

The following assemblies (version 12.1 or newer) are required in the subdirectory /Syncfusion/4.5 of the Dyalog APL version 14 (or newer) directory:

Using MinValue and MaxValue for Validation on Lost Focus

Here is the steps to use Validation on Lost Focus with a MinValue and MaxValue:

  1. Set the MinValue and MaxValue properties.

  2. Set the MinValidation and MaxValidation properties to OnLostFocus.

  3. Set the event onValueChanged to _DoubleTextBox_ValueChangedEvent.

rootObject.doubleTextBox1.(MinValue MaxValue)←1 100

rootObject.doubleTextBox1.(MinValidation MaxValidation)←rootObject.doubleTextBox1.(MinValidation.OnLostFocus MaxValidation.OnLostFocus)


How it works: Each time there is a new value that is entered in the DoubleText box, the function _DoubleTextBox_ValueChangedEvent is called to verify that it is within the MinValue and the MaxValue. If not, a tooltip (Warning_ToolTip_xaml) will appear to warn the user that the value entered is either too high or too low. When the DoubleText box is loosing focus, if the value is still too high or too low, it will be truncated to the nearest of the MinValue or MaxValue.

The function DemoDoubleTextBox1 shows an example that looks like this:


How to install sfDoubleTextBox in your workspace

  1. Download sfDoubleTextBox.v1.1.txt

  2. Do a Select all (Ctrl+A) and a copy (Ctrl+C).
  3. In your workspace execute )ed ⍟ sfDoubleTextBox

  4. Paste (Ctrl+V) the text into the Dyalog editor
  5. Press Escape and ')save' your workspace

Optionally to de-script the namespace you can do:

#.sfDoubleTextBox←{('n' ⎕NS ⍵)⊢n←⎕NS ''}#.sfDoubleTextBox

Version Information

Original author:

Pierre Gilbert




<apgil AT SPAMFREE videotron DOT ca>

CategoryDyalog - CategoryDyalogDotNet - CategorySyncfusionWpfExamples - CategoryDotNet

sfDoubleTextBox (last edited 2015-07-31 00:50:07 by PierreGilbert)