Quantcast
Viewing all articles
Browse latest Browse all 1449

[VB6, twinBASIC x86/x64] ucPrinterComboEx - Extended Printer ComboBox Control

Image may be NSFW.
Clik here to view.
Image may be NSFW.
Clik here to view.

ucPrinterComboEx v1.0

ucPrinterComboEx is a simple control to select a printer, using a ListView to substitute for a normal dropdown to display the large icon/2-line display that manyu other selection dialogs use. There's a selection change event, methods for accessing the full collection, and some additional information like the 'Model' field from the Printers folder available, as well as showing the default printer in bold text. Krool's IPAO techniques are used to provide basic keyboard support. The dropdown behaves like a real combobox, including the slide animation (if enabled for regular combo controls), sliding up instead if there's not enough room on the bottom, extending beyond the form if needed, and fine control over sizing options.

Project is available as a VB6 UserControl and twinBASIC version. These versions are slightly different; the VB6 version has a set of 32bit-only declares that are picked up in twinBASIC by my WinDevLib project. Some changes in qualifying types are made to support using oleexp and OLEGuids in VB6 as well. But the codebase is 99% the same.


Requirements:

VB6 version: oleexp.tlb, OLEGuids.tlb (the former should be higher in the priority list), and the .bas modules included in the VB6 folder (mIID.bas and mUCPrinterComboExHelper.bas).

twinBASIC version: To use demo projects, none. To import into your own projects, WinDevLib v8.0.402 or newer.


Download from GitHub




Of course, hat tip to wqweto, I was wrong-- this project originally started thinking I could do that two line display easier with a ListView in tile mode than his owner draw combo method, turns out that no, that would have been easier and worked slightly better :D

Viewing all articles
Browse latest Browse all 1449

Trending Articles