¿Es Posible Colocar una Imagen (bmp) dentro de un List Box o Control En CVI 5.0?



Software Primario: LabWindows/CVI Development Systems>>Full Development System
Versión de Software Primario: 5.0
Versión de Software Primario Corregido: N/A
Software Secundario: N/A

Problema:
¿Es posible colocar una imagen (bmp) dentro de un list box o control en CVI 5.0?


Solución:
Actualmente no es posible.

De cualquier forma en CVI 5.5 y superior los List Box pueden contener imágenes predefinidas como un fichero, fichero abierto, fichero actual, etc. Esto se puede ver en:

[MeasurementStudio]\samples\userint\listbox.prj

Agregue el código en negritas dentro de su función "main"

int main (int argc, char *argv[])
{
int handle;

if (InitCVIRTE (0, argv, 0) == 0) /* Needed if linking in external compiler; harmless otherwise */
return -1; /* out of memory */

handle = LoadPanel (0, "listbox.uir", PANEL);
DisplayPanel (handle);
SetListItemImage (handle, PANEL_SELECTOR, 0, VAL_OPEN_FOLDER);

RunUserInterface ();

return 0;
}


Ligas Relacionadas:

Archivos Adjuntos:





Día del Reporte: 05/22/1998
Última Actualización: 04/21/2009
Identificación del Documento: 19LA4EEF