Next Previous Up Top Contents Index

5.3.3 Updating the user interface

5.3.3.1 Initializing a new instance of <task-frame>

The code below provides an initialize method for the class <task-frame>. This simply ensures that the display in a <task-frame> is refreshed as soon as it is created, and calls any subsequent methods that may be defined for it (although, in the case of the task list manager, there are none). While not strictly necessary, this initialize method illustrates general good practice when defining your own classes of frame. If the application was associated with files of a particular type on disk, then the initialize method would be necessary to ensure that tasks were displayed correctly after starting the task list manager by double-clicking on a file of tasks.

define method initialize
    (frame :: <task-frame>, #key) => ()
  next-method();
  refresh-task-frame(frame);
end method initialize;

Add the code for this method to frame.dylan.


Building Applications Using DUIM - 26 May 1999

Next Previous Up Top Contents Index