Skip to content
0
  • Recent
  • Tags
  • Popular
  • SAMSON Connect
  • Get SAMSON
  • Recent
  • Tags
  • Popular
  • SAMSON Connect
  • Get SAMSON
Collapse
SAMSON Forum
  1. Home
  2. Develop
  3. GUI
  4. SBGWindow raising

SBGWindow raising

Scheduled Pinned Locked Moved GUI
3 Posts 2 Posters 3.9k Views
  • 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.
  • YassineY
    YassineY
    Yassine
    wrote on last edited by
    #1

    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
    0
    • StephaneS
      StephaneS
      Stephane
      wrote on last edited by
      #2

      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
      0
      • YassineY
        YassineY
        Yassine
        wrote on last edited by
        #3

        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
        0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Login or register to search.
        • First post
          Last post