If you are talking about a 2D instrument panel, take a look at the sample DeltaGlider code in <OrbiterRoot>\Orbitersdk\samples\DeltaGlider. Specifically, look in DeltaGlider.cpp at the clbkLoadPanel, clbkPanelMouseEvent, and clbkPanelRedrawEvent methods.