[futurebasic] FBII Runtime Mod to prevent button double refresh? **Seeking peer/developer review**

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : August 2000 : Group Archive : Group : All Groups

From: Paul Bruneau <paul_bruneau@...>
Date: Mon, 14 Aug 2000 09:09:33 -0400
Hi-

I had posted this as part of a thread where my buttons were getting
refreshed twice. I wasn't refreshing them, of course, I let the runtime
do that. So on Joe's advice I took a look at the runtime and found a
place that seems to take care of button refreshing.

Here is line 1313-1320 (approximately) of release 3 runtime:

WHILE CtrlHndl&
long if ActFlag=255 or (CtrlHndl&..contrlRFCon& and 0x8000)=0
HiliteControl(CtrlHndl&, ActFlag)
FN FBFrameButton(CtrlHndl&)
end if
CtrlHndl& = [[CtrlHndl&] + _NextControl]
WEND

If I comment out this line:

HiliteControl(CtrlHndl&, ActFlag)

then my buttons no longer double-refresh (or flash). They seem to
perform perfectly after that line is commented out.

I thought I would get a flurry of opinion about if commenting out that
line was a good thing or not, but I haven't heard.

I have been running with that line commented out since, and haven't had
any trouble, but my stomach hurts when I modify the runtime, so I'm
wondering if people who know could look at this modification and tell me
if it's good or bad or what.

Thanks,

Paul