Re: Text in a scroll bar



On Sat, 27 Jan 2007 13:37:48 +0100, <Jess@xxxxxxx> wrote:

Is there a way to make a checkbox (button style) that is triangular
shaped?

On Sat, 27 Jan 2007 00:34:16 +0100, "Stefan Z Camilleri"
<szc001@xxxxxxxxxx> wrote:

On Fri, 26 Jan 2007 21:13:09 +0100, <Bob@xxxxxxx> wrote:

Is there a way to put a labe in a scroll bar as oppose to in front of
it. (Ie the scroll goes the text as oppose to under the text)


Yes, inherit the scrollbar component, override the paint method, and make
it call it's base... then just draw the text wherever you want it.

Then in your app, just use your component instead.


Yes of course, inherit the normal checkbox and totally replace (override) its paint method. That is all you need to do really since the rest of the functionality would still be the same, you're just changing the way it draws itself.


--
- Stefan Z Camilleri
- www.szc001.com
.