PtList scrollbar settings

Hallo
Has the setting of the Pt_ARG_MIN_SLIDER_SIZE resource of a list’s scrollbar
any effect? Is this resource supported at all?

Markus

Markus Jauslin <markus.jauslin@ch.mullermartini.com> wrote:

Has the setting of the Pt_ARG_MIN_SLIDER_SIZE resource of a list’s scrollbar
any effect? Is this resource supported at all?

Unfortunately, Pt_ARG_LIST_SB_RES doesn’t let you set the scrollbar’s
Pt_ARG_MIN_SLIDER_SIZE.

\

Wojtek Lerch (wojtek@qnx.com) QNX Software Systems Ltd.

“Wojtek Lerch” <wojtek@qnx.com> schrieb im Newsbeitrag
news:9f8932$qv2$1@nntp.qnx.com

Markus Jauslin <> markus.jauslin@ch.mullermartini.com> > wrote:
Has the setting of the Pt_ARG_MIN_SLIDER_SIZE resource of a list’s
scrollbar
any effect? Is this resource supported at all?

Unfortunately, Pt_ARG_LIST_SB_RES doesn’t let you set the scrollbar’s
Pt_ARG_MIN_SLIDER_SIZE.


Can this be changed in the future and what would be an easy work around

(instead of a list without scrollbar and a seperate scrollbar)?

Markus

Markus Jauslin <markus.jauslin@ch.mullermartini.com> wrote:

“Wojtek Lerch” <> wojtek@qnx.com> > schrieb im Newsbeitrag
news:9f8932$qv2$> 1@nntp.qnx.com> …
Markus Jauslin <> markus.jauslin@ch.mullermartini.com> > wrote:
Has the setting of the Pt_ARG_MIN_SLIDER_SIZE resource of a list’s
scrollbar
any effect? Is this resource supported at all?

Unfortunately, Pt_ARG_LIST_SB_RES doesn’t let you set the scrollbar’s
Pt_ARG_MIN_SLIDER_SIZE.


Can this be changed in the future and what would be an easy work around
(instead of a list without scrollbar and a seperate scrollbar)?

I’ll add it to the code, but I don’t know if another 1.14 patch is
planned soon.

I guess you could simply typecast your list widget to PtGenListWidget_t
and find the scrollbar’s widget pointer in there. It’s very unlikely
that the location of that pointer inside PtGenListWidget_t will change
in Photon 1…

\

Wojtek Lerch (wojtek@qnx.com) QNX Software Systems Ltd.

“Wojtek Lerch” <wojtek@qnx.com> schrieb im Newsbeitrag
news:9fiore$hc4$1@nntp.qnx.com

Markus Jauslin <> markus.jauslin@ch.mullermartini.com> > wrote:
“Wojtek Lerch” <> wojtek@qnx.com> > schrieb im Newsbeitrag
news:9f8932$qv2$> 1@nntp.qnx.com> …
Markus Jauslin <> markus.jauslin@ch.mullermartini.com> > wrote:
Has the setting of the Pt_ARG_MIN_SLIDER_SIZE resource of a list’s
scrollbar
any effect? Is this resource supported at all?

Unfortunately, Pt_ARG_LIST_SB_RES doesn’t let you set the scrollbar’s
Pt_ARG_MIN_SLIDER_SIZE.


Can this be changed in the future and what would be an easy work around
(instead of a list without scrollbar and a seperate scrollbar)?

I’ll add it to the code, but I don’t know if another 1.14 patch is
planned soon.

I guess you could simply typecast your list widget to PtGenListWidget_t
and find the scrollbar’s widget pointer in there. It’s very unlikely
that the location of that pointer inside PtGenListWidget_t will change
in Photon 1…

Thanks for the hint, works perfectly.
Markus

While you’re in there, Pt_ARG_SCROLLBAR_FLAGS can’t be set either –
specifically Pt_SCROLLBAR_FOCUSED and Pt_SCROLLBAR_SHOW_ARROWS. The other
flag bits make a mess of things. The PtGenListWidget_t cast works for this
as well.

“Wojtek Lerch” <wojtek@qnx.com> wrote in message
news:9fiore$hc4$1@nntp.qnx.com

Markus Jauslin <> markus.jauslin@ch.mullermartini.com> > wrote:
“Wojtek Lerch” <> wojtek@qnx.com> > schrieb im Newsbeitrag
news:9f8932$qv2$> 1@nntp.qnx.com> …
Markus Jauslin <> markus.jauslin@ch.mullermartini.com> > wrote:
Has the setting of the Pt_ARG_MIN_SLIDER_SIZE resource of a list’s
scrollbar
any effect? Is this resource supported at all?

Unfortunately, Pt_ARG_LIST_SB_RES doesn’t let you set the scrollbar’s
Pt_ARG_MIN_SLIDER_SIZE.


Can this be changed in the future and what would be an easy work around
(instead of a list without scrollbar and a seperate scrollbar)?

I’ll add it to the code, but I don’t know if another 1.14 patch is
planned soon.

I guess you could simply typecast your list widget to PtGenListWidget_t
and find the scrollbar’s widget pointer in there. It’s very unlikely
that the location of that pointer inside PtGenListWidget_t will change
in Photon 1…

\

Wojtek Lerch (> wojtek@qnx.com> ) QNX Software Systems Ltd.