"Richard Levitte via RT" on  wrote...
| I just implemented, tested and committed this.  The enhancement is on
| the RandomPlacement statement itself by having it take a second
| argument that specifies the displacement.
| 
| > I'd love to specify some "RandomPlacement"  styles.  Currently windows
| > are placed +30+30 from the last random placment.  Eg: next window is
| > below and to right of previous random placement.
| > 
| > I'd love to specify things like -22+22  (eg next window is only below
| > but to left of previous window.  This way only the title bar is visible,
| > but the stair case ensures the first "LeftTitleButton" button (with
| > "NoDefaults") is always visible, no matter how I resize.

Great, I look forward to using a displacement of -30+30 so a title bar
'handle' of all the window popups are visible.

You can add that to the manual as a 'use' of this.

EG: my titlebar defination is...

=======8<--------
NoDefaults

#...

ifelse( TWM_TYPE, ctwm, [dnl
  # OPTIONAL "titlebar handle" buton, for almost completely obscured windows
  # or stacked, "tabbed" windows. EG: same operations as a title or frame.
  LeftTitleButton  "xpm:tomato_dash.xpm" {    # titlebar extension
        button1 : f.function "MoveRaiseLower"
        button2 : f.resize
        button3 : f.menu "WindowOps"
        # button3 = s : f.menu "TwmMenu"  # This is NOT posible yet!
      }
  LeftTitleButton  "xpm:tomato_iconify.xpm"   = f.iconify
#...

=======8<--------

Note 'shifted' mouse buttons can NOT currently be used on titlebar
buttons! :-(


  Anthony Thyssen ( System Programmer )    <[EMAIL PROTECTED]>
 -----------------------------------------------------------------------------
   Data: "I hate this! It is revolting!"      Guinan: "More?"
   Date with a smile:   "Please."          -- Star Trek ``Generations''
 -----------------------------------------------------------------------------
     Anthony's Home is his Castle     http://www.cit.gu.edu.au/~anthony/


Reply via email to