<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>
<META content="MSHTML 6.00.2900.2912" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff><SPAN class=446373615-07082006><FONT face=Arial
color=#0000ff size=2>
<DIV><SPAN class=446373615-07082006><FONT face=Arial color=#0000ff
size=2>A BON interpreter is executed within a transaction. That's why the
users are not aware of transactions at all, because it is hidden from them.
</FONT></SPAN></DIV>
<DIV>If a modeless dialog box is within the transaction boundary then it should
be Ok.</FONT></SPAN></DIV>
<DIV><SPAN class=446373615-07082006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=446373615-07082006><FONT face=Arial color=#0000ff size=2>So if
you implement a modeless dialog that you allow the user to make operations in
your dialog and in your model as well, and the dialog controls operate on the
model, then you must do all such operations inside one or
more transactons. See Rawcomponents and ComponentObj.cpp's InvokeEx method
for details.</FONT></SPAN></DIV>
<DIV><SPAN class=446373615-07082006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=446373615-07082006><FONT face=Arial color=#0000ff size=2>br,
Zoli</FONT></SPAN></DIV>
<DIV><SPAN class=446373615-07082006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV></DIV>
<DIV><FONT face=Tahoma size=2>-----Original Message-----<BR><B>From:</B>
gme-users-bounces@list.isis.vanderbilt.edu
[mailto:gme-users-bounces@list.isis.vanderbilt.edu] <B>On Behalf Of </B>Jane
Lin<BR><B>Sent:</B> Thursday, August 03, 2006 9:45 AM<BR><B>To:</B>
gme-users<BR><B>Subject:</B> [gme-users] modeless dialog for GME
plug-in<BR><BR></DIV></FONT>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV><FONT face=Arial size=2><FONT face="Times New Roman"
size=3>Hi,<BR><BR>Currently I need to create a modeless dialog for my GME
plug-in. Has anyone<BR>done this successfully before? There seem to be some
valid reasons for<BR>wanting to do this (such as a dialog whose input can
drive changes within<BR>the scope of a current model in
focus).<BR><BR>Unfortunately, I am encountering a problem when I try to make a
modeless<BR>dialog. The modeless dialog showed up and seemed to work. But the
problem is<BR>the GME might crash when I operated on the dialog. Other times,
I got a<BR>general error message when I later closed GME.<BR><BR>It would be
appreciated if someone can share such experiences in creating<BR>modeless
dialogs. If those are frowned upon in plugins, can someone
suggest<BR>alternative ways that have been used?<BR><BR>Thanks for any
help!<BR><BR>Jane</FONT><BR></FONT><FONT face=Arial
size=2>---------------------------------------------------------------------------------<BR>Yuehua
(Jane) Lin<BR>Department of Computer and Information Sciences<BR>University of
Alabama at Birmingham<BR><A
href="mailto:liny@cis.uab.edu">liny@cis.uab.edu</A> <BR><A
href="http://www.cis.uab.edu/liny">http://www.cis.uab.edu/liny</A></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BLOCKQUOTE></BODY></HTML>