Re: [Plib-users] Floating Group with Frame
Brought to you by:
sjbaker
From: Steve B. <sjb...@ai...> - 2002-01-20 01:03:16
|
dave wrote: > > Q1. > I was able to make a nice translucent group by creating a class that > inherits from puGroup. I set the floating flag, and was able to drag the > group around. In order to be able to see the group's abox I added a > Frame as the first widget and made it the same size as the group. This > is great, now I don't have to hunt and peck to find the group to do a > click. But, alas, with the new frame now I am unable to grab the group > to drag it. > > I suspect the Frame gets the hit before the group does, ie, the group is > behind the Frame. What do I do to get the hit passed on to the Group? I don't think you should make new widgets by *combining* others in layers. There is a lot more to a PUI widget than just it's graphic. > Q2. Maybe I am going about this wrong. Maybe it would be better to give > the group itself a simple outside border without using a Frame but leave > the middle transparent? Hmmm. But isnt a Frame the way to do this > anyway? Then the same problem would occur. Just make you midget render the way you want it to. If you are deriving a class from a standard widget anyway - why not just write your own draw() method and have it look however you like? > Q3. What I really want to do is have the Group or Frame look like a > clear sheet of glass. Mostly only the edge of the sheet would be > visible. Maybe a striated reflection would delineate the surface of the > sheet much like a real glass sheet is detectable. I assume all this is > possible? Certainly. > If you see the movie Mission To Mars all the computer > terminals in the ship are essentially sheets of glass - thats the idea > here. Any tips on how to do this? Well, I don't think any of the built-in 'draw' methods are adapted to this rendering style...so writing your own makes a lot of sense. ----------------------------- Steve Baker ------------------------------- Mail : <sjb...@ai...> WorkMail: <sj...@li...> URLs : http://www.sjbaker.org http://plib.sf.net http://tuxaqfh.sf.net http://tuxkart.sf.net http://prettypoly.sf.net http://freeglut.sf.net http://toobular.sf.net http://lodestone.sf.net |