Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

Hiding faces in a Panel

 [1/4] from: philb:upnaway at: 12-Feb-2002 16:48


Hi, Is there a simple way of hiding faces in a panel? (using hide on a Panel that contains multiple faces doesnt seem to work). Do I have to have to hide each individual face in the Panel? Cheers Phil

 [2/4] from: brett:codeconscious at: 12-Feb-2002 21:53


Hi Phil, I haven't look at panel in detail. It is odd that you can't just hide it. But anyway here *seems* to be a workaround: view layout [ s: panel 150x300 [box green box red] button [hide s/parent-face] ] Regards, Brett.

 [3/4] from: greggirwin::mindspring::com at: 12-Feb-2002 10:56


Hey Brett, << I haven't look at panel in detail. It is odd that you can't just hide it. But anyway here *seems* to be a workaround: >> Cool! I had this same problem a while ago. Now I'll have to go back and try your solution. I tried a number of things, but I don't think I tried your trick. The best I could come up with was to move the panel off-screen temporarily, then restore its position. Thanks! --Gregg

 [4/4] from: robert:muench:robertmuench at: 13-Feb-2002 9:56


> -----Original Message----- > From: [rebol-bounce--rebol--com] [mailto:[rebol-bounce--rebol--com]]On Behalf Of
<<quoted lines omitted: 4>>
> Cool! I had this same problem a while ago. Now I'll have to go back and try > your solution.
Hi, yes it's really a nice trick and it works. But I think the face will still be there (in memory at least). Maybe it's possible to assign a new layout to the named face.
> I tried a number of things, but I don't think I tried your > trick. The best I could come up with was to move the panel off-screen > temporarily, then restore its position.
Well, this works too but the other solution is smarter ;-)). I don't know how VID or /View (which one?) determines of a face needs to be drawn or not. Using hide makes it possible to use a very simple test, testing against off-screen coordinates may take longer... Robert

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted