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

Messages - KSergeyP

#1
I looked at the router menu today)
Its submenus smoothly collapse and expand. While one collapses, another expands.
Is there a similar functionality in TGUI? For example, for TreeView
#2
Is it tgui?
#3
General Discussion / Re: multiple windows
06 November 2024, 14:00:53
Thanks, it's clearer now.
It looks like you need to write a wrapper to determine which window the event is from, analyzing all events that have a WindowID.
But it would be better to implement this in TGUI
#4
General Discussion / multiple windows
06 November 2024, 12:18:28
How?)
Backend: SDL3_OPENGL(Using the new SDL3 Callback App Structure)
Tried to launch SDL_EnterAppMainCallbacks (2 windows) from different threads. Windows are created, but the first created window slows down, the second created window works well.
I also tried to create 2 windows at once from one thread - both work well, but it is unclear how to distinguish from which window I receive events?
Are there any examples of correctly launching multiple windows. Preferably in different threads.
#5
yes this is what I need
#6
Are there any libraries (SDL or SFML) for creating clock and calendar that can be used with TGUI?
Are there any plans to add these widgets to TGUI?
#7
General Discussion / Re: Black area during resize
30 October 2024, 13:30:39
Quote from: texus on 25 October 2024, 09:14:22SDL recently worked around it by allowing you to bind a SDL_EVENT_WINDOW_EXPOSED callback that would get called during resize (and in which you can then render (see e.g. https://github.com/libsdl-org/SDL/issues/1059).

Yes, it works with SDL3
But it stretches with a bit of a slowdown, the black area is visible if you quickly drag it with the mouse, but then it is automatically filled and the layouts are automatically stretched
Perhaps you need to tweak something in the SDL settings for greater smoothness/speed of rendering
#8
General Discussion / Re: Black area during resize
25 October 2024, 08:46:15
Quote from: texus on 25 October 2024, 08:36:34This is a known issue in SFML that is related to how resizing works on Windows. See e.g. https://github.com/SFML/SFML/issues/3016
They write that this is a Windows problem. But QT somehow solves this - by default it works on Windows without these problems.
#9
General Discussion / Re: Black area during resize
25 October 2024, 08:40:07
I'm using SFML Graphics (Windows). Tried SFML Windows - same thing
Which backend is best for Windows?
#10
General Discussion / Black area during resize
25 October 2024, 08:30:33
When I stretch the window with the mouse, a black area appears and the window is redrawn only when I release the mouse button.
Are there any simple examples with automatic image update when resizing?
#11
Quote from: texus on 15 November 2021, 22:44:21The setRoundedBorderRadius function has been added to PanelRenderer in TGUI 0.9 and 0.10-dev.
Is it possible to improve rendering accuracy when rounding?
By default it's rough - you can see rectangles