Jump to content

alfr

uniGUI Subscriber
  • Posts

    132
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by alfr

  1. I assume this should work with unimEdit as well.

     

    On 11/6/2020 at 10:30 PM, alfr said:

    The above sets the inputType, which is not the same attribute you need to set to control the virtual keyboard. That is controlled by the InputMode attribute. This is not published through uniGui. But what you can do is the following. 

    1. In your uniedit control choose - ClientEvents - ExtEvents - afterrender

    2. 

    
    
    function afterrender(sender, eOpts)
    {
        var me=sender.inputEl;      
        me.set({
            inputmode: "none"
        });
    }

     

    http://forums.unigui.com/index.php?/topic/15465-uniedit-and-android-soft-keyboard/&do=findComment&comment=85005

     

  2. 1 hour ago, emin said:

    with unimainmodule.servermodulesql do

    What i meant was that you can’t call anything in the mainmodule from the servermodule. The mainmodule is linked to a specific user, the servermodule is not (singleton). So the sql and the db connection in the servermodule usually needs to be created in the servermodule. 

  3. Perhaps an option how to disable back swipe gesture. (The safari solution at least again shows the same page again.)

    You Should Try this solution in two way :

    1) CSS only fix for Chrome/Firefox

     html, body {
        overscroll-behavior-x: none;
    }
    

    2) JavaScript fix for Safari

    if (window.safari) {
      history.pushState(null, null, location.href);
      window.onpopstate = function(event) {
          history.go(1);
      };
    }
    

    Over time, Safari will implement overscroll-behavior-x and we'll be able to remove the JS hack

    https://stackoverflow.com/questions/30636930/disable-web-page-navigation-on-swipeback-and-forward

  4. Have you set it to use sslv3? If so this should not be used any longer. Use instead TLSv1_1 (and perhaps higher). 

    (in SSLOptions.Metod and SSLOptions.SSLversions)

  5. 10 minutes ago, irigsoft said:

    To work around the problem, I'm using a Paged grid (but having trouble with internal column calculations)

    Thanks for replying. As I said, we have no need to have a paged grid in this case. But also with a paged grid the problem do occur with quite few records in the page - in the example around 52 rows or so. I assume this is related to the height of row 1 compared to other rows' height. I therefore need some way to handle/get around the problem...

  6. Hi Sherzod, appreciate if you can help me with the following problem or to find a workaround on it...

    I have a normal uniDbGrid, which doesn't display data correctly when the first row has a higher height (more lines) than the other rows in the grid. I suppose the first line is used internally somehow for calculating the total height or when next page of data needs to be loaded from the dataset? 

    The unidbgrid is not set to use BufferedStore, but to be "non-paged" and FetchedAll.

    Is there some reconfiguring possible to get around this? To tell the grid to load new data earlier or somehow use other rowheight in calculations? (seems also scrollbar is very long when problem is active.)

    I've attached a screen movie which shows when the problem occurs, and when not. (Also in attached test case.) The same data is used in both scenarios.

    • In Scenario 1, with a row with multiple lines first on row 2 in the grid, everything works perfect! All 1000 lines are smoothly shown in the grid.
    • In Scenario 2, with a row with multiple lines on row 1 in the grid, a lot of white space is first shown after around a page of data or so, but after some more scrolling, the data is then shown in the grid.

    Thanks in advance, 

    Alf

    1866581003_ProblemuniDbGridwithhighrow1.gif.6a2c0dbe2aae47cd1c4379d41df11b93.gif

     

    TestCase.zip

     

    UniGui Professional 1.90.0.1537 - (Licence renewed in October)

  7. Hi, 

    I believe there is some gap or at least handled different with the html menu compared to native delphi.

    If you skip the following 4 lines (2 before your updates and 2 after your updates) the menu is updated correct. So changes are not updated correctly on the UniTreeMenu1 when using .BeginUpdate / .EndUpdate (So at least these lines mustn't be used for the menu to be updated correctly.

    
    
        UniTreeMenu1.BeginUpdate;
        UniTreeMenu1.SourceMenu := nil;
    
    // All other code...
    
      UniTreeMenu1.EndUpdate;
      UniTreeMenu1.SourceMenu := UniMenuItems1;

     

  8. Hard to give a definite answer based on the above. But seems that you are loading the frame in the mainform on show. This could impact performance as the form then is already done and visible. I'd recommend to instead do the frame loading in the Mainform create. Depending on how many controls you have in the frame this could impact a lot. (But can of course also be something else as well) 

  9. The above sets the inputType, which is not the same attribute you need to set to control the virtual keyboard. That is controlled by the InputMode attribute. This is not published through uniGui. But what you can do is the following. 

    1. In your uniedit control choose - ClientEvents - ExtEvents - afterrender

    2. 

    function afterrender(sender, eOpts)
    {
        var me=sender.inputEl;      
        me.set({
            inputmode: "none"
        });
    }

     

    • Like 1
  10. I believe above should work, so must be something different between your sample app and real app that makes the problem. Are you sure you're not getting in the code again (late) or that the scanner also sends CR/return that affects it?) (I assume you have tested with manual entry as well.... ). But believe problem is something else than above. Doesn't above work if you enter the code manually?

  11. I  set the  

    PFmtSettings.ThousandSeparator:=' ';

    in MainModule for the user

    but then activate the format in the undDbGrid by setting the DisplayFormat of the field in the Query linked to the grid. So to activate the thousand seperator here use #,### or #,##0 or similair...

    image.png.154bc851092bfdc912721ccc1607e74a.png

×
×
  • Create New...