Jump to content


Photo

Window stay on top


  • Please log in to reply
2 replies to this topic

#1 1bodger

1bodger

    GMC Member

  • GMC Member
  • 367 posts
  • Version:GM8

Posted 03 September 2012 - 07:39 PM

How do i get the window to stay on top when you press 1 and then not stay on top when you press 2.
  • 0

#2 Noele

Noele

    GMC Mentor

  • GMC Member
  • 2360 posts
  • Version:GM8.1

Posted 03 September 2012 - 07:59 PM

window_set_stayontop(stay) Sets whether the window must always stay on top of other windows (stay can be true or false)
  • 0

#3 jpaugh78

jpaugh78

    GMC Member

  • GMC Member
  • 1430 posts
  • Version:GM:Studio

Posted 03 September 2012 - 08:00 PM

How do i get the window to stay on top when you press 1 and then not stay on top when you press 2.


Put this in a step event somewhere

if keyboard_check(ord("1")) {window_set_stayontop(1)}
if keyboard_check(ord("2")) {window_set_stayontop(0)}

Edited by jpaugh78, 03 September 2012 - 08:01 PM.

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users