View Single Post
  #4  
Old 07-25-2015, 06:38 AM
Andy Poulsen Andy Poulsen is offline
Administrator
 
Join Date: Apr 2003
Location: Fort Collins, Colorado
Posts: 273
Re: Open Dialog Position

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.
__________________
Andy Poulsen
AI MAXTools: Dream. Design. Done. It's that easy!
Add-ins bringing new functionality and speed to Creo Elements/Direct and CoCreate products. Now available for v17-v20+!
See them in action at www.ai-maxtools.com and then try them for yourself -- FREE!
Reply With Quote