View Single Post
  #5  
Old 07-27-2015, 08:15 AM
Mike_Maenpaa Mike_Maenpaa is offline
Registered User
 
Join Date: Aug 2013
Posts: 14
Re: Open Dialog Position

Quote:
Originally Posted by Andy Poulsen View Post
Hi Mike,

Some goofy things happen with positioning dialogs sometimes. Not sure why it works in some cases and not in others.

However, one thing I discovered is that if you try to position two dialogs, the first one will get moved to the right location when showing the second. So a little trick that has worked for me is to create a dummy dialog shell at some point in your code (you only need to create it once), as follows:
Code:
 (sd-create-dialog-shell "dummy"
  :title "dummy"
  :close t
  :bottomline :none))
and then hide and show it immediately after you show your desired dialog, i.e.:
Code:
  (sd-show-dialog-shell "UICT-TEST" 
    :position '("TOP-MENU-TOOLBOX-TB" :righttop 10 10))
  (sd-show-dialog-shell "dummy")
  (sd-hide-dialog-shell "dummy")
Take a look and see if this works.
Thanks Andy, unfortunately that didn't help. It still opens at left top.

Mike
Reply With Quote