i'm trying to make it dynamic so to pass in the controls that will be neighbors to the buttons. this is so as i add more controls on the screen, and if they need to be moved around, it will be as simple as passing in a variable. in the future of this script it will be important. i found the same problem when trying to create navigation from my listcontrol to a 'to be' defined set of generated buttons. the button control does not yet exist when i want to define the navigation for the controlleft on the listcontrol.
this code will be adapted to more complex functions as i get better at python... like image arrays.
if we had a cursor defined navigation would be unnecessary but the complexity of the screen demands more flexibility in the code if it is to be easily customizable (via a simple config file) for the end user.
the goal is to create a set of generic button generators to share with the community for future scripts.
i want to help others that want to write python scripts not need to go through the hours of 'pain' i did trying to create and learn at the same time. i have spent literally about 10x more time on this one script and trying to learn python then i did for the same outcome with jscript/asp/vbscript. very frustrating.
i do appreciate the help you, bbb, jm, and nuka have given!
below is the goal for my end result for this script... it was create using asp and very generic functions. no end-user code manipulation of functions is necessary to fully customize it. most sections of the screen are created with a sinle line input from the main asp page.
every single image is a button; the green/yellow dim bars are independant buttons.