choiceAppendStringImage
function choiceAppendStringImage(choiceID: integer; itemText:string; img:image):integer;
Inserts a string and an image into the choice group element identified by choice group ID. The function returns the index of he newly inserted element within the choice group.
var choiceGroupID: integer;
NY, LA: integer;
begin
showForm;
choiceGroupID := formAddChoice('Where do you live?', CF_EXCLUSIVE);
NY := choiceAppendStringImage(choiceGroupID, 'New York', loadImage('/NY.png'));
LA := choiceAppendStringImage(choiceGroupID, 'Los Angeles', loadImage('/LA.png'));
end.
See also: formAddChoice, choiceAppendString, choiceIsSelected, choiceGetSelectedIndex