PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV 2024
→
WD23: Image Control empty vs. filled
WD23: Image Control empty vs. filled
Started by GuenterP, Jun., 24 2018 5:58 PM - 3 replies
Connect yourself…
GuenterP
#1
Posted on June, 24 2018 - 5:58 PM
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 = ""
Report
0
0
Jan de Bruin
#2
Posted on June, 24 2018 - 7:45 PM
Hey Guenter
Maybe you got test one of the image properties if there are filled?
Report
0
0
Fabrice Harari
#3
Posted on June, 25 2018 - 1:00 AM
Hi Guenter
If I remember correctly, testing image..width will give you zero only if empty.
Best regards From Nashville
Report
0
0
GuenterP
#4
Posted on June, 25 2018 - 7:22 AM
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.
Report
0
0
→ Go back to WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text