CLIM mail archive


pop up of a window during command parsing

    Date: Tue, 17 Nov 1992 03:42 EST
    From: Vincent Keunen <nrb!>

    I want to let the users of my app easily change the color of things on
    the display.  I had this solution in mind: create a command (say Change
    Color Of) that would take as a first argument an object on the display
    (a click of the user would select the object) and as a second argument a
    color.  But to select the color, I wanted to pop up a small window with
    all colors (at that time of command parsing) and let the user click on
    the color. 

    Has anyone done something like that yet?

    How can I pop up a window between input of arg1 and arg2 and make sure I
    can get a color from it as the second arg of the underlying frame?

Use MENU-CHOOSE-FROM-DRAWER and supply a drawer that draws little
rectangles of the appropriate color.  You can do these either in the
body of the command, or in the ACCEPT method for the presentation
type.  The former is slightly preferable in my opinion, but that's
just my opinion.

    Never trust a pretty header: use to reply
    Keunen Vincent                  Network Research Belgium
    R&D, Software Engineer          Parc Industriel des Hauts-Sarts                   2e Avenue, 65
    tel: +32 41 407282              B-4040 Herstal
    fax: +32 41 481170              Belgium


Main Index | Thread Index