Jump to content

molla2005b

uniGUI Subscriber
  • Posts

    222
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by molla2005b

  1. hi

    I have 2 registered main form

      RegisterAppFormClass(TMainForm1);
      RegisterAppFormClass(TMainForm2);
     
    I want to switch between theme.
     
    where I can apply this code?
     
      UniMainModule.MainForm:=MainForm1;
    or
      UniMainModule.MainForm:=MainForm2;
     
    and is this the right way to do that?
     
    tnx
  2. hi

    use this code

    procedure TMainForm.UniDBGrid1AfterLoad(Sender: TUniDBGrid);
    var
      DBGridJSName: string;
    begin
      DBGridJSName := (Sender as TUniDBGrid).JSName;
      UniSession.AddJS('Ext.defer(function(){' + DBGridJSName + '.getSelectionModel().deselectAll(); '
    + DBGridJSName + '.view.refresh()}, 20); '
      );
    end;

    from Delphi Developerhttp://forums.unigui.com/index.php?/topic/7022-issue-with-gridselected/


    but your DBGrid will be refreshed twice
    we need a DBGrid property to avoid this action 

×
×
  • Create New...