You can interate over all Panels using 'ptr_first'. Check out the manual for an example.