From a57d74ee78c3606f4037713746aa312da0b42772 Mon Sep 17 00:00:00 2001 From: Vincent de Lachaux Date: Tue, 27 Aug 2024 20:20:31 +0200 Subject: [PATCH] minor on dropDown & evt --- UI/Project/Sources/Classes/dropDown.4dm | 7 ++- UI/Project/Sources/Classes/evt.4dm | 70 +++++++++++++++++++++++++ 2 files changed, 73 insertions(+), 4 deletions(-) diff --git a/UI/Project/Sources/Classes/dropDown.4dm b/UI/Project/Sources/Classes/dropDown.4dm index c65aa06..c73f5cf 100644 --- a/UI/Project/Sources/Classes/dropDown.4dm +++ b/UI/Project/Sources/Classes/dropDown.4dm @@ -8,11 +8,10 @@ Class constructor($name : Text; $data : Object) This:C1470.data:=$data || {} - If (This:C1470.data#Null:C1517) && (This:C1470.data.currentValue#Null:C1517) + If (This:C1470.data#Null:C1517)\ + && (This:C1470.data.currentValue#Null:C1517) - This:C1470.data.placeholder:=This:C1470.data.placeholder=Null:C1517\ - ? This:C1470.data.currentValue\ - : This:C1470.data.placeholder + This:C1470.data.placeholder:=This:C1470.data.placeholder || This:C1470.data.currentValue End if diff --git a/UI/Project/Sources/Classes/evt.4dm b/UI/Project/Sources/Classes/evt.4dm index 9d93ee7..b939af4 100644 --- a/UI/Project/Sources/Classes/evt.4dm +++ b/UI/Project/Sources/Classes/evt.4dm @@ -39,6 +39,76 @@ Class constructor($e : cs:C1710.evt) End for each End if + This:C1470._descriptions:=[\ + ""; \ + "on Load"; \ + "on Mouse Up"; \ + "on Validate"; \ + "on Click"; \ + "on Header"; \ + "on Printing Break"; \ + "on Printing Footer"; \ + "on Display Detail"; \ + "on VP Ready"; \ + "on Outside Call"; \ + "on Activate"; \ + "on Deactivate"; \ + "on Double Click"; \ + "on Losing Focus"; \ + "on Getting Focus"; \ + "on Drop"; \ + "on Before Keystroke"; \ + "on Menu Select"; \ + "on Plugin Area"; \ + "on Data Change"; \ + "on Drag Over"; \ + "on Close Box"; \ + "on Printing Detail"; \ + "on Unload"; \ + "on Open Detail"; \ + "on Close Detail"; \ + "on Timer"; \ + "on After Keystroke"; \ + "on Resize"; \ + "on After Sort"; \ + "on Selection Change"; \ + "on Column Move"; \ + "on Column Resize"; \ + "on Row Move"; \ + "on Mouse Enter"; \ + "on Mouse Leave"; \ + "on Mouse Move"; \ + "on Alternate Click"; \ + "on Long Click"; \ + "on Load Record"; \ + "on Before DataEntry"; \ + "on Header Click"; \ + "on Expand"; \ + "on Collapse"; \ + "on After Edit"; \ + "on Begin Drag Over"; \ + "on Begin URL Loading"; \ + "on URL Resource Loading"; \ + "on End URL Loading"; \ + "on URL Loading Error"; \ + "on URL Filtering"; \ + "on Open External Link"; \ + "on Window Opening Denied"; \ + "on Bound Variable Change"; \ + ""; \ + "on Page Change"; \ + "on Footer Click"; \ + "on Delete Action"; \ + "on Scroll"; \ + "on Row Resize"; \ + "on VP Range Changed"\ + ] + + // <== <== <== <== <== <== <== <== <== <== <== <== <== <== <== <== <== <== <== <== <== <== <== <== <== <== +Function get _eventName() : Text + + return Try(This:C1470._descriptions[This:C1470.code]) + // MARK:-Form // <== <== <== <== <== <== <== <== <== <== <== <== <== <== <== <== <== <== <== <== <== <== <== <== <== <== Function get form() : Boolean