Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » Inheriting from DropGrid
Inheriting from DropGrid [message #23356] |
Tue, 13 October 2009 18:11 |
jeremy_c
Messages: 175 Registered: August 2007 Location: Ohio, USA
|
Experienced Member |
|
|
I have a common control that I'd like to not setup each time, thus, I inherited from DropGrid and made AircraftDropGrid. The problem is that I cannot seem to use the AddPlus() method of DropGrid. Here is my code:
AddIndex(ID);
AddColumn(TAIL_NO, "Tail No.", 8);
AddColumn(TYPE_CODE, "Type", 6);
AddColumn(MAKE_MODEL, "Make & Model", 20);
Width(250);
SetValueColumn(1);
AddPlus(THISBACK(OnAddAircraft));
OnAddAircraft() is a public member of AircraftDropGrid. When I try an compile this, I get:
error C2039: 'OnAddAircraft' : is not a member of 'Upp::DropGrid'
Does anyone know how I can achieve this task?
Jeremy
|
|
|
Goto Forum:
Current Time: Fri Nov 01 00:58:04 CET 2024
Total time taken to generate the page: 0.00972 seconds
|