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

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

From: "Pete" <furbies@...>
Date: Wed, 19 May 1999 00:18:41 +1000
> Hi everyone!
> 
> I am making an import dialog box, and I'd like to disable the OK button
> until the user has put stuff into the box that makes sense.
>
> Actually, the default stuff will make sense, but I want to disable the
> OK button if the user puts something stupid in there (like trying to
> import thingy #5 from a file that has only 4 thingies. You get the
> point), and then re-enable the OK button after they delete the stupid
> stuff and put back in the thoughtful, intelligent stuff.
>
> I'm sure this is a common thing, but suddenly I can't find any
> documentation or code examples in my FB books to do it.
>
> I even looked twice and indeed, I was again stricken with the lack of info.
>
> Can anyone point me in the right direction? I'm not afraid of the
> toolbox, and looked in that part of the Handbook as well to no avail.
>
> Thanks,

Sounds like you need to write an ENTERPROC and and have SFPGETFILE call it
to filter keystrokes and control dialog buttons based on what the user has
entered...

hth

Pete...