View Full Version : showDevicePage()

September 28, 2006, 12:53:25

Does anyone know how to disable selected "device name" that listed by showDevicePage() ?

I created 2 grabbers and if I only installed 1 device I always can select that one device for both grabbers.
How can I disable that device, if that device already selected by another grabber?
because the problem is, I cannot use 1 device for two grabbers.

another question is if I call function loadDeviceState( ... ) from the same config file (using same device for two grabbers), my program will crash.
How can I fix that? I mean without crash only return an error message..

thanks for any advice ...

Stefan Geissler
September 28, 2006, 13:07:03
Hello Yunce,

First of all you can not change anything in the device selection dialog. You can create your own dialog using the "Making Device Settings" sample. This sample implements nearly the same dialog. You can alter this sample, so the dialog knows, which devices are in use. You should have a global list of devices in use, so your own dialog should be able to not show theses devices in the devices combo box.