Jump to content

Recommended Posts

Posted

Hi,

 

The Horizontal Bar is always active, even if not necessary. Any solution for hiding the horizontal bar in the latest version?

 

To reproduce the problem:

1) Drop one uniscrollbox in one form and set 'Align' to alClient.

2) Drop one unipanel into the scrollbox and set its 'Align' to alTop

3) Run the application.

 

http://forums.unigui.com/index.php?/topic/168-more-questions-and-improvements/

 

 

 

Thank You.

  • 1 year later...
Posted
3 hours ago, shawdown said:

I really have a problem.

Any suggestions?

Hi, 

Sorry, can you please explain in more details? Please make a simple testcase if possible. 

Posted

Hi, here is my suggestion:

myScrollBox.ClientEvents.ExtEvents.Values['afterrender']:='function afterrender(sender, eOpts) {sender.getEl().dom.style["overflow-x"]="hidden";;}';

Or

MyScrollBox -> ClientEvets -> ExtEvents -> function afterrender:

function afterrender(sender, eOpts)
{
  sender.getEl().setStyle('overflow-x', 'hidden')
}

 

 

  • Like 1
  • 2 years later...
Posted
On 5/23/2019 at 4:52 PM, JDDEV said:

Hi, here is my suggestion:

myScrollBox.ClientEvents.ExtEvents.Values['afterrender']:='function afterrender(sender, eOpts) {sender.getEl().dom.style["overflow-x"]="hidden";;}';

Or

MyScrollBox -> ClientEvets -> ExtEvents -> function afterrender:

function afterrender(sender, eOpts)
{
  sender.getEl().setStyle('overflow-x', 'hidden')
}

 

 

Hello!

But I need to hide, on the contrary, the vertical scrollbar.
To do this, I added this:
 

sender.getEl().setStyle('overflow-y', 'hidden')


However, in this case, scrolling (scrolling) in UniScrollBox stops working in principle.
But I need scrolling to work (with the mouse wheel), but also not to see the vertical scroll bar.

How can this be done, what do I need?

Posted
1 minute ago, Sherzod said:

Hello,

Can you make a simple testcase to check? 

Can't... :( Commercial project in out company.

You can try this code in any project, because this is standart UniScroolBox.

For Horizontal bar it's working. And for Vertical bar too.

But, after this not working scrolling in UniScrollBox...

Posted
1 minute ago, Артем said:

You can try this code in any project, because this is standart UniScroolBox.

Well, here you could help us with a simple test app...

Posted
27 minutes ago, Sherzod said:

Yes, \FMSoft\Framework\uniGUI\Demos\Desktop\ScrollBox

No, this is not what I need.
It just scroll works.
And I need the scrolling to work, but the vertical bar is not visible.

  • 9 months later...

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...