PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → WB [21] associated processes
WB [21] associated processes
Iniciado por guest, 14,sep. 2016 15:02 - 2 respuestas
Publicado el 14,septiembre 2016 - 15:02
Hi,

Can any of you proud owners of Webdev 21 tell me if the image control has a new associated browser code process of the RIGHT mouse click?
This is not (yet) there in WB20.

Regards,
Piet
Publicado el 14,septiembre 2016 - 16:30
1. Place image control on the page (e.g. IMG_Clicker)
2. Create handler browse procedure (e.g. ImageClicked). Implement the required code of the procedure. It must return False to suppress the default behavour. For example:
PROCEDURE ImageClicked Info("Yes!") RESULT False 3. Open browse code Load (onload) of PAGE_... and write this code:
jQueryExecute("#" + IMG_Clicker..Alias, "contextmenu", &ImageClicked) 4. Enjoy!

TIP: jQuery/jQueryExecute is powerful feature of WebDev that can be used for many other client side functionality.
Publicado el 16,septiembre 2016 - 09:10
Hi Arekusi,

I was not aware of that, thanks for pointing it out.

Kind regards,
Piet