View Single Post
  #8  
Old 07-30-2015, 09:10 AM
Andy Poulsen Andy Poulsen is offline
Administrator
 
Join Date: Apr 2003
Location: Fort Collins, Colorado
Posts: 273
Re: Open Dialog Position

Quote:
Originally Posted by tom kirkman View Post
Could you provide the sample code?
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
Attached Files
File Type: lsp User_Interface_Toolkit_Example_v18+.lsp (13.4 KB, 347 views)
__________________
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