.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

PointMonitor conflicts with Dynamic Input

5 REPLIES 5
Reply
Message 1 of 6
Anonymous
415 Views, 5 Replies

PointMonitor conflicts with Dynamic Input


Hi everyone,

 

My solution based on watching Editor.PointMonitor
events seems to conflict with Dynamic Input (?!)... What I'm doing is firing a
modal dialog (the one that never receives a focus) when PointMonitor
intercepts certain entities within pickbox. I also tried with custom
System.Drawing.Graphics (no dialog) solution and all, but AutoCAD crashes as
soon as Dynamic Input toolboxes start to appear. Other "regular" tooltips (like
OSNAP's) work just fine, side-by-side with my app.

 

Regards,

Maksim Sestic
5 REPLIES 5
Message 2 of 6
Anonymous
in reply to: Anonymous

You can't display a modal dialog from that kind
of event, and expect anything to work.

Did you ever see an application of any type that
pops up modal dialogs in response to nothing
but cursor movement ?

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007
http://www.acadxtabs.com

"Maksim Sestic" wrote in message news:5247664@discussion.autodesk.com...
Hi everyone,

My solution based on watching Editor.PointMonitor events seems to conflict with Dynamic Input (?!)... What I'm doing is firing a modal dialog (the one that never receives a focus) when PointMonitor intercepts certain entities within pickbox. I also tried with custom System.Drawing.Graphics (no dialog) solution and all, but AutoCAD crashes as soon as Dynamic Input toolboxes start to appear. Other "regular" tooltips (like OSNAP's) work just fine, side-by-side with my app.

Regards,
Maksim Sestic
Message 3 of 6
Anonymous
in reply to: Anonymous


I also tried creating a simple Graphics canvas
(say, Tooltip-alike) being fired by PointMonitor, and it still conflicts with
Dynamic Input. Everything else works just fine. BTW, modal dialog I'm
firing does not receive a focus (ever), receives only mouse
input and does not interfere with ACAD in any other way. There is
something tricky about Dynamic Input implementation (2006), and I'm suspecting
it's related to "TextBox" input control.

 

Now, have you ever seen a "tooltip" that gains a
focus over it's parent? 🙂 That's exactly what DYN does. This is "no good"
and I would never go down that path myself. Instead, I would make a "fake" input
control tied to ACAD's keyboard hook, an exact replica of a classic TextBox
(cursor blinking, etc.) if that was the point.

 

Regards,

Maksim Sestic

 

 

 

 

You can't display
a modal dialog from that kind
of event, and expect anything to
work.

Did you ever see an application of any type that
pops up modal
dialogs in response to nothing
but cursor movement ?

--

href="http://www.caddzone.com">
size=2>http://www.caddzone.com



size=2>AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007

href="http://www.acadxtabs.com">
size=2>http://www.acadxtabs.com



size=2>"Maksim Sestic" <

face=Verdana size=2>info@geoinova.com
>
wrote in message

face=Verdana size=2>news:5247664@discussion.autodesk.com

face=Verdana size=2>...
Hi everyone,
 
My solution based on
watching Editor.PointMonitor events seems to conflict with Dynamic Input (?!)...
What I'm doing is firing a modal dialog (the one that never receives a focus)
when PointMonitor intercepts certain entities within pickbox. I also tried with
custom System.Drawing.Graphics (no dialog) solution and all, but AutoCAD crashes
as soon as Dynamic Input toolboxes start to appear. Other "regular" tooltips
(like OSNAP's) work just fine, side-by-side with my
app.
 
Regards,
Maksim Sestic
Message 4 of 6
Anonymous
in reply to: Anonymous


A little correction to my original
post:

 

Dynamic Input crashes my app only if DYNMODE >
1

 

Now that's funny. What's there in Dymensional
Input that's not in Pointer Input mode?

 

 


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">


I also tried creating a simple Graphics canvas
(say, Tooltip-alike) being fired by PointMonitor, and it still conflicts with
Dynamic Input. Everything else works just fine. BTW, modal dialog I'm
firing does not receive a focus (ever), receives only mouse
input and does not interfere with ACAD in any other way. There
is something tricky about Dynamic Input implementation (2006), and I'm
suspecting it's related to "TextBox" input control.

 

Now, have you ever seen a "tooltip" that gains
a focus over it's parent? 🙂 That's exactly what DYN does. This is "no
good" and I would never go down that path myself. Instead, I would make a
"fake" input control tied to ACAD's keyboard hook, an exact replica of a
classic TextBox (cursor blinking, etc.) if that was the point.

 

Regards,

Maksim Sestic

 

 

 

 

You can't display a modal
dialog from that kind
of event, and expect anything to work.

Did you
ever see an application of any type that
pops up modal dialogs in response
to nothing
but cursor movement ?

--

href="http://www.caddzone.com">
size=2>http://www.caddzone.com



size=2>AcadXTabs: MDI Document Tabs for AutoCAD
2004/2005/2006/2007

face=Verdana size=2>http://www.acadxtabs.com



face=Verdana size=2>"Maksim Sestic" <

href="mailto:info@geoinova.com">
size=2>info@geoinova.com
> wrote in
message

face=Verdana size=2>news:5247664@discussion.autodesk.com

face=Verdana size=2>...
Hi everyone,
 
My solution based on
watching Editor.PointMonitor events seems to conflict with Dynamic Input
(?!)... What I'm doing is firing a modal dialog (the one that never receives a
focus) when PointMonitor intercepts certain entities within pickbox. I also
tried with custom System.Drawing.Graphics (no dialog) solution and all, but
AutoCAD crashes as soon as Dynamic Input toolboxes start to appear. Other
"regular" tooltips (like OSNAP's) work just fine, side-by-side with my
app.
 
Regards,
Maksim Sestic

Message 5 of 6
Anonymous
in reply to: Anonymous

"BTW, modal dialog I'm firing does not receive a focus (ever),
receives only mouse input and does not interfere with ACAD
in any other way. "

How can that be? A modal dialog disables the AutoCAD window.

That's the definition of 'modal' - the user is forced to interact
with that dialog, and cannot access the other windows in the
application until they close it.

Perhaps you are confusing modal and modeless ?

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007
http://www.acadxtabs.com

"Maksim Sestic" wrote in message news:5248584@discussion.autodesk.com...
I also tried creating a simple Graphics canvas (say, Tooltip-alike) being fired by PointMonitor, and it still conflicts with Dynamic Input. Everything else works just fine. BTW, modal dialog I'm firing does not receive a focus (ever), receives only mouse input and does not interfere with ACAD in any other way. There is something tricky about Dynamic Input implementation (2006), and I'm suspecting it's related to "TextBox" input control.

Now, have you ever seen a "tooltip" that gains a focus over it's parent? 🙂 That's exactly what DYN does. This is "no good" and I would never go down that path myself. Instead, I would make a "fake" input control tied to ACAD's keyboard hook, an exact replica of a classic TextBox (cursor blinking, etc.) if that was the point.

Regards,
Maksim Sestic




"Tony Tanzillo" wrote in message news:5247848@discussion.autodesk.com...
You can't display a modal dialog from that kind
of event, and expect anything to work.

Did you ever see an application of any type that
pops up modal dialogs in response to nothing
but cursor movement ?

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007
http://www.acadxtabs.com

"Maksim Sestic" wrote in message news:5247664@discussion.autodesk.com...
Hi everyone,

My solution based on watching Editor.PointMonitor events seems to conflict with Dynamic Input (?!)... What I'm doing is firing a modal dialog (the one that never receives a focus) when PointMonitor intercepts certain entities within pickbox. I also tried with custom System.Drawing.Graphics (no dialog) solution and all, but AutoCAD crashes as soon as Dynamic Input toolboxes start to appear. Other "regular" tooltips (like OSNAP's) work just fine, side-by-side with my app.

Regards,
Maksim Sestic
Message 6 of 6
Anonymous
in reply to: Anonymous

You're aboslutely right, the dialog I'm displaying is definately modeless
:-)

I was trying to place a handy windows hook to monitor certain activites
during DYN mode. Still, I found nothing new and it definately crashes ACAD
if DYNMODE > 1 while my modeless window is visible, and I guess it's
something related to how ACAD processes certain operations. After hours of
trying I kind of narrowed source of error to the point when ACAD gets to
display an Arc/Circle jig (?!?), but this sounds so insane that I just quit
experimenting further.

Experiment results (modeless window is visible, DYN mode status is
irrelevant):
ACAD2006, .NET 2.0, VS.NET 2005

1) user draws a line/pline/whatever - just not an arc/circle: everything's
fine
2) user draws an arc/circle - standard jig lines of arc/circle are
invisible, when diameter is confirmed ACAD crashes
3) DYN input boxes work fine, crashes when DYN tries to draw a helper arc
(see 2)

Regards,
Maksim Sestic


"Tony Tanzillo" wrote in message
news:5248769@discussion.autodesk.com...
"BTW, modal dialog I'm firing does not receive a focus (ever),
receives only mouse input and does not interfere with ACAD
in any other way. "

How can that be? A modal dialog disables the AutoCAD window.

That's the definition of 'modal' - the user is forced to interact
with that dialog, and cannot access the other windows in the
application until they close it.

Perhaps you are confusing modal and modeless ?

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007
http://www.acadxtabs.com

"Maksim Sestic" wrote in message
news:5248584@discussion.autodesk.com...
I also tried creating a simple Graphics canvas (say, Tooltip-alike) being
fired by PointMonitor, and it still conflicts with Dynamic Input. Everything
else works just fine. BTW, modal dialog I'm firing does not receive a focus
(ever), receives only mouse input and does not interfere with ACAD in any
other way. There is something tricky about Dynamic Input implementation
(2006), and I'm suspecting it's related to "TextBox" input control.

Now, have you ever seen a "tooltip" that gains a focus over it's parent? 🙂
That's exactly what DYN does. This is "no good" and I would never go down
that path myself. Instead, I would make a "fake" input control tied to
ACAD's keyboard hook, an exact replica of a classic TextBox (cursor
blinking, etc.) if that was the point.

Regards,
Maksim Sestic




"Tony Tanzillo" wrote in message
news:5247848@discussion.autodesk.com...
You can't display a modal dialog from that kind
of event, and expect anything to work.

Did you ever see an application of any type that
pops up modal dialogs in response to nothing
but cursor movement ?

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007
http://www.acadxtabs.com

"Maksim Sestic" wrote in message
news:5247664@discussion.autodesk.com...
Hi everyone,

My solution based on watching Editor.PointMonitor events seems to conflict
with Dynamic Input (?!)... What I'm doing is firing a modal dialog (the one
that never receives a focus) when PointMonitor intercepts certain entities
within pickbox. I also tried with custom System.Drawing.Graphics (no dialog)
solution and all, but AutoCAD crashes as soon as Dynamic Input toolboxes
start to appear. Other "regular" tooltips (like OSNAP's) work just fine,
side-by-side with my app.

Regards,
Maksim Sestic

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost