Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - texus

Pages: 1 2 [3] 4 5 ... 99
31
Help requests / Re: cmake error
« on: 14 September 2019, 09:07:30 »
Quote
with older drivers the program is working
If the same code is working with an older driver then it would appear to be an issue with the newer driver, but then it should also crash when using sf::Texture and sf::Sprite directly.
With such a weird crash, the only thing really comes to mind if it doesn't happen in SFML is some incompatibility between SFML and TGUI, i.e. TGUI not being compiled with the SFML version that you use in your project.

Quote
opengl is downgrading to 2.1. ( i set 3.0)
This is probably due to the driver, but unless you want to use opengl directly it won't make a difference.

Quote
no windows updates, no drivers updates since 2015.
It might help to install windows updates if they are available, I've had some weird issues with SFML magically go in the past away after updating the old windows pc.

Quote
much older sfml and tgui version (2017 era) was working just fine.
TGUI still supports these older SFML versions. So perhaps you could try building TGUI with an older SFML version. If that works then you know it is due to the newer SFML version, if it doesn't work then it might still be something about the newer TGUI version.

32
Help requests / Re: Remove widget
« on: 13 September 2019, 22:12:58 »
I'm not sure what you are referring to, there is no function called RemoveWidget.
To remove a widget from the gui, you just call gui.remove(widget).

Quote
And a side note: someone need to add more tutorials.
Feel free to contribute some :)

33
Feature requests / Re: SpinCtrl
« on: 12 September 2019, 19:05:00 »
I've though about it in the past, but I never got around to actually do it.
It would add even more duplication than there already is in the gui as it must have most functions from both EditBox and SpinButton.

Writing it would also be so much easier if a widget could consist of subwidgets. Right now you either have to manually deal with all events yourself of make the widget inherit from Group which adds several functions to the API that you wouldn't want in your widget. I think I'm going to look into this issue in the near feature. I'm not going to be adding the SpinCtrl widget soon, but at least I'm going to try to make it easier to add in the future.

34
Feature requests / Re: Add table widget
« 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.

35
Help requests / Re: cmake error
« 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.

36
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.

37
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);

38
Help requests / Re: vertical slider
« on: 09 September 2019, 19:05:34 »
setVerticalScroll has been added again to Slider, Scrollbar and SpinButton

39
Help requests / Re: vertical slider
« 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.

40
Feature requests / Re: Clickable header cells for ListView.
« 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).

41
Feature requests / Re: Clickable header cells for ListView.
« 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.

42
Help requests / Re: List view
« on: 04 September 2019, 20:17:26 »
The ListView has a "ItemSelected" signal that gets called when an item is highlighted and a "DoubleClicked" for when double clicking an item. If the Open_file function has an int parameter then it will contain the index of the selected item.

43
Feature requests / Re: Clickable header cells for ListView.
« on: 04 September 2019, 20:13:51 »
I'll look into adding a signal for a click on the header soon.

44
Help requests / Re: tgui::Gui initialize from class object?
« on: 04 September 2019, 19:46:28 »
Quote
And yes, pointers and reference variables still have my mind in a flip-flop. On the surface they're simple, but they get complex very fast it seems.
Yeah, you can explain how to use them in a couple minutes, but the only way to really understand them is by actually using them in a few small programs.
Luckily you typically don't need the more complicated stuff like using pointers to an array of pointers or doing pointer arithmetic. Although pointer arithmetic could still be interesting to learn about if you want to understand how looping over a vector with iterators works (as std::vector<T>::iterator is just a T*).

45
RightMousePressed, RightMouseReleased and RightClicked signals have been added to ClickableWidget and Panel widgets.

Pages: 1 2 [3] 4 5 ... 99