K
K
KamAKAM2020-05-26 07:32:23
C++ / C#
KamAKAM, 2020-05-26 07:32:23

How can I make it so that when a button is pressed, an inscription appears that it is necessary to click on this button?

I have a container, on this container there is a button that is responsible for closing this container. how to make it so that if the user does not click on this button, but clicks somewhere else, then a pop-up would appear that it is necessary to click on this button. and until he presses this button, it will not be possible to press anywhere. what should I write in the button code?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Pavlov, 2020-06-09
@Stalker31

Use messengbox to display text and a bool boolean variable that takes true only when you click on the desired button, and by default it has the value false, and then use if else with a choice of necessary actions.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question