Paul,
We discussed this already and I think after some time you have mentioned somewhere last year that similar code like below now shows the warning red dot when code starts or when some other part of program will try to change the value of A to be out of limits (0-1 like in our case).
real*8 A
A=1.1
i=winio@('%~fl%rf%`fl',0d0, 1d0, A)
end
Unfortunately, the behavior is still the same: this dot only appears if you manually try to type value larger than 1.
Similar demo showing that if the code will try to change variable A with the value 1.1 no warning is appearing
real*8 A
common /aaaa/A
integer, external :: Run
A=1.1
i=winio@('%~fl%rf%`fl%ff&',0d0, 1d0, A)
i=winio@('%^bt[Change A]%es', Run)
end
integer function Run()
A=1.1
call window_update@(A)
Run=2
end function
The importance of showing warning is because %rf is used not only for manual entering the values but also when the code itself changing this variable i.e. doing opposite - writing - as if it will be used like with %wf if update A with 'call window_update@(A)'. As i wrote in this case though there is still no warning. %rf/%rd are even more convenient than %wf/%wd by the way. Latter ones i almost never use because it is out of style with %rf/%rd. To use %wf its background has to be changeable, but it is just gray.
We need such dynamically changed warnings ! For example i use warnings like changeable background under the number field, or the font color, or %si! and $si#, or popup windows. Otherwise it is easy to miss something wrong. Unfortunately it is not easy to do (need some efforts in the code) and some of these controls are not dynamically changeable.
For example %si! and %si# signs are very good to warn users but are not dynamically changeable to appear/disappear and not size changeable so i use their smaller visual analog instead, callable as a bitmap fitting into one text line i=winio@(' %bm[exclm_sm] Error!&'), see the example below. Though the size of image now is convenient for inline warnings, the appearance/disappearance is also not dynamically changeable. The %~fl would be great easiest way to get the warnings which do not require any additional efforts besides just adding one single sign of tilde to the code !!! Rozy background in the picture below by the way is also warning sign telling user to pay attention, this one i can dynamically update, but that requires 2-3 orders of magnitude more symbols to add to the code than just one tilde

