Skip to main content

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. 


#Grid
#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. 


#Grid
#blinking

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.

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.

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. 


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. 

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.


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.

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. 


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. 

[quote userid="4824" url="~/cobol/acucobol/f/forumid-20/516482/how-to-made-a-grid-cell-blinking/1906706#1906706"]May i know that do you have any idea how to made it blink without using thread?[/quote]

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


[quote userid="4824" url="~/cobol/acucobol/f/forumid-20/516482/how-to-made-a-grid-cell-blinking/1906706#1906706"]May i know that do you have any idea how to made it blink without using thread?[/quote]

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

Hi Remy, 

Noted with thanks.