swoolcock / diddy

An Open Source Framework that includes a set of extra functions and APIs for the Monkey language.
MIT License
21 stars 4 forks source link

GUI: draw vs. action order #13

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It appears, that the last component created gets drawn on top, but the first 
component created recieves the actions.

E.g.:
I got a panel (background) with a button

Init 1:
CreatePanel
CreateButton

Result: button is on top of panel, but can't get clicked

Init 2:
CreateButton
CreatePanel

Result: panel is on top of button, but button can get clicked

Maybe I'm missing something =)

Original issue reported on code.google.com by egg0r...@gmail.com on 16 Jun 2011 at 10:26

GoogleCodeExporter commented 9 years ago
Sorry, my bad. I think a had a label over my button...

Original comment by egg0r...@gmail.com on 16 Jun 2011 at 10:36

GoogleCodeExporter commented 9 years ago
Mouse clicks currently ignore component z-order, so overlapping components is 
bad (this means overlapping windows breaks).  Once I add some component 
focusing functionality I'll fix the z-order.

Original comment by samah...@gmail.com on 17 Jun 2011 at 2:19

GoogleCodeExporter commented 9 years ago
I actually almost reported this a while ago, but I then realized that it's not 
quite finished. (I defined a window and some child buttons within, but the 
window seemed focused instead!)
Looking at the GUI's code tells me that it has a robust future and that it's 
very well designed so far.

I've already (sort of) created an implementation for the windows based on the 
structure yet, so I'm really looking forward to seeing progress on this!

Anyways, superb job on the GUI so far, Samah! :)

Thanks,
- Brandon.

Original comment by Cheese...@gmail.com on 17 Jun 2011 at 5:53

GoogleCodeExporter commented 9 years ago
Yeah, I second that!
Consider my reports more as feedback than anything else ;)

Original comment by egg0r...@gmail.com on 17 Jun 2011 at 6:45

GoogleCodeExporter commented 9 years ago
Z-order is now fully implemented, as well as a very simple form of component 
focus (I'll be expanding this later).

Original comment by samah...@gmail.com on 27 Jun 2011 at 12:47