Jump to content

molla2005b

uniGUI Subscriber
  • Posts

    222
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by molla2005b

  1. procedure TUniMainModule.UniGUIMainModuleNewComponent(AComponent: TComponent);
    begin
    
      if AComponent is TUniForm then
        (AComponent as TUniForm).RTL := UniMainModule.RTL;
    
    end;

    the above code not work?
    UniMainModule.RTL:=true;

    MainForm.RTL:=True;
    I have more than 200 form in the project.

    thanks in advance

  2. Thanks all

    my problem in javascript code

    finally I slove it by this code

     s:='function specialkey(sender, e, eOpts) '+
        ' { '+
        '  if (!(e.shiftKey) && (e.getKey() == 13))'+
        '  {   '+
        '       e.stopEvent();  '+
        '     '+FindAccountFrame.cmbAccount.JSName+'.focus();'+
        '  }'+
        ' }';
    
     cmbType.ClientEvents.ExtEvents.Values['specialkey']:=s;
    

    but why frmOrder.FindAccountFrame.cmbAccount.focus(); not work?

  3. i have a frame as Component (TFindAccountFrame)
    this frame contain a combobox named cmbAccount
    I want to move the focus from a control to
    cmbAccount by Enter key

    but this code note work : frmOrder.FindAccountFrame.cmbAccount.focus();

    How I can get the right name of cmbAccount in specialkey evevt.

     

    thanks

  4. function specialkey(sender, e, eOpts)
    {
         if (! (e.shiftKey) && (e.getKey () == 13)) 
        {
     
           e.stopEvent ();
           frmOrder.FindAccountFrame.cmbAccount.focus();
        }
    }
    

    I want to set focus of cmbAccount control

    cmbAccount is owned by FindAccountFrame frame.

     

    thanks for help

×
×
  • Create New...