FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WINDEV 2024
→
WD23: Image Control empty vs. filled
WD23: Image Control empty vs. filled
Débuté par GuenterP, 24 juin 2018 17:58 - 3 réponses
Connectez-vous…
GuenterP
#1
Posté le 24 juin 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 = ""
Signaler
0
0
Jan de Bruin
#2
Posté le 24 juin 2018 - 19:45
Hey Guenter
Maybe you got test one of the image properties if there are filled?
Signaler
0
0
Fabrice Harari
#3
Posté le 25 juin 2018 - 01:00
Hi Guenter
If I remember correctly, testing image..width will give you zero only if empty.
Best regards From Nashville
Signaler
0
0
GuenterP
#4
Posté le 25 juin 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.
Signaler
0
0
→ Revenir à WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte