DNH
June 27th, 2007, 14:39
ok, here's a challenge for you (by which i mean i had a go at it meself, but failed!) ...
i have a windowlist of weapons;
i want a heading above each column in the list (type, no of attacks, damage etc);
i want the heading to be anchored to the first item in the list (the top item);
i am pretty sure this can be done along the following lines:
when a wpn is added to the list, check to see if it is sorted so as to be the first. this should be done by checking to see if getPrevWindow returns null or not if it IS the first item, use something like createControl("wpnlistfieldlabel","wpnlistlabel_name"); to create a stringcontrol (template) the template would be something like a static stringcontrol of the appropriate label; i am sure this can be done much more efficiently using arrays and counters but that is probably beyond me
this is all to do with resizing, as i want to be able to resize the window and have the list items and their headings come with me.
feel free to tell me it cannot be done
thanks.
i have a windowlist of weapons;
i want a heading above each column in the list (type, no of attacks, damage etc);
i want the heading to be anchored to the first item in the list (the top item);
i am pretty sure this can be done along the following lines:
when a wpn is added to the list, check to see if it is sorted so as to be the first. this should be done by checking to see if getPrevWindow returns null or not if it IS the first item, use something like createControl("wpnlistfieldlabel","wpnlistlabel_name"); to create a stringcontrol (template) the template would be something like a static stringcontrol of the appropriate label; i am sure this can be done much more efficiently using arrays and counters but that is probably beyond me
this is all to do with resizing, as i want to be able to resize the window and have the list items and their headings come with me.
feel free to tell me it cannot be done
thanks.