erich.wanker Posted March 8, 2019 Share Posted March 8, 2019 hy .. how can i hide the scrollbar of uniDBGrid and show it only if the mous is on the uniDBGrid? ThanX Erich i have a solution for a uniscrollbox - but i have no idea what to change for use in uniDBGrid: function afterrender(sender, eOpts){ sender.getEl().dom.style["overflow"]="hidden";} function mouseout(sender, eOpts){ sender.getEl().dom.style["overflow"]="hidden";} function mouseover(sender, eOpts){ sender.getEl().dom.style["overflow"]="auto";} Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 13, 2019 Share Posted March 13, 2019 On 3/8/2019 at 6:33 PM, erich.wanker said: i have a solution for a uniscrollbox - but i have no idea what to change for use in uniDBGrid: Hi Erich, You can use this approach: function afterrender(sender, eOpts) { sender.getView().setStyle("overflow", "hidden"); } function mouseover(sender, eOpts) { sender.getView().setStyle("overflow", "auto"); } function mouseout(sender, eOpts) { sender.getView().setStyle("overflow", "hidden"); } Quote Link to comment Share on other sites More sharing options...
mos Posted June 5, 2020 Share Posted June 5, 2020 Hi Sherzod, How could I do the same for a TUniHTMLFrame if focus is outside the HTMLFrame then hide the scrollbars otherwise show the scrollbars? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 5, 2020 Share Posted June 5, 2020 Hi, Need to analyze. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 5, 2020 Share Posted June 5, 2020 1 hour ago, mos said: How could I do the same for a TUniHTMLFrame if focus is outside the HTMLFrame then hide the scrollbars otherwise 1. function afterrender(sender, eOpts) { sender.setBodyStyle('overflow', 'hidden'); } 2. function mouseout(sender, eOpts) { sender.setBodyStyle('overflow', 'hidden'); } 3. function mouseover(sender, eOpts) { sender.setBodyStyle('overflow', 'auto'); } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.