Jump to content

风吹小机机

uniGUI Subscriber
  • Posts

    157
  • Joined

  • Last visited

  • Days Won

    5

Posts posted by 风吹小机机

  1.   p.ClientEvents.ExtEvents.Values['afterlayout'] := ' function afterlayout(sender, layout, eOpts)'
                                                      + ' {'
                                                      + '    var PWidth  = Ext.get("' + p.jsid + '").getWidth();'
                                                      + '    var PHegith = Ext.get("' + p.jsid + '").getHeight();'
                                                      + '    var FWidth  = Ext.get("' + self.jsid + '").getWidth();'
                                                      + '    var FHegith = Ext.get("' + self.jsid + '").getHeight();'
                                                      + '    var PTop    = FHegith / 2 - PHegith/2;'
                                                      + '    var PLeft   = FWidth / 2  - PWidth/2;'
                                                      + '    Ext.get("' + p.JSId + '").setStyle({"top":PTop + "px","left":PLeft + "px"});'
                                                      + ' }';

    据中.gif

    • Thanks 1
  2. 5 hours ago, eduardosuruagy said:

    你要卖这个工具吗?如果是这样,我有兴趣了解更多关于她的信息。

    yes

    The web dynamic framework is developed by Delphi 10.3.3 + unigui1535 + fr script and has the following advantages:

    1. The integrated development environment is completely separated from the desktop development tools and directly develops modules in the web. As long as there is a browser operating platform, you can use < implementation: cross platform development and cross platform operation >.

    2. All controls are encapsulated into the platform in the way of encapsulation to ensure the uniform version of controls.

    3. Similar to Delphi development mode: drag and drop controls and track debugging to achieve what you see.

    4. Module data < interface code data is stored in the database. When it is to be called, it will be loaded from the database for interpretation and operation >

    5. Three login methods < framework user, development user and system user > solve the permission application at all levels

    6. Menu list, which can be set dynamically, and the adding function is simple and clear.

    7. Module management function: each module can be assigned development permission.

    8. The diversified permission customization function can locate and control the details of each module to ensure data security

    9. The above functions have inherent advantages: immediacy < keep the system in the latest version state all the time, so as to achieve compilation and update free >

    • Like 2
  3. Thank you very much for your answer

    My problem has been solved,

    The solution is to share with you:

    UniSession.AddJS(' if(!!Ext.get("' + MenuTree.JSId + '").el.dom.children[0].id){'
                      +'      var kid = Ext.get("' + MenuTree.JSId + '").el.dom.children[0].id;'
                      +'      Ext.get(kid).setStyle({"background-color":"rgba(200,0,0,1)"});'
                      +' }');

  4. 9 minutes ago, 风吹小机机 said:

    Tunitreeview is browser right-click disabled

    However, the internal node does not disable the right button, and two menus (customized menu and browser menu) will appear

    Sorry, maybe I didn't describe the problem very clearly

    As shown in the figure, how to remove the menu in the red box

    Only disable the browser's own menu of tree nodes

    aaaa.png

  5. On 9/13/2021 at 7:15 PM, Sherzod said:

     

    Can you try?

    function afterrender(sender, eOpts)
    {
        sender.getView().getEl().dom.addEventListener(
          'contextmenu', 
          function(e) {
            e.preventDefault()
          }
        );
    }

     

    Tunitreeview is browser right-click disabled

    However, the internal node does not disable the right button, and two menus (customized menu and browser menu) will appear

×
×
  • Create New...