Any-Printable - After Event

balta

Member
Good afertnoon,

I am using this code

Code:
on any-printable anywhere do:

        /* CÁLCULO AUTOMÁTICO ? */
        if tglCalculoAutomatico:checked in frame {&frame-name} then RUN Calculo_Automatico_Preco.
      
    end.

The event occurs BEFORE of text appear. It is possible to call the event AFTER text appear?

Windows - OE11.7.8

Thanks
Baltazar
 

Stefan

Well-Known Member
I do very little GUI coding and this may be completely wrong with horrendous side effects, but it works:

Code:
def var tg1 as logical no-undo.
def var fi1 as char no-undo.

define frame fr 
   fi1 view-as fill-in
   tg1 view-as toggle-box
   .   

on any-printable anywhere do:

   apply lastkey to self. // ensures last key is handled first
   
   if tg1:checked in frame fr then 
      run foo.
      
   return no-apply.  // and only once
      
end.

view frame fr.
enable all with frame fr.

wait-for close of frame fr.
 
Top