Roberto Nicchi
-
Posts
226 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by Roberto Nicchi
-
-
If you create a desktop (not UNIGUI) application ? What happens ?
-
1 minute ago, Yang91 said:
4.50.29.
You ?
4.50.28
-
Hello, i use NexusDb too. I have tryed your test case. When i click the FILTER button the data is updated (in 3 seconds about). What version of NexusDb are you using ? I'm using 4.5028
-
On 6/10/2021 at 5:52 PM, Hayri ASLAN said:
Thank you
We will check it
Hello, did you find a solution for this thing ?
thanks
-
1 hour ago, picyka said:
function click(sender, e, eOpts) { Ext.defer(function(){ ajaxRequest(sender, '_beforeClick', []) }, 5); var textarea = document.getElementById(UniMemoResumo.JSName + '.inputId); textarea.select(); document.execCommand(''copy''); }
Before copying the text of the memo, I need to feed it.
Try
with copy_but, JSInterface do
JSAddListener('click', JSFunction('sender', 'var textarea = document.getElementById(' + unimemo1.JSName + '.inputId); '
+ 'textarea.value=textarea.value.trim(); '
+ 'textarea.select(); '
+ 'document.execCommand(''copy'');'));
Seems to work.
-
On 3/4/2022 at 8:05 PM, picyka said:
Hello, how do you treat focus today?
Hello,
sincerly i'm not sure how i solved the problem but i see that now is working... Probably i did something, but now i can't remember ...
Do you have a similar problem ?
Roberto
- 1
-
42 minutes ago, Sherzod said:
Try this approach...
MainForm.Script:
Ext.onReady(function() { document.getElementById(Ext.getBody().id).addEventListener('keydown', function(e) { var cwin = Ext.WindowManager.getActive(); if (cwin && cwin.id == 'messagebox-1001' && e.key != 'Enter') { //other conditions e.preventDefault(); e.stopPropagation(); } }) });
It works perfectly. Thanks !
- 1
-
Hello,
in the main form of my application i have enabled monitoredkeys and defined the OnKeyDown event to manage hotkeys. (F1,F2 and so on)
I would like to disable hot keys when a standard dialog windows is opened (messagedlg and showmessage)
I would like that when a standard dialog form is opened the user can only click in the dialog buttons and don't use any hot key.
Is there a way to do it in a single point of the application ?
thanks
Roberto
Unigui 1.90.0.1556
-
The listbox visible property is set to false.
- 1
-
Fortunately it is at runtime.
Not sure if this is a new bug or old
Roberto
1.90.0.1556
-
I think it's the same problem i have reported some time ago:
-
21 hours ago, Sherzod said:
Hello,
Sorry for the late reply.
I think this is not possible with UniFormattedNumberEdit.
Please add this request to the list of unigui future improvements.
thanks
- 1
-
Stretch is true or false ?
-
1 hour ago, Sherzod said:
For now you can try this workaround...
procedure TMainForm.UniFormCreate(Sender: TObject); begin field2.Value:=10; field3.Value:=10; field3.JSInterface.JSAddListener('change', 'function(sender, newVal, oldVal){if (sender.rawValue==oldVal) return false}') end;
Hello, you code seems to work fine. Anyway i have to correct what i have said before; seems the problem happens also with the TuniNumberEdit class.
I have used your code also for that class and seems to solve the problem.
I have attached to this post an example that shows the problem with a TuniNumberEdit component also.
Let my know if you can't reproduce the problem running the app.
thanks
-
2 minutes ago, Sherzod said:
Yes.. also with navigation keys
Ok, waiting for a fix. Thanks.
-
6 minutes ago, Sherzod said:
Yes, it is quite possible, not only when using the tab button (the reason that formatting is used I guess)
In the demo app it happens using the TAB key but i guess you are right and can happens also using the mouse.
There will be a fix ? Thanks
-
I'm using 1552 so not the latest version but looking at the change log i see nothing about this thing.
-
Use the TAB key, not the mouse.
-
Just now, Sherzod said:
Hello,
Are you sure?
Very
-
The onchange event of the TuniFormattedNumberEdit class is not executed correctly.
Look at the demo app i have attached to this post.
In the form there are 4 components. One is a TuniFormattedNumberEdit component.
The value of the component is changed in the form.oncreate event.
When the focus is moved into the component the onchage event is executed. It's shouldn't. This doesn't happens for the TuniNumberEdit class.
IMPORTANT: Use the tab key to change the focus.
thanks
Roberto
-
On 10/29/2021 at 10:57 PM, JhonSina said:
Yes, the settings are ok, it's not a iis problem, I think it's something in the application that causes the isapi module to crash during use, before the iss I put it in apache and I had the same problem, I can't identify what it is .
You can use a Tunitimer to avoid the session timeout: TUniTimer.DummyEvents Property (unigui.com)
- 1
-
Try to create a self contained demo app that is possible to compile and execute. Instead of a database access use a Tclientdataset. It can happens two things: 1) the demo app is working so it can help you to understand the problem in your main app 2) the demo app shows the problem and you can post it here.
-
I see that the TUniImageList class is deprecated and should be replaced with TUniNativeImageList.
Is there a way to transfer images from a TUniImageList to a TUniNativeImageList ? Or have to insert manually images again into the new object ?
Do you know when the TUniImageList class will be removed ?
thanks
Roberto
-
15 hours ago, Sherzod said:
Hello,
Will this option suit you?
procedure TMainForm.UniFormCreate(Sender: TObject); begin with UniFormattedNumberEdit1 do JSInterface.JSCall('updateNumericFormat', [JSControl.JSObject('aPad:false, aSep: "'+ ThousandSeparator +'", aDec: "'+ DecimalSeparator +'", mDec:' + DecimalPrecision.ToString)]); end;
Hello, with this code the value is not formatted at all. It behaves similar to the TuniNumericEdit class.
Don't know if is your code not working or i didn't exaplain well enough. I try with an example:
If the value is 10 the displayed value must me 10.00 ( i want minimal 2 digits)
If the Value is 10.1 the displayed value must me 10.10
If the Value is 10.123 the displayed value must me 10.123
Anyway the user can't insert a value with more than 4 decimals (DecimalPrecision=4) So if the number of decimals are less than 2 i would like to format the value with 2 decimals. If the decimals are more than 2 the value should not be formatted in the decimal part.
thanks
- 1
Connection Error Communication Failure 0 with a filtred table and a unidbgrid
in General
Posted
And i'm using Delphi 10.2.3 ... Maybe it's something related with Delphi version.