home *** CD-ROM | disk | FTP | other *** search
/ RISC DISC 1 / RISC_DISC_1.iso / pd_share / code / desklib / Docs / ModuleNote / Window < prev   
Encoding:
Text File  |  1993-03-28  |  1.8 KB  |  38 lines

  1. Intended additions to Window_Show():
  2.  
  3. Open window centered over another window
  4. Open window NOT over the caret
  5.   These will be used in situations like Edit's replace/continue dialogue:
  6.   First, you Window_Show() centered over the edit window, or under the pointer
  7.   Then, you Window_Show() NOT over the caret, which will bump the window
  8.   up or dwon so that the caret is still visible.
  9.  
  10.   Every time a search/replce is done (i.e. the caret is moved) by Edit, it
  11.   should then call Window_Show() NOT over the caret to bump the window
  12.   up/down if necessary. That way, the selected (found) piece of text is
  13.   ALWAYS visible instead of the more usual 60%-of-the-time-it's-under-the-
  14.   find-window. (I hate that!)
  15.  
  16. Open window in a spare area of the screen 
  17.   Find an area of the screen with the minimum number of windows already in
  18.   it (remember that the iconbar and grey background are both actually
  19.   windows), and put the window there. This results in the window not
  20.   overlapping any others where possible.
  21.  
  22. Open Window over iconbar icon
  23.   This opens a window in much the same way as a menu is opened over the
  24.   iconbar, with it's x-position dependent upon the mouse pointer, and it's
  25.   y-position set so that the bottom of the window occurs at OS coord. 96.
  26.  
  27.  
  28. Also means by which a window being deleted can have it's state written back
  29. to the parent template will be needed: That way, a window can be deleted and
  30. recreated as needed, but will always reappear in the size & position (state)
  31. that the user last left it, rather than always appearing "fresh" in the
  32. center of the screen or wherever.
  33.  
  34.  
  35. Note that you can reduce the size of the Window_Show code quite a bit by
  36. copying out the portions of it that you actually want to use, and including
  37. them in your own sources code (then, the default version in DeskLib won't
  38. be linked in). This helps remove redundant code from your application.