REDEFINE BUTTONBAR oBarInv ID 100 SIZE 60,55 OF oDiw 2015
     oBarInv:bClrGrad := aPubGrad   oDiw:oBarInv:bPainted = { || oDiw:oBarInv:Say( 5, 200, cIAMsg, , , , .T., .T. ) }Enrico Maria Giordano wrote:You changed your look again! :-)It is an AI created painting :-)
Dear Tim,
Instead of:
oDiw:oBarInv:bPainted = { || oDiw:oBarInv:Say( 5, 200, cIAMsg, , , , .T., .T. ) }
use:
oDiw:oBar:bPainted = { || oDiw:oBar:Say( 5, 200, cIAMsg, , , , .T., .T. ) }
Antonio Linares wrote:Are you serious?You changed your look again! :-)It is an AI created painting :-)
Antonio,
I tried but it fails. The actual bar object is oBarInv
oBar does not exist so the error says there is no exported variable bPainted ...
Tim
oBarInv:bPainted = { || oBarInv:Say( 5, 200, cIAMsg, , , , .T., .T. ) }It doesn't show anything. It's not a huge problem, but I do see the REDEFINE SAY has limitations not found in @ ....SAY. Included in them is the inability to use a border.
I was looking for a "cleaner" display ... but decided to go a different route.
I redefined my control from LTEXT to CTEXT and added the border to the resource ( in the .rc, WS_BORDER )
It looks decent and will work OK ...
TimStone wrote:It doesn't show anything.We need a code sample showing the problem in order to help you.
TimStone wrote:Enrico,I've already shown a workaround for that problem.
Marc's example, as stated before, shows the exact problem.
I tried your workaround. However I am using RESOURCES for the control. It didn't work.