Page 1 of 1

XBrowse: how to hide vertical scrollbar

Posted: Tue Oct 06, 2020 9:22 am
by Enrico Maria Giordano
I want to hide the vertical scrollbar of an XBrowse but I need to do it in the ON INIT clause. oBrw:lVScroll = .F. doesn't work.

Thank you for any help.

EMG

Re: XBrowse: how to hide vertical scrollbar

Posted: Tue Oct 06, 2020 10:52 am
by vilian
Are you creating the xbrowse from resource ? If yes, just put 0x5090000 in its windows style property..

Re: XBrowse: how to hide vertical scrollbar

Posted: Tue Oct 06, 2020 11:02 am
by Silvio.Falconi
Enrico Maria Giordano wrote:I want to hide the vertical scrollbar of an XBrowse but I need to do it in the ON INIT clause. oBrw:lVScroll = .F. doesn't work.

Thank you for any help.

EMG
strange, do you have a small test to try ?

Re: XBrowse: how to hide vertical scrollbar

Posted: Tue Oct 06, 2020 11:49 am
by Enrico Maria Giordano
vilian wrote:Are you creating the xbrowse from resource ? If yes, just put 0x5090000 in its windows style property..
Thank you for the hint. It works with the following code:

Code: Select all

oBrw:WinStyle( WS_VSCROLL, .F. )
EMG