[Plib-devel] RE: FlightGears puList code
Brought to you by:
sjbaker
From: Fay J. F C. AAC/W. <joh...@eg...> - 2005-02-03 12:16:25
|
Erik, Please excuse the delay in getting back to you. I haven't been able to look at the "puList" code yet but I will. On principle I don't see anything wrong with adding it to "puAux". John F. Fay joh...@eg... 850-729-6330 -----Original Message----- From: Erik Hofman [mailto:er...@eh...] Sent: Monday, January 31, 2005 4:23 AM To: Fay John F Contr AAC/WMG Subject: FlightGears puList code Hi John, FlightGear has been shipped with a puList (a scrolling PUI list box) for ages ans we have hit a problem recently: Melchior FRANZ -- Wednesday 22 December 2004 15:10: > getString is only made virtual in puList() and AirportList(), but it's > not virtual in puObject. copy_from_pui(), however, uses the > getStringValue() method on a puObject, assuming that it will get > AirportList()'s. Of course, this doesn't work and puValue()'s is used > instead. One would have to make getStringValue virtual in puObject() > or puValue() to make this work. Someone has provided a workaround for it but it depends on a define that might be used in the future: Andrew Midson wrote: > I have some concerns about the > solution, which could be broken by changes to plib (if > they re-use the value I have assigned to > PUCLASS_LIST), but for the moment it seems to work OK. Now I was thinking that it might be a good idea to add this code the puAux and get it settled from now on. Unless you can point me to another PUI list pox widget, would you be so kind to add this to puAux? Erik |