I need to get a warning which pops up and disappears if conditions are met like on this pic, but neither background color change or warning signs allow dynamic changes and require the page reload.
To be more clear, say, if i change first variable to 1 the background color turns to white same time as i type. Or if i change second number to 1 the exclamation mark disappears while i type or reappears again if change this number to something not a 1. Any ideas?

Here is the code for the first variable for easier start (which does not work yet but by the idea the color must be changed when variable=1)
use clrwin
common ivar1, icolbkg
integer cbChng
external cbChng
ivar1=0
icolbkg = RGB@(255,190,255)
i=winio@('Number %ta%dd%`bg%5^rd%ff&',1,icolbkg,ivar1,cbChng)
i=winio@('%ac[esc]','exit')
end
integer function cbChng()
use clrwin
common ivar1, icolbkg
icolbkg = RGB@(255,190,255)
if(ivar1.eq.1) icolbkg = RGB@(255,255,255)
call WINDOW_update@(icolbkg)
print*,ivar1
cbChng=1
end function




