Files
Jean-Pierre Ledure 1b3d801b14 ScriptForge ui.EnterValue() enhance password input
Addition of a button that makes the
password field readable and back.

A "password" input field is set by the
  EchoChar
property in the field model.
It cannot be changed dynamically during
the dialog's life.

To circumvene this limitation, a new readable
'= EchoChar = 0) usual text field is added
with the same dimensions and position
as the password field.
Only 1 of them is visible at the same time.

The button implements
- a swap between readable and non-readable fields
- a copy of the actual content of the last used field
- the repositioning of the caret
This maximizes the illusion of the use
of a single field while, in fact, 2 alternate
fields are used.

No effect on existing user scripts.
The functionality is valid for both Basic and
Python user scripts.

Change-Id: I8e84b2b0a8e25087f203a2efa58ff208526e2591
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/211228
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
Tested-by: Jenkins
2026-09-20 09:27:03 +02:00

24 lines
1.2 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE library:library PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "library.dtd">
<library:library xmlns:library="http://openoffice.org/2000/library" library:name="ScriptForge" library:readonly="false" library:passwordprotected="false">
<library:element library:name="_ModuleModel"/>
<library:element library:name="SF_String"/>
<library:element library:name="SF_Utils"/>
<library:element library:name="SF_TextStream"/>
<library:element library:name="SF_Array"/>
<library:element library:name="SF_Platform"/>
<library:element library:name="SF_PythonHelper"/>
<library:element library:name="SF_Timer"/>
<library:element library:name="SF_FileSystem"/>
<library:element library:name="SF_Region"/>
<library:element library:name="SF_L10N"/>
<library:element library:name="SF_SharedMemory"/>
<library:element library:name="__License"/>
<library:element library:name="SF_Root"/>
<library:element library:name="_CodingConventions"/>
<library:element library:name="SF_Session"/>
<library:element library:name="SF_Dictionary"/>
<library:element library:name="SF_Exception"/>
<library:element library:name="SF_UI"/>
<library:element library:name="SF_Services"/>
</library:library>