Hi,
I have a problem with the trigger of an image. I'm using 10.1B. I added an event on Left Mouse Click in an image. It makes a frame visible, and then, after users selects something, the frame hides again.
Ok, this work fine, but, once tou have click on the image... the trigger doesn't work again. I have tried to reload the image (and see if magically the widget works again) I have "applied on choose" after the frame hides, sensitive = true.... well, here is a piece of code.
/** The 'magic' trigger that only works once **/
ON LEFT-MOUSE-CLICK OF imgEuropa IN FRAME fMain
DO:
FRAME frPaises:MOVE-TO-TOP().
FRAME frPaises:VISIBLE = TRUE.
/** some code **/
/* test if thie would repair my trigger... no, it didn't */
SELF:SENSITIVE = TRUE.
END.
/** The piece of code which executes whe I hide the frame **/
FRAME frPaises:MOVE-TO-BOTTOM().
FRAME frPaises:VISIBLE = FALSE.
/** more little tricks... none works
**/
ENABLE imgEuropa.
imgEuropa:SENSITIVE = TRUE.
imgEuropa:LOAD-IMAGE("smthg.jpg") IN FRAME fMain.
APPLY "U1" TO imgEuropa IN FRAME fMain.
/** No more **/
I forgot, event U1 just display an alert-box and when I try it, after hiding the frame it does display the message... buuuut, the on left mouse click... doesn't work...
I have a problem with the trigger of an image. I'm using 10.1B. I added an event on Left Mouse Click in an image. It makes a frame visible, and then, after users selects something, the frame hides again.
Ok, this work fine, but, once tou have click on the image... the trigger doesn't work again. I have tried to reload the image (and see if magically the widget works again) I have "applied on choose" after the frame hides, sensitive = true.... well, here is a piece of code.
/** The 'magic' trigger that only works once **/
ON LEFT-MOUSE-CLICK OF imgEuropa IN FRAME fMain
DO:
FRAME frPaises:MOVE-TO-TOP().
FRAME frPaises:VISIBLE = TRUE.
/** some code **/
/* test if thie would repair my trigger... no, it didn't */
SELF:SENSITIVE = TRUE.
END.
/** The piece of code which executes whe I hide the frame **/
FRAME frPaises:MOVE-TO-BOTTOM().
FRAME frPaises:VISIBLE = FALSE.
/** more little tricks... none works
ENABLE imgEuropa.
imgEuropa:SENSITIVE = TRUE.
imgEuropa:LOAD-IMAGE("smthg.jpg") IN FRAME fMain.
APPLY "U1" TO imgEuropa IN FRAME fMain.
/** No more **/
I forgot, event U1 just display an alert-box and when I try it, after hiding the frame it does display the message... buuuut, the on left mouse click... doesn't work...