>>I cannot find the 'sethook()' function (method) in the Mac::Events, or >>Mac::Windows online help (or in the corresponding .pm files). I understand >>the examples of its use, but was wondering if it is documented anywhere? > > Mac::Hooks. :) > Way too obvious! :-). Sorry, I looked in the Shuck/MacPerl sub-menus, and thought that it was a comprehensive/exhaustive list...guess not, I'll remember to search the lib directory. >>2) The examples in the MacPerl book imply that redrawing a window consists >>of re-executing the subroutine that drew the contents of the window >>initially when the 'redraw' event is detected. By extension, the >>implication is that one has to have 'control' over the window's contents >>(i.e, have created the window's content in the first place). Can one update >>(redraw) a window that one has not created the contents, like an "Open" or >>"Save" dialog box? > > Not recommended. You could try it if you are brave. I don't know how much > you could control it, if at all. > > >>Specifically, what I am trying to do is update a Navigation Services >>(Navigation.pm) 'NavGetFile' window, and I'm stuck. I have found that >>simply by placing a dummy event-handling subroutine in the NavGetFile call: >> >> NavGetFile($defaultLocation, $dialogOptions, $typeList, sub {}); >> >>that the dialog box becomes movable and resizable (NavPutFile comes this way >>by default, and also seems to 'announce' itself as such, since Default >>Folder 3.0.1 modifies the navigation buttons, and adds its own). So, taking >>the advice in Inside Macintosh, I wanted to write a simple subroutine to >>handle the updating of the window. > > Ah, that is a little different than dealing with a window you didn't > create, because your function would be, indeed, used by the same "object" > that created the window. > > I do not know how to do what you want to do, so I want attempt to help on > the specifics. :) > Thanks, anyway, I just want the window to redraw itself when necessary (for example, if you click the help button in the dialog box, upon returning the Mac OS Help, it needs to redraw itself), and I'd also like the cursor to stop morphing from a standard pointer to the MacPerl Camel "watch dial", and back, at a rapid rate. >>b) Can a MacWindows object utilize all the constants and functions in the >>Mac::Windows module, or only the ones pertaining to it? > > Dunno, what are you in particular wondering about? > Just whether or not all the constants, types and functions mentioned before the discussion of the MacWindows class are pertinent to objects of that type? Thanks... ---------------------- Mark J. Yannuzzi myannuzzi@aya.yale.edu ==== Want to unsubscribe from this list? ==== Send mail with body "unsubscribe" to macperl-toolbox-request@macperl.org