Recent Posts

Pages: 1 ... 6 7 [8] 9 10
71
Feature requests / Re: Add table widget
« Last post by texus on 12 September 2019, 18:54:48 »
I'm not going to be adding it anywhere soon.
The ListView was created to satisfy most requests for list views and tables. It took me a long time to finally write it and it is now the most complex widget in the gui, so I'm not looking forward on writing another similar widget right now. I guess it could be implemented in the ListView itself even though it doesn't really belong there, but as with most feature requests that are being made recently, I won't be doing it soon.
72
Feature requests / Add table widget
« Last post by Kvaz1r on 12 September 2019, 17:22:44 »
ListView is very good control but it doesn't provide opportunity to change anything but text for cells or even rows.

So it would be great to have control where every cell (or at least rows) can change color(of text/background/borders). It's very common situation where one should separate data in table (like top 5 of something). 
73
Feature requests / SpinCtrl
« Last post by Kvaz1r on 12 September 2019, 12:13:25 »
SpinCtrl is a popular control that combine SpinButton and one line TextBox. It's not so hard do it in user code but it would be much better to have it out of the box from library.
74
Help requests / Re: cmake error
« Last post by texus on 11 September 2019, 17:53:28 »
I've recently used VS2019 without any issues. It looks to me that you don't have the command line compiler of VS2019 installed. Did you choose to install the build tools for c++ when installing VS2019?
Does it work with other libraries, e.g. SFML?

Edit: maybe you need to select the Win64 generator instead? I think they defaulted to 64bit compilers on 64bit Windows with VS2019.
75
Help requests / cmake error
« Last post by billarhos on 11 September 2019, 15:50:05 »
Hi Texus. I have a major problem with cmake. I have install varius versions but with the same error.

Error shown in photo.
76
Help requests / Re: Setting Scrollbar Value Without Value Changed Event
« Last post by Kvaz1r on 10 September 2019, 19:23:19 »
I actually added a way to temporarily disable a signal some time ago just for this kind of situation.
That's indeed cool and rarely feature.

I'm unable to disable the scrollbar entirely since the validation may only prevent one direction ie, still able to click/drag in the opposite. I could just use regular buttons and avoid the problem altogether.
Right, it was a long shot.
77
Help requests / Re: Setting Scrollbar Value Without Value Changed Event
« Last post by texus on 10 September 2019, 19:15:14 »
Quote
Is it possible to bind to the underlying up/down button presses?
No, value changed signal is send for every kind of change, no matter whether a an up/down button is pressed, the mouse wheel is scrolled, the track is clicked or the thumb is dragged.
78
Help requests / Re: Setting Scrollbar Value Without Value Changed Event
« Last post by Ahnne Cognita on 10 September 2019, 18:59:30 »
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.
There isn't any way to set custom validator to the control and check anything before changing. At least now, because it's really useful.
But I think you can bind your check to something else and make scrollbar disabled so one can't change it while state will not state as correct.

Is it possible to bind to the underlying up/down button presses? I'm unable to disable the scrollbar entirely since the validation may only prevent one direction ie, still able to click/drag in the opposite. I could just use regular buttons and avoid the problem altogether.

I actually added a way to temporarily disable a signal some time ago just for this kind of situation.

scrollbar->onValueChange.setEnabled(false);
scrollbar->setValue(...);
scrollbar->onValueChange.setEnabled(true);

Oh. Well that sounds wonderful. Thanks!  ;D
79
Help requests / Re: Setting Scrollbar Value Without Value Changed Event
« Last post by texus on 10 September 2019, 18:33:09 »
I actually added a way to temporarily disable a signal some time ago just for this kind of situation.

scrollbar->onValueChange.setEnabled(false);
scrollbar->setValue(...);
scrollbar->onValueChange.setEnabled(true);
80
Help requests / Re: Setting Scrollbar Value Without Value Changed Event
« Last post by Kvaz1r on 10 September 2019, 18:21:35 »
Is it possible to set the value of a scrollbar without the Value Changed signal being triggered?
No, it's exactly purpose of the signal.

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.
There isn't any way to set custom validator to the control and check anything before changing. At least now, because it's really useful.
But I think you can bind your check to something else and make scrollbar disabled so one can't change it while state will not state as correct.
Pages: 1 ... 6 7 [8] 9 10