Re: [GEN] event handling
Hello Chris
> > As in "has focus"? or mouse-over?
>
>I mean, how do you know when to process an event, if the event doesn't
>reference the control?
Well, I just check for events in a "for" loop and the loop variable
references the control. I don't know how I could have an event and not know
which control it belongs to. Maybe this is something we are doing
differently. I still haven't had time to check out guiX but then again I
haven't had time to work on LAGUI for a couple days either because I am
working hard at finding a job.
>Sounds like I'm on the right track, your gui sound very similar to mine,
>despite the lack of oop in my lib..
>
>Although, I tried storing the controls to bitmaps, but it was TOO costly
>on memory..
>I've been testing my lib with an ExoticaX game editing suite I'm
>developing along the way..
>and with 2 full screen windows (640x480 mode), and multiple scrollbars,
>numerous buttons and panels, it overwheled my system..
>
>I would recommend against storing every control to it's own bitmap.
>I found that drawing the controls in Paint events works quite well, only
>need to update when the control has changed. The speed is virtually the
>same.
Hmm, I haven't had any problems yet but then again I havent tried making any
controls the size of the screen and I have a pretty high-end computer too. I
find it much easier to draw and display the objects if I don't have to worry
about keeping track of everything happening on the same surface as the
mouse.
later,
Lewis Townsend
|
Not Categorized, Please Help
|
|