Difference between revisions of "Documentation/DevGuide/GUI/Text Field Extensions"

From Apache OpenOffice Wiki
Jump to: navigation, search
m (FINAL VERSION FOR L10N)
m
 
Line 19: Line 19:
 
{|border="1" cellpadding=4 style="border-collapse:collapse;"
 
{|border="1" cellpadding=4 style="border-collapse:collapse;"
 
|-bgcolor=#EDEDED
 
|-bgcolor=#EDEDED
!colspan="2"|Common Properties of Extensions of a <code>UnoEditControl</code> (text field)  
+
!colspan="2"|Common Properties of Extensions of a <code>UnoControlEdit</code> (text field)  
 
|-
 
|-
 
|[IDLS:StrictFormat]  
 
|[IDLS:StrictFormat]  
Line 25: Line 25:
 
|-
 
|-
 
|[IDLS:EnforceFormat]
 
|[IDLS:EnforceFormat]
|boolean. If set to true,the allowed characters are checked when leaving the focus.  
+
|boolean. If set to true, the allowed characters are checked when leaving the focus.  
 
|-
 
|-
 
|[IDLS:Spin]  
 
|[IDLS:Spin]  

Latest revision as of 13:13, 22 December 2020



A user can enter any kind of data into a text field. These values are always stored as a string in the Text property. This can cause some problems when you are evaluating the user input. These controls offer specific solutions to this issue:

  • Formatted field.
  • Date field.
  • Time field.
  • Currency field.
  • Numeric field.
  • Pattern field.
Common Properties of Extensions of a UnoControlEdit (text field)
[IDLS:StrictFormat] boolean. If set to true, only the allowed characters as defined by the format of the control are accepted. All other entries typed with the keyboard are ignored.
[IDLS:EnforceFormat] boolean. If set to true, the allowed characters are checked when leaving the focus.
[IDLS:Spin] boolean. The Spin property defines whether the control displays a spin button.
Content on this page is licensed under the Public Documentation License (PDL).
Personal tools
In other languages