Main Menu
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

Topics - rbenn674

#1
Help requests / Enabled
18 December 2022, 18:07:45

I was under the impression that enable = 0 should make the widget visible, but not actionable.

QuoteVisible and enabled
The enabled property determines if a widget receives events. If a widget is disabled, it will still be drawn but it will be unresponsive to your mouse clicks.


However, if I set a widget enable to false, this also makes my widget no longer visible. Is this intended?

I am trying to set a knob to exact positions based on a separate event, whereas the knob itself isn't adjustable (ie:disabled).
#2
Any ideas on where some of the biggest leakers would be on load? I see a lot of text edit box objects and I feel the toolbox() that gets reloaded may be one of the culprits. I also saw a lot of mouse events in the GUI base and container duplicated. I assume there is a pointer to an object that gets recreated on every load. Just trying to correct anything major that isn't being emptied/deconstructed before a re-loaded state.



Screenshot 2022-12-10 232442.png
#3
Ever noticed the bad_cast being thrown on creation of objects due to the UserData field or is this just me?
I just noticed the program was throwing them on object creations.


Screenshot_20221210_065153.png
#4
When using Cmake to compile and run a debug version of gui-builder I receive the following error:

Exception thrown at 0x79C8F860 (sfml-system-d-2.dll) in gui-builder.exe: 0xC0000005: Access violation reading location 0x00000027.

I have tried compiling as a static exe but I always seem to get a load of LNK issues. I have successfully compiled and run the release version with no issues.

Screenshot 2022-12-08 170346.png
#5
Feature requests / GUI Builder
06 December 2022, 21:06:39
This is a really helpful and useful tool.  It would be very beneficial to add a "Control Z" or undo / redo button. Also, draggable widgets in the layer list to move them from group to group would be helpful. Maybe I can help with this in time.
#6
When you have both optional and custom callback parameters ie:
button4->onPress([](int customValue, tgui::String buttonText){ /* ... */ }, 5);
How do you do the same thing with a function pass?

For instance, you do this to get the button text by itself:
void buttonPressedCallback2(tgui::String buttonText);
button4->onPress(&buttonPressedCallback2);

But say I have a custom parameter as well I want to pass to the function as well, I can't find a way to make it work except with using Lambdas.
#7
Help requests / Child Window Clipping
04 December 2022, 23:01:57
Hello, for some reason the child window is being clipped around the original view resolution after the window has been resized. I have tried increasing the gui view size but it still does not render it. The strange thing is I can render a panel outside this area, just not the child window.

Any idea how I allow for tgui to draw the child window to the new window size?

Screenshot 2022-12-04 170056.png
#8
Installation help / Incomplete Type is not allowed
03 December 2022, 02:34:23
I am getting a lot of "Incomplete Type is not allowed" errors on VB 2019. I don't see any issues with the header files and it does compile but I am still lit up with errors. Any ideas?

Screenshot 2022-12-02 202244.png