Bonjour a tous,
Tout est dans le sujet, je miseres depuis 2 jours pour adapter le composant windev "ecran tactile" pour que celui-ci ne prenne pas la main comme le programme windows osk.exe. Car le fait qu'il prenne le focus, cela ne marche que sur des champs textes, un champ numerique, voir monetaire cela ne marche pas.
J'ai trouve des exemples en vb, je sais que c'est possible mais je n'arrive pas a l'appliquer. Il faut passer par des API pour jouer sur des styles de la fenetre. Voila ce que j'ai trouve :
SWP_NOACTIVATE
Does not activate the window. If this flag is not set, the window is activated and moved to the top of either the topmost or non-topmost group (depending on the setting of the hWndInsertAfter parameter).
à utiliser avec SetWindowsPos
et aussi
WS_EX_NOACTIVATE
Windows 2000/XP: A top-level window created with this style does not become the foreground window when the user clicks it. The system does not bring this window to the foreground when the user minimizes or closes the foreground window.
To activate the window, use the SetActiveWindow or SetForegroundWindow function.
The window does not appear on the taskbar by default. To force the window to appear on the taskbar, use the WS_EX_APPWINDOW style.
Merci de votre aide
Christophe
Partager