Jump to content

N.Marzio

uniGUI Subscriber
  • Posts

    108
  • Joined

  • Last visited

Posts posted by N.Marzio

  1. Sorry but what do you mean by test?
    Looking at the example above, in none of the following cases
      //
       // Not Working !!
       activeControl := edtEti;// <--- TUnimEdit
       //
       // Not Working !!
       UniSession.AddJS('setTimeout(function(){' + edtEti.JSName + '.focus()}, 100)');
       //
       // Not Working !!
       edtEti.JSInterface.JSCall('focus', [])

    The focus is returned to the requested field.
    The problem occurs on all browsers on mobile devices
    and also on desktop.

    What other case should I do?

    Thank you

  2. procedure TxFrmMage.cmdSelez(Sender: TObject; var Key: Word;Shift: TShiftState);
    var
      lVal : string;
      lMsg : string;
      lNum : integer;
    begin
      if (key = VK_F1) or (key = VK_F2) then begin
        cmdClose(nil);
      end;
      //
      if key <> VK_RETURN then exit;
      //

      //

      // I've tried every one of these possibilities

      //

      // 
      // Not Working !!
      activeControl := edtEti;// <--- TUnimEdit
      //
      // Not Working !!
      UniSession.AddJS('setTimeout(function(){' + edtEti.JSName + '.focus()}, 100)');
      //
      // Not Working !!
      edtEti.JSInterface.JSCall('focus', [])
      //
      //
    end;

  3. I solved
    Thanks!

     

      with UnimSegmentedButton do begin
        Items[0].Pressed := False;
        JSInterface.JSCall('setPressed', [False], Items[0].JSMenuItem);
        Items[1].Pressed := False;
        JSInterface.JSCall('setPressed', [False], Items[1].JSMenuItem);
      end;

×
×
  • Create New...