[futurebasic] Invisible Buttons

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : January 1998 : Group Archive : Group : All Groups

From: "Yates, Phil" <YATESP@...>
Date: Mon, 26 Jan 98 09:11:00 PST
Jeff Schwartz wrote :

> Does anybody have any suggestions on how to add 'invisible buttons' that 
> stay invisible?

Yes, this is easy. Just define a bunch of rectangles that equate to your 
buttons. So you dimension with :

DIM RectT,RectL,RectB,RectR
DIM MouseY,MouseX (in this order !!)

Then, when you get a mouse click, scan all the rectangles with :
Test = FN PTINRECT(MouseY,RectT)
If the Test is true, they've clicked in your (invisible) button. This also 
works well in the non-active window, and I use it to create buttons in 
palettes.

HTH,

PMY