Suggestion for new element qx:scrollBar

4 views
Skip to first unread message

Oliver Friedrich

unread,
Apr 30, 2010, 10:08:40 AM4/30/10
to QxTransformer Mailing List
Hi Serge,

i' currently building a widget with scrollbars but Qxt hasn't support
for them, as far as i can see. Would you add the following definition to
Qxt?

> "qx:scrollBar": {
> "extends": "qx:widget",
> "data": {
> "props": {
> "constructor-args": "orientation",
> "class": "qx.ui.core.scroll.ScrollBar"
> }
> }
> },


Cheers,
Oliver

--
You received this message because you are subscribed to the Google Groups "QxTransformer" group.
To post to this group, send email to qxtran...@googlegroups.com.
To unsubscribe from this group, send email to qxtransforme...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/qxtransformer?hl=en.

Siarhei Barysiuk

unread,
Apr 30, 2010, 10:12:43 AM4/30/10
to qxtran...@googlegroups.com
Hi,

Why don't you use qx.ui.container.Scroll instead? The main thing why
we did not add this widget because it's not supposed to be used
directly.

A quote from docs:

Scroll bars are used by the
class18.gif

Oliver Friedrich

unread,
Apr 30, 2010, 10:34:11 AM4/30/10
to qxtran...@googlegroups.com
Hi,

If i use qx.ui.container.Scroll i must insert a element with the desired
dimensions to get the right behaviour of the scrollbars.

I want to build an widget that just loads the parts (image tiles) of an
image that are visible in the "viewport" of my viewer. So i must have
the current position of the scrollbars and the width and height of the
target composite, that holds the image tiles.

As far as i know this is not possible with the implementation of
qx.ui.container.Scroll.

Cheers,
Oliver
> Scroll bars are used by theqx.ui.container.Scroll container. Usually a
> scroll bar is not used directly.
>
>
> Cheers,
> Serge
--
Oliver Friedrich

Hammerschmidtstr. 39 | oli...@familie-friedrich.de
50999 Köln-Sürth | http://familie-friedrich.de
fon +49.(0)2236.5093052 | Skype: o.friedrich
fax +49.(0)2264.286479 | ICQ: 33857371

Secure Mail via PGP Signing & Encryption (Info: www.gnupg.org)
PGP ID: 0x5FBEE7EC

Oliver Friedrich

unread,
Apr 30, 2010, 12:42:22 PM4/30/10
to qxtran...@googlegroups.com
Hi again,
would it be a solution to open a separate namespace like "qxcore"?

So the existant "qx" namespace keeps only the "normal" qooxdoo elements
and "qxcore" gives access to the normaly not needed classes.

Have a nice weekend,
Oliver

Christian Boulanger

unread,
Apr 30, 2010, 12:46:34 PM4/30/10
to qxtran...@googlegroups.com
Hello Oliver and Serge,

I don't mind to include the qx:scrollBar definition into tags.json. People can then use it at their own peril ;-)
C. 

2010/4/30 Oliver Friedrich <oli...@familie-friedrich.de>
Reply all
Reply to author
Forward
0 new messages