SAMSON Forum
    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • SAMSON Connect
    • Get SAMSON

    SBGWindow raising

    GUI
    2
    3
    2782
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Yassine
      Yassine last edited by

      Hi all,

      I have noticed that SBGWidow objects have a raise function that works only if the locked flag is set to true otherwise calling the raise function has no effect on the window. Is it possible to change this behavior such it would work independently of this flag ?

      Thanks in advance !
      Yassine

      1 Reply Last reply Reply Quote 0
      • Stephane
        Stephane last edited by

        Can you please post a code example? When a user presses an app icon we call the raise function to put its GUI on top and it works whatever the flag is:

        	gui->getWindow()->show();
        	gui->getWindow()->raise();
        
        1 Reply Last reply Reply Quote 0
        • Yassine
          Yassine last edited by

          Actually I didn't explain well the case where the raise didn't worked for me as I expected. When you have two windows, with the first one locked and the second unlocked. If the raise function is called for the second unlocked window, it doesn't go on top of the first locked window.

          For those who might interest, I found a simple solution. You need to temporarily lock the window, call the raise function then unlock the window.

          Thank you Stephane for your quick answer !
          Yassine

          1 Reply Last reply Reply Quote 0
          • First post
            Last post