[futurebasic] Re: [FB] Appearance Button Clicks

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : November 2002 : Group Archive : Group : All Groups

From: Joe Lewis Wilkins <PepeToo@...>
Date: Thu, 14 Nov 2002 22:03:31 -0800
I had a lot of trouble solving the embedded issue, so I copped out and 
switched from using a Picture Field that used a Pict Resource and that 
covered the entire window, to merely painting the Resource onto the 
window. Then all of my buttons worked perfectly.  Of course I  had to 
handle the refreshing of the pictures myself then, but the embedding was 
a tough issue that I failed to adequately confront. The following are 
the functions that Alain offered me:

def fn EmbedButtonInPictureField( btnID&, pfID& ) = ¬
fn EmbedControl( button&( btnID& ), ¬
fn FindPictField( pfID&, window(_wndRef) ))

def fn EmbedPictureFieldInButton( pfID&, btnID& ) = ¬
fn EmbedControl( fn FindPictField( pfID&, window(_wndRef)), ¬
button&( btnID& ) )

def fn EmbedPictureFieldInPictureField( pfChildID&, pfParentID& ) = ¬
fn EmbedControl( fn FindPictField( pfChildID&, window(_wndRef) ), ¬
fn FindPictField( pfParentID&, window(_wndRef) ) )

As I later discovered, the FindPictField FN is  already available, just 
call it.

HTH, and if you get them to work I'd like  to know what you do.

Joe Wilkins

gnome wrote:

>
> Le jeudi 14 novembre 2002, à 06:19 , Ian Mann a écrit :
>
>> My problem is that I can't get a click. The UserPane seems to smother 
>> them.
>
>
> this looks like another 'embedding' problem.
> check out DEF EMBEDnnnn [i can't remember the exact statement]
> in the manual, or refer to a previous reply on this list
> to Joe Wilkins about 2 weeks ago.
>
> :-j