Jump to content

PS1

uniGUI Subscriber
  • Posts

    95
  • Joined

  • Last visited

Posts posted by PS1

  1. On 2/19/2021 at 1:26 PM, Sherzod said:

    Or

    1. 

    procedure TMainForm.UniButton1Click(Sender: TObject);
    begin
      UniHTMLFrame1.HTML.Add('TEST<br>');
      //UniHTMLFrame1.JSInterface.JSCallDefer('body.scroll', ['b', UniHTMLFrame1.JSInterface.JSStatement('Infinity')], 100);
    end;

    2. UniHTMLFrame1 -> ClientEvents -> ExtEvents -> 

    function afterupdatehtml(sender, eOpts)
    {
        sender.body.scroll('b', Infinity);
    }

     

     

     

    How can i make this work on mobile version - UnumHTMLFrame ?

     

  2. When i set uniform layoutconfig.Height = auto in design time, it doesn't seem to work. It only make bar with height 30px like in the picture below, even if i have panel on it with static height 300px.

    I attached testcase with example.

     

    Is there a solution to  make uniform ,,autosize" to its content ? 

    Project1.zipimage.thumb.png.4305604b9dde7988ec9e9657406db5cd.png

     

    I'm using:

    uniGUI Complete -Professional Edition

    Build 1.90.0.1568 

  3. No, not in the edit mode.

    Thanks for the response, but in the meantime i just found new solution for my problem. I just use cellkeydown function, which is simpler:

      _uniDBGrid.ClientEvents.ExtEvents.Values['cellkeydown'] :=
        'function cellkeydown(sender, td, cellIndex, record, tr, rowIndex, e, eOpts) '
          +'{ '
          +'   if ((e.ctrlKey) && (e.keyCode == 67)){ '
          +'      navigator.clipboard.writeText(td.innerText);'
          +'   }'
          +'}';

  4. Testcase made from demo project. You can just focus DBGrid and click any key. Alert should be shown but it is not. 

     

    2. UniDBGrid -> ClientEvents -> ExtEvents -> function reconfigure:

    function reconfigure(sender, store, columns, oldStore, oldColumns, eOpts) 
    {
        columns.forEach(function(col) {
            if (col.getEditor()) {
                col.getEditor().on('keydown', function(field, e) {
                    if (e.keyCode == 115) {
                        // keyCode can also be passed
                        ajaxRequest(sender, '_keydown', ['val=' + field.value])
                    }
                })
            }
        })
    }

    The part :

    col.getEditor().on('keydown', function(field, e) { ...}

    This function does not fire. 

     

     

     

     

    Grid - Infinite Scroll.zip

  5. Hi.

    How can i make unimspinner to only accept integers ? I don't want user to write float/double values.

    I see there is a property ,,decimals" but it seems that it doesn't work.  

    Another solution would be to block writing in the edit part of unimspinner so user can only tap on ,,+" and ,,-" which adds only integers.

     

    I'm using: uniGUI Complete -Professional Edition Build 1.90.0.1568

  6. Ok, maybe i'll tell what i want to acompolish so it will be more clear.

    In mobile UNIGUI there is HideAnimation = SlideOut. But it slides from right to left. In my application it is very confusing. I want to make it so it will slide from left to right.

    You  provided animation code for desktop version of UNGUI.  Now i am askiing you if you could provide code with same effect but for mobile version of UNIGUI.

     

  7. If i understand coreclty, in that post you provided solution to use build-in animation in UNIGUI (fade,fadeout,flip,pop,poput, etc...). 

     

    In my case i want to create my own animation like you in post below (which is animation for desktop version)

    One possible solution:

    function window.beforeclose(panel, eOpts) 
    {
        if (!panel.isClosable) {
            panel.animate({
                duration: 1000,
                to: {
                    opacity: 0
                },
                listeners: {
                    afteranimate: function() {
                        panel.isClosable = true;
                        panel.close()
                    }
                }
            });
        }
        return (panel.isClosable == true)
    }

     

×
×
  • Create New...