Page 1 of 1

questions about xbrowse to understand better

Posted: Tue Oct 18, 2022 9:32 pm
by Silvio.Falconi
Image

this is an array and there is only ( at init) one row x 7 columns.

Questions

if there is only one line why do the lines go all the way to the bottom of the xbrowse? (1)

if there is a single line or several lines but these do not reach the bottom of the coordinates of the xbrowse why is there the vertical scrollbar? (2)

that is, the vertical scrollbar must take place when there is actually something below the last visible line

i.e. to better explain the vertical scroll it must appear as it happens in the tesplorerbar class i.e. it appears if we make the window smaller, even in xbrowse it must happen in this way also for the horizontal scroll

the same thing must be true for the record selector first column on the left

Re: questions about xbrowse to understand better

Posted: Thu Oct 20, 2022 6:43 pm
by nageswaragunupudi
if there is only one line why do the lines go all the way to the bottom of the xbrowse? (1)

Please see the DATAs
lRowDividerComplete
lColDividerComplete

By default both of them are .F.
Do not set any of them to .T.

Do not use LINES clause in XBROWSE definition

Re: questions about xbrowse to understand better

Posted: Thu Oct 20, 2022 6:45 pm
by nageswaragunupudi
When you do not want scrollbars, you may disable lHScroll or lVScroll

Re: questions about xbrowse to understand better

Posted: Thu Oct 20, 2022 7:50 pm
by Silvio.Falconi
nageswaragunupudi wrote:
if there is only one line why do the lines go all the way to the bottom of the xbrowse? (1)

Please see the DATAs
lRowDividerComplete
lColDividerComplete

By default both of them are .F.
Do not set any of them to .T.

Do not use LINES clause in XBROWSE definition


Sorry I forget them

Re: questions about xbrowse to understand better

Posted: Thu Oct 20, 2022 7:52 pm
by Silvio.Falconi
nageswaragunupudi wrote:When you do not want scrollbars, you may disable lHScroll or lVScroll

No sorry,
I meant that the scrollbar in this case the vertical one should be activated only when the lines exceed the height of the xbrowse control, as happens in the texplorer class

sample :

Image

the rows of the table does not arrive at the end of the xbrowse control,
but it is possible see a vertical scroll bar that is commonly unusable because it is not possible to provide information on video.