Recent Posts

Pages: 1 ... 7 8 [9] 10
81
Help requests / Setting Scrollbar Value Without Value Changed Event
« Last post by Ahnne Cognita on 10 September 2019, 14:49:44 »
Is it possible to set the value of a scrollbar without the Value Changed signal being triggered?

In my project, there's a situation where I need to do some validation before allowing the scrollbar's value to actually change. Currently, I'm using the Value Changed signal to begin the validation, but I haven't been able to find a way to force the scrollbar back to it's old value without triggering another Value Changed event.
82
Help requests / Re: vertical slider
« Last post by texus on 09 September 2019, 19:05:34 »
setVerticalScroll has been added again to Slider, Scrollbar and SpinButton
83
Help requests / Re: vertical slider
« Last post by Kvaz1r on 08 September 2019, 12:56:42 »
I'm not sure where to best document it.
I guess, or into detailed description or as comment to setSize usage example.

Maybe we just need to add setVerticalScroll back, but still keeping the automatic detection based on size. So all existing code would still work, but you would also be able to call setVerticalScroll which would swap width and height values if they don't correspond to the requested direction. That way it might be more intuitive to use.
Yes, it would be great.
84
Help requests / Re: vertical slider
« Last post by texus on 08 September 2019, 11:29:39 »
I'm not sure where to best document it.
Maybe we just need to add setVerticalScroll back, but still keeping the automatic detection based on size. So all existing code would still work, but you would also be able to call setVerticalScroll which would swap width and height values if they don't correspond to the requested direction. That way it might be more intuitive to use.
85
Help requests / Re: vertical slider
« Last post by Kvaz1r on 08 September 2019, 10:39:56 »
I think it would be good to mention about how making slider vertical in documentation because it's not very obvious. 
I actually already wanted to create a new topic but decided use search first ;-)
86
Feature requests / Re: Clickable header cells for ListView.
« Last post by Kvaz1r on 07 September 2019, 13:09:29 »
I currently don't have any plans for it. I implemented the clicking signal because I believe it is a necessity for sorting columns. Other things like different colors, showing a small arrow inside the column header or even supporting sorting in the widget itself are extras that I am at this moment not going to spend my time on. I would love to see these things supported too, but I can't do everything at the same time.
I understand, it's not really important things and there are enough ways around it. 

Btw, if you use ListBox or ComboBox widgets then you may want to download and rebuild TGUI again.

Yeah, thanks, I seen it.
87
Feature requests / Re: Clickable header cells for ListView.
« Last post by texus on 07 September 2019, 12:50:20 »
I currently don't have any plans for it. I implemented the clicking signal because I believe it is a necessity for sorting columns. Other things like different colors, showing a small arrow inside the column header or even supporting sorting in the widget itself are extras that I am at this moment not going to spend my time on. I would love to see these things supported too, but I can't do everything at the same time.

Btw, if you use ListBox or ComboBox widgets then you may want to download and rebuild TGUI again. Together with the change to ListView I also pushed another change online which had a bug that could lead to a crash when using ListBox or ComboBox. The issue has been fixed by now. It slipped through my linux test that I ran before making the code public, but luckily it was caught by my windows tests afterwards (which actually runs the exact same code as the passing linux test).
88
Feature requests / Re: Clickable header cells for ListView.
« Last post by Kvaz1r on 07 September 2019, 12:32:20 »
Yes, it works perfect. Is there any way to change background color of column header on click?
I see that it possible to change text for them, so they are already separated and I think it would be good have opportunity work with columns headers as with usual widgets. 
89
Feature requests / Re: Clickable header cells for ListView.
« Last post by texus on 07 September 2019, 11:36:36 »
I've added a HeaderClicked signal. Your callback function can have an int parameter which will contain the index of the clicked column.
90
Help requests / Re: List view
« Last post by CatalinNic on 04 September 2019, 22:08:25 »
You need to use std=c++17 flag in order to compile and thanks
Pages: 1 ... 7 8 [9] 10