FOROS PROFESIONALES
WINDEV
,
WEBDEV
y
WINDEV Mobile
Inicio
|
Mensajes recientes
|
Conéctese...
|
Desconectar
|
Español
Inicio
→
WINDEV 2024
→
WD23: Image Control empty vs. filled
WD23: Image Control empty vs. filled
Iniciado por GuenterP, 24,jun. 2018 17:58 - 3 respuestas
Conéctese…
GuenterP
#1
Publicado el 24,junio 2018 - 17:58
Hi, this is maybe a simply-to-answer question:
How to find out whether an image control is empty (= no image shown) or contains an image? Images are coming from the clipboard but could have been emptied by a button with the codeline: MyImage = ""
Informar
0
0
Jan de Bruin
#2
Publicado el 24,junio 2018 - 19:45
Hey Guenter
Maybe you got test one of the image properties if there are filled?
Informar
0
0
Fabrice Harari
#3
Publicado el 25,junio 2018 - 01:00
Hi Guenter
If I remember correctly, testing image..width will give you zero only if empty.
Best regards From Nashville
Informar
0
0
GuenterP
#4
Publicado el 25,junio 2018 - 07:22
Hi Fabrice,
my congratulations!! :cheers:
Imho, the ..width property of an image control refers to the control itself, not to its content. MyImageControl..image..width is impossible anyway. I solved the problem by referring to the caption of MyImageControl. I'm starting with MyImageControl..Caption = "" and whenever it is filled from the Clipboard, I set it to "Image" and whenever the image is deleted, ..caption is set back to "". Not a really clean solution but viable.
Informar
0
0
→ Volver a WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (versiones precedentes)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Búsqueda Tipo
Sólo temas
Todos los mensajes
Periodo Buscar
Cualquier fecha
Última hora
Última 24 horas
Última semana
Último mes
Último año
Cancelar
Vista previa del mensaje
Añadiendo una imagen
Importar una imagen desde una URL
Enviar una imagen desde un archivo de su disco
Arrastrar un archivo o click en "Examinar..."
o
Cancelar
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Texto