questions about xbrowse to understand better

Post Reply
User avatar
Silvio.Falconi
Posts: 7163
Joined: Thu Oct 18, 2012 7:17 pm
Been thanked: 2 times

questions about xbrowse to understand better

Post 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
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
nageswaragunupudi
Posts: 10729
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Been thanked: 10 times
Contact:

Re: questions about xbrowse to understand better

Post 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
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
Posts: 10729
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Been thanked: 10 times
Contact:

Re: questions about xbrowse to understand better

Post by nageswaragunupudi »

When you do not want scrollbars, you may disable lHScroll or lVScroll
Regards

G. N. Rao.
Hyderabad, India
User avatar
Silvio.Falconi
Posts: 7163
Joined: Thu Oct 18, 2012 7:17 pm
Been thanked: 2 times

Re: questions about xbrowse to understand better

Post 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
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
Posts: 7163
Joined: Thu Oct 18, 2012 7:17 pm
Been thanked: 2 times

Re: questions about xbrowse to understand better

Post 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.
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Post Reply