Hi Med. Ha, ok, I see it (maybe) now. But, if you only type "Return" without changing the content or "Esc", then you have not changed anything in the data. And then it is normal that ondataChange() is not triggered.
So, what you want is a new tmsedatasource.onKeyEnterorEsc() or a tmsedatasource.ondataChange() that checks if a key has been pressed, is that it? >.I can send you an example on handling filters using >tdbnavigator.datalink.execbutton(dbnbI). Yes, with pleasure + explain what the purpose is. Thanks. Fre;D ________________________________ De : Mohamed Hamza <medhom...@gmail.com> Envoyé : mercredi 11 décembre 2024 16:17 À : General list for MSEide+MSEgui <mseide-msegui-talk@lists.sourceforge.net> Objet : Re: [MSEide-MSEgui-talk] KeyPress Hello Fred, I think I expressed myself badly. I wanted to say that the event tmsedatasource.ondataChange is not fired when we type in just a return or escape in datacontrol.I can send you a sample about filter management using tdbnavigator.datalink.execbutton(dbnbI). Regards Med Le mar. 10 déc. 2024 à 13:42, Fred vS <fi...@hotmail.com<mailto:fi...@hotmail.com>> a écrit : Hello Sieghard and friends. https://github.com/mse-org/mseide-msegui/discussions/99 ________________________________ De : Sieghard via mseide-msegui-talk <mseide-msegui-talk@lists.sourceforge.net<mailto:mseide-msegui-talk@lists.sourceforge.net>> Envoyé : lundi 9 décembre 2024 23:38 À : mseide-msegui-talk@lists.sourceforge.net<mailto:mseide-msegui-talk@lists.sourceforge.net> <mseide-msegui-talk@lists.sourceforge.net<mailto:mseide-msegui-talk@lists.sourceforge.net>> Cc : Sieghard <s_c_...@arcor.de<mailto:s_c_...@arcor.de>> Objet : Re: [MSEide-MSEgui-talk] KeyPress Hello Fred, you wrote on Mon, 9 Dec 2024 13:24:04 +0000: > Re-hello Med, > > Here, using /mseuniverse/samples/db/dbfilter/main.pas, it works with > this: > > -------------------------- > > uses > ..., msekeyboard; > > ... > > procedure tmainfo.onkeyup(const sender: twidget; var ainfo: > keyeventinfoty); begin > if ainfo.key = key_Escape > then writeln('key_Escape was presed...'); > end; > > ---------------------------- BTW, for keyboard usage, I wrote a small programm some time ago, and named it "Keywatcher". I've just uploaded it on my "hidden" mse web page for your disposition. Maybe you can make sense of it. Oh, and for its function: it just displays ANY key's codes on X11 in a couple of panes, giving names if known, and hex codes if not. And because it truely uses ALL keys, the only means to exit is the (really) BIG button named "Exit" in the bottom half... And, as that's been made for X11, I DON'T KNOW whether it's even compilable on Windows at all! -- (Weitergabe von Adressdaten, Telefonnummern u.ä. ohne Zustimmung nicht gestattet, ebenso Zusendung von Werbung oder ähnlichem) ----------------------------------------------------------- Mit freundlichen Grüßen, S. Schicktanz ----------------------------------------------------------- _______________________________________________ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net<mailto:mseide-msegui-talk@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk _______________________________________________ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net<mailto:mseide-msegui-talk@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
_______________________________________________ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk