XbpQuickBrowse and slidebar appaerance

Grafische Primitive, XbaseParts und Darstellungsfragen allgemein.

Moderator: Moderatoren

Antworten
Stephan Borst
Rookie
Rookie
Beiträge: 12
Registriert: Mi, 15. Jun 2016 10:33

XbpQuickBrowse and slidebar appaerance

Beitrag von Stephan Borst »

Hi all,

When I create a XbpQuickBrowse (with an Array) with only a small number of records,
the slide bar is nevertheless shown as if there are more records.
See attachment for an example.

Anyone with any ideas why this slidebar appears like that? And how to alter ?

Regards, Stephan
Dateianhänge
slidebar.jpg
slidebar.jpg (29.47 KiB) 1802 mal betrachtet
Benutzeravatar
Tom
Der Entwickler von "Deep Thought"
Der Entwickler von "Deep Thought"
Beiträge: 9345
Registriert: Do, 22. Sep 2005 23:11
Wohnort: Berlin
Hat sich bedankt: 100 Mal
Danksagung erhalten: 359 Mal
Kontaktdaten:

Re: XbpQuickBrowse and slidebar appaerance

Beitrag von Tom »

Use

Code: Alles auswählen

oMyQuickBrowse:vScrollObject:visible := .F.
before oMyQuickBrowse:Create(). If you use it afterwards, call oMyQuickBrowse:Configure().
Herzlich,
Tom
Stephan Borst
Rookie
Rookie
Beiträge: 12
Registriert: Mi, 15. Jun 2016 10:33

Re: XbpQuickBrowse and slidebar appaerance

Beitrag von Stephan Borst »

Thanks Tom,

But that is what I call a work-around: hide the slidebar when you have less records to show then the
maximum number of records which can be shown on the display.
Nevertheless, it might work, but I get a dump when doing the :configure()

Xbase++ version : Xbase++ (R) Version 2.00.1079
Operating system : Windows 10 2009 Build 19043
------------------------------------------------------------------------------
oError:args :
-> VALTYPE: O CLASS: XbpStatic
oError:canDefault : N
oError:canRetry : N
oError:canSubstitute: N
oError:cargo : NIL
oError:description : Object has no member with this name
oError:filename :
oError:genCode : 26
oError:operation : MaxRow
oError:osCode : 0
oError:severity : 2
oError:subCode : 2240
oError:subSystem : BASE
oError:thread : 1
oError:tries : 0
------------------------------------------------------------------------------
CALLSTACK:
------------------------------------------------------------------------------
Called from XBPMULTICELLCANVAS:ARRANGECHILDSVERTICAL(335)
Called from XBPMULTICELLCANVAS:SETSIZE(528)
Called from XBPMULTICELLCANVAS:CONFIGURE(180)
Called from (B)XBPQUICKBROWSE:CONFIGURE(559)
Called from XBPQUICKBROWSE:CONFIGURE(559)
Stephan Borst
Rookie
Rookie
Beiträge: 12
Registriert: Mi, 15. Jun 2016 10:33

Re: XbpQuickBrowse and slidebar appaerance

Beitrag von Stephan Borst »

What does work:

oXbpQuickBrowse:vScrollObject:configure()

Some more info on the slidebar: It seems as if this slidebar is configured
to always scroll the last record to the top of the XbpQuickBrowse.
(difficult to explain, but see the attachment).

I think this might be somehting for Alaska to figure this out !

Let us close this topic.

Regards, Stephan
Dateianhänge
slidebar2.jpg
slidebar2.jpg (42.62 KiB) 1786 mal betrachtet
Antworten