Components for Developers
© 2000-2012, Two Pilots

PDF Library Download Features Manual Tutorials FAQ Pricing HTML2PDF-X Pilot History In the Lab

PDF Creator Pilot documentation

Download CHM version of this manual.
How to Create a ListBox

Example
Collapse All

Example

C++

[copy to clipboard]
PM_DOCUMENT doc = PM_DOCUMENT_New();

PM_RECT rc = {0, 0, 600, 800};
PM_RECT rcListBox = {10, 700, 140, 790};
PM_PAGE page = PM_DOCUMENT_AddPage(doc, rc);
	
PM_ANNOTATION listBox = PM_PAGE_AddListBox(page, rcListBox, "ListBox", doc);
	
PM_ANNOT_WIDGET_CHOICE_AddItem(listBox, "Value1");
PM_ANNOT_WIDGET_CHOICE_AddItem(listBox, "Value2");
PM_ANNOT_WIDGET_CHOICE_AddItem(listBox, "Value3");
PM_ANNOT_WIDGET_CHOICE_AddItem(listBox, "Value4");
PM_ANNOT_WIDGET_CHOICE_AddItem(listBox, "Value5");

PM_ANNOT_WIDGET_LISTBOX_SetMultiSelect(listBox, false);

PM_DOCUMENT_Save(doc, "ListBox.pdf");
PM_DOCUMENT_Free(doc);

PDF Library Download Features Manual Tutorials FAQ Pricing HTML2PDF-X Pilot History In the Lab

 

 

PDF Library | Virtual Printer | Converters to PDF

Support | Blog | Forum | Contacts

© 2000-2012, Two Pilots