group of widgets in picture module

hi
in my application i want to create multiple widgets of same type. from
photon help i found that, by using picture module i can create such widgets
and use them repeatedly. but when i tried to use picture module, i was
successful in using individual widgets but it was not doing anything if i
group the widgets and try to copy the group instead of doing one widget at a
time.

does picture modules support ptgroup? or i am missing some link.

can anybody guide me in this matter?

thanks in advance

sameer

sam wrote:

hi
in my application i want to create multiple widgets of same type. from
photon help i found that, by using picture module i can create such widgets
and use them repeatedly. but when i tried to use picture module, i was
successful in using individual widgets but it was not doing anything if i
group the widgets and try to copy the group instead of doing one widget at a
time.

does picture modules support ptgroup? or i am missing some link.

If you group your widgets you have to use ApCreateWidgetFamily instead of
using ApCreateWidget.
The ApCreateWidget() function will only create the top widget, not the
widget hierarchy.
After using ApCreateWidgetFamily(), to retrieve the widget pointers to the
widgets inside your hierarchy you will have to walk the widget tree
yourself or have some other mechanism, since the ApCreateWidgetFamily
returns only a pointer to the top widget.



can anybody guide me in this matter?

thanks in advance

sameer