This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to made a grid cell blinking

Hi, 

May i know that isn't possible for us to made a grid cell blinking? 

Because we would like to made it blinking for get user attention. 

Thank You. 

Tags:

  • Suggested Answer

    0

    You could change the cell-color in a thread:

    PERFORM THREAD BLINK-CELL.
    
    BLINK-CELL.
      PERFORM UNTIL 2 = 1
        MODIFY GRID-1 X=3 Y=3 CELL-COLOR=48
        CALL "C$SLEEP" USING 0.5
        MODIFY GRID-1 X=3 Y=3 CELL-COLOR=513
        CALL "C$SLEEP" USING 0.5
      END-PERFORM.
  • 0 in reply to 

    Hi Remy, 

    Because we are not familiar with thread.

    May i know that how to control this thread to stop the thread?

    If we need to run some processing data function to refresh the grid data then only start this thread isn't possible?

    Because we need the cell to blink when certain condition hit. 

    Thank You. 

  • 0 in reply to 

    You can stop the thread with STOP THREAD. Then just PERFORM THREAD BLINK-CELL again when you are ready for it to blink again. You might even be able to do this without a thread, either way it's possible to make a cell blink.

  • 0 in reply to 

    Hi Remy, 

    Thanks for the information. 

    May i know that do you have any idea how to made it blink without using thread?

    Because what we try to achieve is not only blink for 1 record, it will need to read thru the whole grid and decide which to blink. 

    So we try to use thread, it seem like hang there due to having loop for read the data and loop for blink the cell. 

    Thank You. 

  • 0 in reply to 
    May i know that do you have any idea how to made it blink without using thread?

    Just use the same source I posted earlier but without calling it in a thread.

  • 0 in reply to 

    Hi Remy, 

    Noted with thanks.