comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: closing widget window
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: closing widget window [message #25942] Fri, 27 July 2001 13:34
Vince Hradil is currently offline  Vince Hradil
Messages: 574
Registered: December 1999
Senior Member
Isn't it there already?

On 27 Jul 2001 13:28:46 GMT, yen@dolphin.upenn.edu (Harry Kao) wrote:
> I am running IDL 5.4 under Mac os9.1
>
> Is is possible to put a little square icon on the upper left corner of a
> widget window, like the one on a usual system window, to allow user to
> click on it and close the window?
>
> Right now, I have to generate a 'quit' icon on every widget window, use
> use the event handler and then "widget_control, event.id, /destroy"
> to close the window. This gets troublesome when I have to open several
> windows at the same time, and this also takes up too much window space.
>
> Thank you.
>
> Harry
> --
Re: closing widget window [message #25957 is a reply to message #25942] Fri, 27 July 2001 07:18 Go to previous message
yen is currently offline  yen
Messages: 6
Registered: July 2001
Junior Member
David,

Thank you for the tip.

I have the habbit of copying and pasting from my old code without
checking the specifics. The tlb_frame_attr was set to 8 in my
original code, and this explains why the default button never did show
up. This is a good lesson for me:)

Harry

David Fanning (david@dfanning.com) wrote:

: It has been ages since Apple squandered all their
: good will with me, but I can't believe this little
: box doesn't come up by default. Are you sure you
: are not doing something in your code to prevent it?
: Applying the TLB_FRAME_ATTR keyword will prevent these
: kinds of things on Windows platforms. I'd look for that
: keyword in your code.

: Best Regards,

: David

: --
: David Fanning, Ph.D.
: Fanning Software Consulting
: Phone: 970-221-0438 E-Mail: davidf@dfanning.com
: Coyote's Guide to IDL Programming: http://www.dfanning.com/
: Toll-Free IDL Book Orders: 1-888-461-0155

--
Re: closing widget window [message #25958 is a reply to message #25957] Fri, 27 July 2001 07:04 Go to previous message
david[2] is currently offline  david[2]
Messages: 100
Registered: June 2001
Senior Member
Harry Kao writes:

> I am running IDL 5.4 under Mac os9.1
>
> Is is possible to put a little square icon on the upper left corner of a
> widget window, like the one on a usual system window, to allow user to
> click on it and close the window?
>
> Right now, I have to generate a 'quit' icon on every widget window, use
> use the event handler and then "widget_control, event.id, /destroy"
> to close the window. This gets troublesome when I have to open several
> windows at the same time, and this also takes up too much window space.

It has been ages since Apple squandered all their
good will with me, but I can't believe this little
box doesn't come up by default. Are you sure you
are not doing something in your code to prevent it?
Applying the TLB_FRAME_ATTR keyword will prevent these
kinds of things on Windows platforms. I'd look for that
keyword in your code.

Best Regards,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: End of Array - like - End Of File
Next Topic: Zoom-like procedure

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:26:23 PDT 2025

Total time taken to generate the page: 0.00466 seconds