Skip to content

Commit cd75086

Browse files
committed
Fix version warnings for EditNumber
1 parent 3410fe6 commit cd75086

File tree

3 files changed

+7
-11
lines changed

3 files changed

+7
-11
lines changed

docs/user-interface-tools/control-objects.rst

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,12 @@ To add to a window ``w``::
147147

148148
editnumber
149149
**********
150+
150151
Class Name: ``EditNumber``
151152

153+
.. note::
154+
This functionality was added in Photoshop 20.0 (CC 2019), and may not exist in other hosts.
155+
152156
An editable text field the user can enter decimal numbers into. Fractions are allowed.
153157
Calls the :ref:`control-event-onchange` callback if the text is changed and the user types
154158
``ENTER`` or the control loses focus, or if its :ref:`controlobj-notify` method is called.
@@ -186,8 +190,6 @@ To add to a window ``w``::
186190

187191
======================= ======================================================================================
188192

189-
.. note:: The ``EditNumber`` control was added in Photoshop 20.0 (CC 2019).
190-
191193
--------------------------------------------------------------------------------
192194

193195
.. _control-type-edittext:
@@ -1918,8 +1920,6 @@ types:
19181920
property directly or removes a selected item from the list, or when the user
19191921
changes the selection.
19201922

1921-
.. note:: The ``EditNumber`` control was added in Photoshop 20.0 (CC 2019).
1922-
19231923
--------------------------------------------------------------------------------
19241924

19251925
.. _control-event-onchanging:
@@ -1935,8 +1935,6 @@ Called for each incremental change in one of the following control types:
19351935
- For :ref:`EditNumber` and :ref:`EditText` controls, called for each keypress while the control has focus.
19361936
- For a :ref:`Slider` or :ref:`Scrollbar`, called for any motion of the position marker.
19371937

1938-
.. note:: The ``EditNumber`` control was added in Photoshop 20.0 (CC 2019).
1939-
19401938
--------------------------------------------------------------------------------
19411939

19421940
.. _control-event-oncollapse:

docs/user-interface-tools/defining-behavior-with-event-callbacks-and-listeners.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ to different actions, or events:
3232
for most types of controls. To handle the key sequence, define a callback function for
3333
:ref:`control-event-onshortcutkey` in that control.
3434

35-
.. note:: The ``EditNumber`` control was added in Photoshop 20.0 (CC 2019).
36-
3735
--------------------------------------------------------------------------------
3836

3937
.. _defining-event-handler-callback-functions:
@@ -121,8 +119,6 @@ clicked. For example, if the value of a checkbox ``hasBtnsCb`` is true, this cod
121119
dlg.hasBtnsCb.notify(); // dlg.hasBtnsCb.value is now false
122120
}
123121

124-
.. note:: The ``EditNumber`` control was added in Photoshop 20.0 (CC 2019).
125-
126122
--------------------------------------------------------------------------------
127123

128124
.. _registering-event-listeners-for-windows-or-controls:

docs/user-interface-tools/types-of-controls.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,12 +146,14 @@ or replace::
146146

147147
EditNumber
148148
**********
149+
149150
Allows users to enter a decimal number, which is returned to the script when the dialog is
150151
dismissed. The value entered is validated for being a localized number format and checked
151152
against a lower and upper boundary when the control loses focus. Text in EditNumber elements
152153
can be selected, copied, and pasted.
153154

154-
.. note:: The ``EditNumber`` control was added in Photoshop 20.0 (CC 2019).
155+
.. note::
156+
This functionality was added in Photoshop 20.0 (CC 2019), and may not exist in other hosts.
155157

156158
- Set the ``text`` property to assign the initial displayed number in the element, and read
157159
it to obtain the current number value, as entered or modified by the user.

0 commit comments

Comments
 (0)