Skip to content

Instantly share code, notes, and snippets.

@seanbamforth
Created June 25, 2021 10:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seanbamforth/caa6f4ff428af4081b0ca2ea59c3414e to your computer and use it in GitHub Desktop.
Save seanbamforth/caa6f4ff428af4081b0ca2ea59c3414e to your computer and use it in GitHub Desktop.
Fix stadia connection - dataflex
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