Jump to content

gerhardhziegler

uniGUI Subscriber
  • Posts

    133
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by gerhardhziegler

  1. On 8/8/2022 at 6:13 PM, Sherzod said:

    Hello, 

    Which build of uniGUI are you using? 

    Can you make a simple testcase to check? 

    I will try to make a testcase... will need some days.

  2. 5 hours ago, Sherzod said:

    Hello, 

    Sorry, your case is not clear to me. 

    Maybe this picture is much clearer. I think I can set the row with grid.Row, but I am not sure, where the row will be placed then. For me it would be excellent to read or set the base offset (red mark), if possible

    gridquest.jpg

  3. Dear Friends,

    we are using a stringgrid as a kind of kitchen-sink calender at the moment. we even implemented successful drag & drop.

    After redrawing we reset the row with Grid.Row (which works mostly of the time, in some cases not), but the offset of the grid, that means the first line shown at the top, is mostly messed up or changed. Is there a possibility to read/set the offset of the grid? And, is there a better possibility to set the row than Grid.Row?

    Best greetings, Gery

  4. On 4/5/2024 at 2:11 PM, Sherzod said:

    Can you test these codes on a demo example?

    The testproject, just built with the script you sent me, exactly did what it should. My main-project did not. 

    You see the structure of the project here und how I applied the script (similar to the test project)

    https://youtu.be/WLY-wXynAHI

    The mainform.Script is not overwritten, no where, I checked in the debugger. 

    Any ideas?

     

  5. 26 minutes ago, Sherzod said:

    Sorry, this seems to have worked for me.

    How can we reproduce this? Which browser are you using? Device (desktop, mobile) !?

    UniGui 1.50.0.1480, GoogleChrome , Win 8 to Win 11. D 2010 at the moment. triton.modified, Desktop.
    MainForm.Script is practically empty, the three lines are the the beginning.
    Maybe its possible to overrule somwhere in the calendar scripts itself?
     

  6. 4 hours ago, Sherzod said:

    Hello,

    Try this approach:

    MainForm.Script ->

    Ext.override(Ext.calendar.view.Day, {
        allowSelection: false
    });
    
    Ext.override(Ext.calendar.view.Week, {
        allowSelection: false
    });
    Ext.override(Ext.calendar.view.Month, {
        allowSelection: false
    });

     

    But it doesnt work. Its still shown when I am clicking or rangeselecting.

  7. 2 hours ago, Sherzod said:

    Hello,

    Try this approach:

    MainForm.Script ->

    Ext.override(Ext.calendar.view.Day, {
        allowSelection: false
    });
    
    Ext.override(Ext.calendar.view.Week, {
        allowSelection: false
    });
    Ext.override(Ext.calendar.view.Month, {
        allowSelection: false
    });

     

    You are the best, simply.

    • Like 1
  8. On 8/8/2022 at 7:21 PM, Sherzod said:

    Why don't you upgrade to the latest version?

    Also try this solution for your version you are using:

     

    Didnt work neither. Is it possible to set it in one of the Ext. Events of the grid itself?

    And: promise to update asap, but most likely in september

    Thanks

  9. 2 hours ago, gerhardhziegler said:

    Dear @Sherzod, I tried to, but did not succeed. After I had the licence violation problem, i overinstalled the UniGui (1.50.1480 still, because I am on a productive system). After I reinstalled, Delphi started without causing an error, but the UniGui components were not installed (projects messaging unknown properties and components). Now I am really in troubles! What could I do?
    Old WIndows 8 64bit, Delphi 2010.
    Best thanks for the help

    solved. Forgot something. Never mind. Thanks

    • Like 1
    • Upvote 1
  10. 18 hours ago, Sherzod said:

    Hello,

    Yes, You need to reinstall (generating a new key).

    Dear @Sherzod, I tried to, but did not succeed. After I had the licence violation problem, i overinstalled the UniGui (1.50.1480 still, because I am on a productive system). After I reinstalled, Delphi started without causing an error, but the UniGui components were not installed (projects messaging unknown properties and components). Now I am really in troubles! What could I do?
    Old WIndows 8 64bit, Delphi 2010.
    Best thanks for the help

  11. 4 minutes ago, Sherzod said:

    In the future, we will try to declare these buttons as component objects.

    Dirty solution at the moment.

    1. CustomCSS:

    
    .my-button {
      background-color: orange;
    }
    
    .my-button:hover {
      background-color: #ff8c00;
    }
    
    .my-button.x-pressing {
      background-color: #ee7600;
    }

    2. After execute:

    
      ...
      UnimFileUpload1.Execute;
      UniSession.AddJS('Ext.defer(function(){Ext.select(".x-uni-window").first().select(".x-button-el").elements.forEach(function(btn){Ext.get(btn).component.setUi("plain"); Ext.get(btn).component.setUserCls("my-button")})},10)');
      ...

     

    Ok, thanks a lot.
    As I understood, this sets all buttons of the dialog to the same style?

  12. Good afternoon,

    I would like to change the colors of the buttons of a mobile Upload Dialog as well as the text "browse" (of one button), which seems also to be standardized.

    Can anyone help me with the CSS and the Delphi Calls, I need?

    Thanks a lot in advance.
     

  13. 8 minutes ago, Sherzod said:

    You can also try to use this code:

    UnimButton -> ClientEvents -> ExtEvents ->

    
    function tap(sender, e, eOpts)
    {
        this.showMask();
    }

    great! Thanks! and how to unmask, of the mask is set?

     

×
×
  • Create New...