Imagebox control

Questions regarding syntax

Imagebox control

Postby phatzar » Mon Dec 27, 2010 11:52 am

Hi,
I build a lot of simple applications for children where they need to click an image to get a response. An example might be where the child is asked to click the image of an apple and if they do so correctly and message box appears saying well done.

This was fine in VB6, but I notice there are no events available in KBasic for imageboxes. Is there a simple way to do this? Also, is there a way to embed the image rather than have a link. Thanks.
phatzar
 
Posts: 2
Joined: Mon Dec 27, 2010 11:26 am

Re: Imagebox control

Postby Henning » Mon Dec 27, 2010 8:35 pm

Can you use an ImageButton as a replacement?

/Henning
Henning
 
Posts: 262
Joined: Mon Feb 09, 2009 12:03 am
Location: Sweden

Re: Imagebox control

Postby phatzar » Mon Dec 27, 2010 11:22 pm

Hi Henning,
Thanks for getting back to me. Yes I've tried that and it works fine. It does appear, however, that you cannot embed a graphic but I'll get over that somehow.

Regards
phatzar
 
Posts: 2
Joined: Mon Dec 27, 2010 11:26 am

Re: Imagebox control

Postby Slowdown » Tue Dec 28, 2010 8:43 pm

@phatzar,
You can embed a graphic.
If you have an imagebutton look at the property's and you will find,
Schermafbeelding 2010-12-28 om 21.38.57.png
Schermafbeelding 2010-12-28 om 21.38.57.png (19.86 KiB) Viewed 658 times

by 'enabled image' you can select a jpg or png file.
Regards
Slowdown for now i'm back
Slowdown
 
Posts: 347
Joined: Sat May 02, 2009 6:48 pm
Location: Netherlands


Return to Coding Questions

cron