Error on shutdown of widget !@$% [message #24651] |
Tue, 10 April 2001 01:35  |
Sean Heukels
Messages: 25 Registered: November 1999
|
Junior Member |
|
|
How do I get rid off, or catch this error ??
When I shutdown my widget program by clciking exit, in my menubar, I can
reset colors, structures, the whole thing.
But when I click the Top-right-cross (Windows) And top-left=box on Unix,
which shutsdown the current process, I get an error by widget_event,
that this one ('named by number') is not defined.
I wish to clean up the variables that I clean on pushing exit in the same
way and dont want 2 create errors.
How can this be done ??
Thnks Sean
|
|
|
sec : u Re: Error on shutdown of widget !@$% [message #24768 is a reply to message #24651] |
Wed, 11 April 2001 18:12  |
Andrew Cool
Messages: 219 Registered: January 1996
|
Senior Member |
|
|
Mark Hadfield wrote:
>
> From: "Reimar Bauer" <r.bauer@fz-juelich.de>
>
>> Another possibility instead of KILL_NOTIFY described by Marc
>> is to suppress this feature.
>>
>> This is done by the keyword TLB_FRAME_ATTR to widget_base()
>>
>
> IMHO that's bad practice. Users expect to be able to close windows via the
> controls on the window frame. The programmer should provide for this unless
> there's a good reason not to.
>
I think you've scored the bullseye in one right there, Mark.
"Users" are as good a reason not to as any I know of.
Long Live TLB_FRANE_ATTR!
I vote for the old Keep It Simple, Stupid (KISS) principle when
dealing with Research Scientists. Give them a chance to &^%@* it up,
and they will...
Allow no latitude nor lateral thinking in the interface.
Put the fuzzies in a nice solid black box, outta sight of the users.
Show mercy to the poor simple things... ;-))
Andrew (programmer-type) Cool
PS : And always build in the extra capability that you know they'll
ask for next week when they start thinking "What if..."
------------------------------------------------------------ ---------
Andrew D. Cool .->-.
Electromagnetics & Propagation Group `-<-'
Surveillance Systems Division Transmitted on
Defence Science & Technology Organisation 100% recycled
PO Box 1500, Salisbury electrons
South Australia 5108
Phone : 061 8 8259 5740 Fax : 061 8 8259 6673
Email : andrew.cool@dsto.defence.gov.au
------------------------------------------------------------ ---------
|
|
|