Am 2012-07-31 10:00, schrieb James Turner:
> Have either of you thought about implementing the menubar? Which in PUI is a 
> series of popup-windows, just wondering if the 'window manager' needs to be 
> aware of such windows in terms of z-ordering.

If you open a window it will be placed on top of all other windows, if
you exit a menu with the mouse it normally closes, so it should work.

Maybe we should create different categories/priorities (just a numeric
value) of windows where one window can only raise to the top inside a
category.

Am 2012-07-31 15:30, schrieb Thomas Geymayer:
>> Personally I'd like an event class exposed to Nasal (I can do that part, 
>> lots of experience with it now!), which is available in the callback 
>> functions I suggested above: so in a hover / wheel / click callback, one has 
>> an 'event' object with:
>>
>>      event.button (button that triggered the event)
>>      event.type (press / release / click / double-click)
>>      event.time (maybe...)
>>      event.buttons (state of all the mouse buttons)
>>      event.modifiers
>>      event.x, event.y
>>      event.globalX, event.globalY? (do we need these?)
>>      
>> And this can potentially have some helper functions to transform X/Y 
>> coordinates or even find the lat/lon of the scene location...
> 
> Looks like a good idea (relative changes would also be useful eg. for
> dragging). The question is only if we need to expose this class from C++
> or if it is enough to build it in Nasal.

The more I think about it the less I'm convinced about a Nasal-only
event class. There can occur many problems with (accidentally) setting
the mouse values in the wrong order, or how to get the mouse values
inside every affected element without copying to much properties around
and also thread synchronisation (if it is used) will get complicated.

How do you want to register callbacks if a custom class should be passed
as argument? Is it possible to set the value of a property node to a
custom class?

Tom

-- 
Thomas Geymayer  www.tomprogs.at / C-Forum und Tutorial: www.proggen.org
------------------------------------------------------------------------
      Student of Computer Science @ Graz University of Technology
------------------------------- Austria --------------------------------

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to