Prevent other widgets to receive user interaction events

Hi,

I’m creating a controller for a coffee mill with timers, each with its individual button. this buttons are in a lv_group.

While the mill is running on one of the timers, I want the screen to be unresponsive, except the initially touched button, so to stop the timer if needed.

How can I prevent UI events without having my own state machine or covering the rest of the UI with some overlay widget? What is a good practice for modal dialogs for example?

Thanks!

I’d recommend using a subject to disable other buttons

Here is an example created using LVGL Pro editor

<lv_button>
			<lv_label text="Button 1" />
			<subject_toggle_event subject="subject_running" trigger="clicked" />
		</lv_button>
		<lv_button>
			<lv_label text="Button 2" />
			<bind_state_if_eq
				subject="subject_running"
				state="disabled"
				ref_value="1"
			/>
		</lv_button>
		<lv_button>
			<lv_label text="Button 3" />
			<bind_state_if_eq
				subject="subject_running"
				state="disabled"
				ref_value="1"
			/>
		</lv_button>
		<lv_button>
			<lv_label text="Button 4" />
			<bind_state_if_eq
				subject="subject_running"
				state="disabled"
				ref_value="1"
			/>
		</lv_button>
		<lv_button>
			<lv_label text="Button 5" />
			<bind_state_if_eq
				subject="subject_running"
				state="disabled"
				ref_value="1"
			/>
		</lv_button>

Screen Recording 2026-09-23 at 23.32.28