I've got a set of custom container objects that are held in a FORM.
I'd like to organise these so that, when the user clicks on one of them, it changes the BACKCOLOR property (to be a highlighted yellow).
Clearly I'm not understanding how SET/GOT/LOSTFOCUS work - can someone enlighten me?
What I've tried to do, within the custom container object class is
(1) use the .CLICK() method to execute THIS.SETFOCUS()
(2) within .GOTFOCUS, change the .BACKCOLOR property to be yellow, and do THIS.REFRESH().
(3) within .LOSTFOCUS, change the .BACKCOLOR property back to the default, and do THIS.REFRESH().
But ... this doesn't work. I've inserted SET STEP ON into each of the three methods. Of these, (1) genuinely happens. But if I try tracing the subsequent code, it looks as if .GOTFOCUS doesn't happen. And .LOSTFOCUS doesn't happen either.
I'm obviously doing something stupid here, and don't understand how these events fire. Can anybody point me towards a nice simple explanation?