[futurebasic] Re: [FB] Greyed items in a Dialog

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : May 1999 : Group Archive : Group : All Groups

From: Paul Bruneau <paul_bruneau@...>
Date: Tue, 18 May 1999 11:23:11 -0400
Thank you Chris, that is exactly what I was looking for. I am going to
file your examples in my "Important stuff I don't know where else to
get" folder. Or at least that is what I'm going to call the folder as
soon as we get 255 character file/folder names in MacOS.

Thanks again,

Paul

Chris.Young@... wrote:
> 
> Paul
> 
> You need to get the handle to the control in question (the OK button)
> using
> CALL GETDITEM(theDLOGPtr&,theItemNo,iType,iHandle&,itemRect)
> 
> and then grey it out using
> 
> CALL HILITECONTROL(iHandle&,255)
> 
> or bring it back via:
> 
> CALL HILITECONTROL(iHandle&,0)
> 
> If you want to toggle it, you can take a look at
> PEEK([iHandle&] + _contrlHilite), which will either be 255 (it is grey)
> o 0 (normal)
> 
> hth
> 
> Chris Young