Menu

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.

Show posts Menu

Messages - TheMole

#1
Installation help / CMake couldn't find SFML
29 January 2022, 14:37:49
When I try to build I get this error

Severity Code Description Project File Line Suppression State
Error CMake Error at cmake/Dependencies.cmake:93 (message):
  CMake couldn't find SFML.

  Set SFML_DIR to the directory containing SFMLConfig.cmake (usually
  something like SFML_ROOT/lib/cmake/SFML)

  C:/Users/user/TGUI-CUSTOM/SFML-2.5.0/lib/cmake/SFML C:\Users\user\TGUI-CUSTOM\TGUI-0.10\cmake/Dependencies.cmake 93

and this warning

Severity Code Description Project File Line Suppression State
Warning CMake Warning at cmake/Dependencies.cmake:74 (find_package):
  Could not find a configuration file for package "SFML" that is compatible
  with requested version "2".

  The following configuration files were considered but not accepted:

    C:/Users/user/TGUI-CUSTOM/SFML-2.5.0/lib/cmake/SFML/SFMLConfig.cmake, version: 2.5.0 (32bit) C:\Users\user\TGUI-CUSTOM\TGUI-0.10\cmake/Dependencies.cmake 74


SFMLConfig.cmake is located in C:/Users/user/TGUI-CUSTOM/SFML-2.5.0/lib/cmake/SFML/

I'm all out of ideas...
#2
Help requests / Re: Get ListBox's scrollbar [0.9]
29 January 2022, 11:28:55
Couldn't you use .setEnabled to temporarily disable the signal for onScroll()?
If you want to avoid the unnecessary callback.
#3
Help requests / Re: Get ListBox's scrollbar [0.9]
28 January 2022, 06:43:10
I would like to sync several ListBoxes with eachother. So that when you scroll in one, the rest will follow.

They have the same amount of elements but different contents. I can't use a ListView, because they have to be separated on different parts of the screen.
#4
Help requests / Get ListBox's scrollbar [0.9]
27 January 2022, 20:39:14
Is it possible to get the scrollbar of a ListBox in 0.9?

I want to use the onValueChange function of the scrollbar, but I can't seem to find a function that will get me the scrollbar.

Heres how I imagined it would work, but it doesn't

auto listBox = tgui::ListBox::create();
listBox->getScrollbar()->onValueChange([&] {
        std::cout << "Scroll";
        });


I have also attempted to get the scrollbar as a child of the ListBox, but have come nowhere.

Thanks in advance