Jump to content

Lena

uniGUI Subscriber
  • Posts

    231
  • Joined

  • Last visited

  • Days Won

    8

Posts posted by Lena

  1. or for menu item hide,

    object inspector-->grid columns( tvcldbColumns[1] ) --> menu-->columnHideable-->false

     

    Thank you for your help.

    I try it but it does not work for me. :(

     

    UniDBGrid1 -> ClientEvents -> UniEvents -> beforeInit:

     

    Thank you very much!

    Now it works!

  2. Hi.

    I read in uniGUI.pdf:

    2.1.3 VCL Application
    One of the unique features of uniGUI is its ability to create VCL applications which are a web server
    at the same time. This means that each VCL Application created with uniGUI library contains a Web
    Server.

     

    1. How add in VCL Application  uniGUI Web Server?

    Maybe this documentation is outdated?

     

    2. Is it possible to convert VCL Application in uniGUI?

     

    Thanks.

     

     

     

     

     

     

  3. Hi.

    On Form:

    UniEdit1 TabOrder=1

    UniEdit2 TabOrder=2 //OK focus

    UniEdit3 TabOrder=3 //OK focus

    UniBitBtn TabOrder=4 //I can not set the focus by pressing TAB

     

    I show this Form ShowModal()

    In event UniFormShow code UniEdit1->SetFocus();

    Then I press key TAB 3 times.

    Button does not want to receive focus. How correctly?

    Thanks.

     

     

  4. Hi.
    How I can change icon server?
    I try Project -> Options -> Application -> Load Icon
    but icon not change in tray. Maybe it because I use trial edition?
    Can I translate into another language server pop up menu (Restore/Shutdown)?
    This is not very important but I am wondering.
    Thanks.
     

     

  5. Hi,

     

    Try:

    UniChart1 -> ClientEvents -> UniEvents -> [Ext.chart.Chart [chart]] add function chart.beforeInit

    function chart.beforeInit(sender, config)
    {
      sender.themeAttrs.seriesThemes = [{fill: '#ff4565'}, {fill: 'green'}, {fill: 'yellow'}];
      sender.themeAttrs.colors = ['#ff4565', 'green', 'yellow']
    }
    

    Best regards.

    Hi.

    I try your code in C++ Builder XE7 and I got error. Where my mistake?

    Thank you.

    post-32-0-77450000-1428404865_thumb.jpg

  6. Hi.

    I have one series.

    1.How I can change the color of this series?

    2.Can I change the color at the points of the series?
    For example temperature series. If the temperature is above 50 degrees is the point of the red, the other green. Is it possible?

    Thank you.

  7. Where more correct to open a database connection?

    In UniGUIMainModuleCreate or in UniFormShow?

    Thanks.

    //in UniMainModule
    void __fastcall TUniMainModule::UniGUIMainModuleCreate(TObject *Sender)
    {
     //FireDAC
     FDQuery1->Active = true;
     FDQuery1->FetchAll();
     FDQuery1->First();
    }
    
    //then in main form
    void __fastcall TMainForm::UniFormShow(TObject *Sender)
    {
     if(UniMainModule()->FDQuery1->RecordCount == 0)
     {
      ShowMessage(L"No data");
      return;
     }
    
     UniMainModule()->ClientDataSet1->Active = true;
    }
    
    //*************************************************
    
    //Or all code in main form
    void __fastcall TMainForm::UniFormShow(TObject *Sender)
    {
     //FireDAC
     UniMainModule()->FDQuery1->Active = true;
     UniMainModule()->FDQuery1->FetchAll();
     UniMainModule()->FDQuery1->First();
     if(UniMainModule()->FDQuery1->RecordCount == 0)
     {
      ShowMessage(L"No data");
      return;
     }
    
     UniMainModule()->ClientDataSet1->Active = true;
    }
    
×
×
  • Create New...