octane6228
06-10-2005, 09:58 AM
Hi...I saw an example of the combo Box where apon selection it page jumped to what ever page was selected in the ComboBox...see below
Page.Jump(ComboBox.GetItemText("Plugin1", ComboBox.GetSelected("Plugin1")));
I have an image object on a page with a ComboBox and I need to update the image object with what ever slide is selected in the comboBox.
How can I modify the above code to do what I need?
My code on how the ComboBox gets populated is below (That was step 1)
Plugin2 is the ComboBox
------------------------------------------------------------------------
--Populate a table with jpg files from the Image directory and count their numbers
tbl_path = File.Find("AutoPlay\\Images\\PowerPoint\\", "*.jpg", false, false, nil, nil);
img_nbr = Table.Count(tbl_path);
Paragraph.SetText("output", "Now Showing Slide "..count.." of "..img_nbr);
ComboBox.SetUpdate("Plugin2", false);
for i = 1, img_nbr do
ComboBox.AddItem ("Plugin2", "Slide "..i,"");
end
ComboBox.SetUpdate("Plugin2", true);
--------------------------------------------------------------------
Any help is greatly appreciated!
Page.Jump(ComboBox.GetItemText("Plugin1", ComboBox.GetSelected("Plugin1")));
I have an image object on a page with a ComboBox and I need to update the image object with what ever slide is selected in the comboBox.
How can I modify the above code to do what I need?
My code on how the ComboBox gets populated is below (That was step 1)
Plugin2 is the ComboBox
------------------------------------------------------------------------
--Populate a table with jpg files from the Image directory and count their numbers
tbl_path = File.Find("AutoPlay\\Images\\PowerPoint\\", "*.jpg", false, false, nil, nil);
img_nbr = Table.Count(tbl_path);
Paragraph.SetText("output", "Now Showing Slide "..count.." of "..img_nbr);
ComboBox.SetUpdate("Plugin2", false);
for i = 1, img_nbr do
ComboBox.AddItem ("Plugin2", "Slide "..i,"");
end
ComboBox.SetUpdate("Plugin2", true);
--------------------------------------------------------------------
Any help is greatly appreciated!