Jump to content

Recommended Posts

Posted

Hello

To see the result in the calculator, I put an unimedit1.
I used this post to use the thousands separator in the unimedit1.

https://forums.unigui.com/index.php?/topic/38001-thousands-separator-in-unimedit/page/2/#findComment-172777

CalcPic.jpg.24bb3799f185c2b7e13096cd7b40ef29.jpg

 

In Tap Button  (1),  I wrote this command

function tap(sender, e, eOpts)
{
        ajaxRequest(sender, "numericValue", {val of unimedit1})
}

My question is,

How to pass the unimedit1 value instead of {val of unimedit1}

 

Regards.

Posted

I wrote the following code, but the thousands separator doesn't work.

 

procedure TfrmCalc.UnimFormCreate(Sender: TObject);
var
    btnScript: string;
begin  
  btnScript := 'tap=function tap(sender, e, eOpts)' + '{ ' +
    'ajaxRequest(sender, "numericValue",{' + 'val: "' +
  lblresult.Text +  '"})'+

     '} ';

  btn1.ClientEvents.ExtEvents.Add(btnScript);
end;

 

Regards.

Posted

 

To execute the painted code related to `UnimEdit` when the button (`UnimButton1`) is touched,

I used the button's OnClick event and wrote the following code,

 

  UnimEdit1.JSInterface.JSCall('painted', [UnimEdit1.JSInterface.JSObject(''), Null]);


but it gives an error
O1C.painted is not a function.

How to solve the problem?

Thanks very much.
 

×
×
  • Create New...