Jump to content

uniguibbs

Members
  • Posts

    135
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by uniguibbs

  1. second question:

        give a name to the componet.

        next time run this code ,  exception raise

     

     

    ---------------------------
    Debugger Exception Notification
    ---------------------------
    Project FlowQinJia.exe raised exception class EComponentError with message 'A component named rgrmp2 already exists'.
    ---------------------------
     
    i try to  RemoveControl(rgEmp2) at first;   

     

    another exception raise  " the component not exists."

    what's wrong?
  2. unigui 0.94  

     delphi xe2

     

    Dynamic create TUniRadioGroup.

    following code,  the columns doesn't divide to 6. 

    what's wrong?

     

      RemoveControl(rgEmp2);  
      rgEmp2 := TUniRadioGroup(InsertControl(TUniRadioGroup.Create(Self)));
      rgEmp2.ClientEvents.ExtEvents.Add(
        'radioGroup.beforerender=function radioGroup.beforerender(sender, eOpts)'
        + #13#10
        + '{'
        + #13#10
        + 'sender.columns = 6'
        + #13#10
        + '}'
      ); 
     
     
      if not cdsDepMan.IsEmpty then
      begin
        cdsDepMan.First;
        while not cdsDepMan.Eof do
        begin
          rgEmp2.Items.Add(cdsDepManempname.AsString);
          cdsDepMan.Next;
        end;
      end;

     

  3. hi , rullomare.

     

     unigui 0.94  

     delphi xe2

     

    Dynamic create TUniRadioGroup.

    following code,  the columns doesn't divide to 6. 

    what's wrong?

     

      RemoveControl(rgEmp2);  
      rgEmp2 := TUniRadioGroup(InsertControl(TUniRadioGroup.Create(Self)));
      rgEmp2.ClientEvents.ExtEvents.Add(
        'radioGroup.beforerender=function radioGroup.beforerender(sender, eOpts)'
        + #13#10
        + '{'
        + #13#10
        + 'sender.columns = 6'
        + #13#10
        + '}'
      ); 
      rgEmp2.ClientEvents.Enabled := True;
     
      if not cdsDepMan.IsEmpty then
      begin
        cdsDepMan.First;
        while not cdsDepMan.Eof do
        begin
          ListLeader.Add(Format('%S=%S', [cdsDepManempid.AsString, cdsDepManempname.AsString]));
          rgEmp2.Items.Add(cdsDepManempname.AsString);
          cdsDepMan.Next;
        end;
      end;
  4. I want to use 'ajaxRequest' in TUniHTMLFrame.HTML. Source Code:

    TUniHTMLFrame.HTML:

    <input type="button" value="Test"  class="button"  onclick="ajaxRequest(sender, 'MyEvent1', [ 'param0=A', 'param1=B' ]);"/>

     

    procedure UniHTMLFrame1AjaxEvent(Sender: TComponent;
      EventName: string; Params: TStrings);
    begin
      ShowMessage(EventName);
    end;

     

    When I click 'Test' button, It cannot call 'UniHTMLFrame1AjaxEvent'. Why?

     

     

     

     

  5. update xe to xe2.

     

    xe2 + iis7 + ISAPI + 32BIT

     

    i want debug project.dll.

     

    menu->run->attach to process.

     

    display as the photo below:

    all of image name in  running processes list  = "system", PID ALL = 0

     

     

    what's happen?

    what can i do?

    help!

     

    post-1349-0-30639000-1378368959_thumb.pngpost-1349-0-22036900-1378369045_thumb.png

  6. Isapi, win64, iis, 

     

    when i visit my app,  need to wait a long time, then session timeout.

     

    i think may be the ext-all.js too large, browser wait it download for a long time ,  so session timeout.

     

    is it exactly?

     

    how optimize ?

  7. how to optimize my app?

     

    we visit online demos in ungui.com ,

    the demos work fine.

     

    my app , visit on intranet , work fine.

    but in internet , it don't work.

     

    two question:

     

    1.how to optimize app if deploy my app in internet?

     

    2.how to decrease ext-all.js size.

     

×
×
  • Create New...