View Single Post
  #9  
Old 07-31-2015, 12:53 PM
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 Tom,

You betcha. The real magic is just to specify the reference object as :application, so the last function in the file becomes:
Code:
  (sd-show-dialog-shell "UICT-TEST" :position '(:application :righttop 10 10))
You can adjust the values, of course, to position it where you want it.

This approach will work under all earlier versions of CoCreate and Creo Elements/Direct, as :application can always be used. However, sometimes you may want to reference another object -- the key is just to make sure it exists before referencing it.

I hope this helps!

andy
Been out of the office for a couple of days, had to take my mom to the hospital.

Thanks again for your help with this Andy!
Also, thanks for the idea about using show/hide control to shrink the size of the dialog when not needed. Hopefully someday they will expose the auto-hide functionality. See attached.

Mike
Attached Files
File Type: lsp User_Interface_Toolkit_Example_v18+.lsp (13.5 KB, 330 views)
Reply With Quote