20,741
edits
No edit summary |
No edit summary |
||
Line 42: | Line 42: | ||
However, many PUI widgets can be emulated/approximated by using a combination of existing widgets, and/or functionality found in existing widgets, i.e. by referring to their source code. | However, many PUI widgets can be emulated/approximated by using a combination of existing widgets, and/or functionality found in existing widgets, i.e. by referring to their source code. | ||
For instance, all the data needed to obtain a list of airports or waypoints can be queried using the [[Navdata_cache#Accessing_via_Nasal| Navdb APIs]] exposed via [[Nasal/CppBind]], specifically: | |||
* findAirportsWithinRange() | |||
* findNavaidsWithinRange() | |||
Thus, what is primarily needed to implement support for arbitrary -list types is a ScrollArea that uses buttons (or labels) for each entry. | Thus, what is primarily needed to implement support for arbitrary -list types is a ScrollArea that uses buttons (or labels) for each entry. | ||