[vwnc] How to mark a window as dirty or changed

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[vwnc] How to mark a window as dirty or changed

Roger Whitney
At least in the Mac OS when make a change in a window the application  
marks the window as dirty (contains a change). The Mac OS indicates  
this by drawing a small dark dot in the red circle in the upper left  
corner of the window. Is there anyway for a VisualWorks 7.1 GUI  
application to do this?


----
Roger Whitney              Department of Computer Science
[hidden email]        San Diego State University
http://www.eli.sdsu.edu/   San Diego, CA 92182-7720


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] How to mark a window as dirty or changed

Reinout Heeck
Roger Whitney wrote:
> At least in the Mac OS when make a change in a window the application  
> marks the window as dirty (contains a change). The Mac OS indicates  
> this by drawing a small dark dot in the red circle in the upper left  
> corner of the window. Is there anyway for a VisualWorks 7.1 GUI  
> application to do this?

Not that I am aware of, but if you know how to create DLLCC code it
should be pretty trivial to roll your own.

The Carbon libraries provide IsWindowModified() and SetWindowModified()
to manage visibility of the dot.

See here for an example:
   http://www.declaresub.com/ideclare/Windows/1.html



R
-
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc