Discussion:
ProgressBar in a cell of a ListBox
Jean-Luc Arnaud
2016-09-08 09:25:41 UTC
Permalink
Ok! Never used this...

Thanks a lot.

Jean-Luc Arnaud
tbbas are realbasic modules files (saved externally)
_______________________________________________
Unsubscribe by sending a message to:
<nug-***@lists.xojo.com>

List Help: <***@xojo.com>
Jean-Luc Arnaud
2016-09-08 09:28:51 UTC
Permalink
Yes, indeed, seems really simple.

Will try that and compare with Alex Restrepo's class (given that I just
need progressbar).

Many thanks, Antonio.

Jean-Luc Arnaud
It's easy to draw a progress bar
in the cellpaintEvent fill a rect with a proportional width versus the value (ie 50% -> rectWidthToFill=.5*rectToDesign) and some space around (that's the meaning of rectToDesign), then draw a rect with the rectToDesing width.
Height is up to your preferences
To update you simply call listbox1.invalidate
ciao
Antonio
Thanks Massimiliano.
I got it, it seems very interesting, but I don't not what to do with .rbbas files!
Additional help would be welcome!
Jean-Luc Arnaud
Restrepo custom listbox
_______________________________________________
_______________________________________________
_______________________________________________
Unsubscribe by sending a message to:
<nug-***@lists.xojo.com>

List Help: <***@xojo.com>
Jon Ogden
2016-09-08 11:16:06 UTC
Permalink
Alex's class is wonderful. I use it and it's great. I've made modifications to change the color of the progress bar as well.

Sent from my iPhone
Alex Restrepo custom listbox. Search on github.
Hi all,
I'm wondering how to manage a progressbar in a cell of a ListBox.
Of course, I could use a progressbar object above the concerned cell.
Nevertheless, this listbox is sortable, so I would have to link each
progressbar with its cell. This seems like a hard job (at least, for me).
Does anyone know a free class providing such an integrated progressbar? Or
is there a shared code somewhere doing what I need?
My searches on Internet only result with Custom UI for Xojo, an
interesting but commercial class.
TIA for any help, idea, suggestion, advice...
--
Jean-Luc Arnaud
_______________________________________________
_______________________________________________
_______________________________________________
Unsubscribe by sending a message to:
<nug-***@lists.xojo.com>

List Help: <***@xojo.com>

Loading...