Created
June 25, 2021 10:23
-
-
Save seanbamforth/caa6f4ff428af4081b0ca2ea59c3414e to your computer and use it in GitHub Desktop.
Fix stadia connection - dataflex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Use Windows.pkg | |
Object oTest is a ModalPanel | |
Set Location to 10 5 | |
Set Size to 20 61 | |
Set Label to "On the top" | |
Set Window_Style WS_SYSMENU to False | |
Object oButton1 is a Button | |
Set Location to 3 4 | |
Set Label to 'close' | |
// fires when the button is clicked | |
Procedure OnClick | |
Send Close_Panel | |
End_Procedure | |
End_Object | |
Procedure set_on_top | |
local Handle hwnd# | |
local Integer swp# | |
Move (FindWindow("DFDialogClass",label(Self))) to hwnd# | |
Move (SetWindowPos(hwnd#, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE ior SWP_NOSIZE)) to swp# | |
End_Procedure | |
Procedure activating | |
Forward Send Activating | |
Send set_on_top | |
End_Procedure | |
End_Object | |
Start_UI oTest |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment