Author Topic: Modeless Dialog help  (Read 9614 times)

0 Members and 1 Guest are viewing this topic.

jmaeding

  • Bull Frog
  • Posts: 304
  • I'm just here for the Shelties.
Re: Modeless Dialog help
« Reply #15 on: January 12, 2007, 08:15:36 PM »
Hey Danielm,
I just finished translating the setfocus and postcommand functions to vb syntax and they work great!
My modeless is humming along now, this is starting to be fun.
James Maeding

It's Alive!

  • Retired
  • Needs a day job
  • Posts: 8722
  • AKA Daniel
Re: Modeless Dialog help
« Reply #16 on: January 12, 2007, 11:46:32 PM »
Oh Cool, glad it worked for you,
do we get to see a pic? :-)

jmaeding

  • Bull Frog
  • Posts: 304
  • I'm just here for the Shelties.
Re: Modeless Dialog help
« Reply #17 on: January 13, 2007, 03:29:17 PM »
but of course!
Remeber that the lisp/ObjectDCL version of this is available at cadthinking.com for free.
It works for 2000 to 2007.
Here is the dialog...

I still have to work on a few things:
1) the cyan button is supposed to be the color of the layer, not sure how to translate an acad color number to a .net color variable

2) You cannot step through the nesting levels yet

3) not sure how to tell if a layer is frozen in current viewport.  I think I would test if I was "in" a paperspace viewport, then get the viewport if so.  Maybe the vport has an extension dictionary with the layer settings for it.

4) you cannot "apply" any changes yet, its just info in the dialog.  I'm getting to it though.

Some people might ask why not just use the properties box?  The answer is the properties box does not let you change layer properties or step through nesting levels.  This tool SHOWS you entity and layer props and lets you CHANGE the layer props.  No need to go to the layer dialog and look up the layer name...
James Maeding