Jump to content

hide scrollbar of uniDBGrid - show scrollbar only on mouse over


erich.wanker

Recommended Posts

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";}

 

Link to comment
Share on other sites

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");
}

 

Link to comment
Share on other sites

  • 1 year later...
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');
}

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...