[futurebasic] Re: [FB] Container Contents to EUTC

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : July 2009 : Group Archive : Group : All Groups

From: Bernie <fblist.bw@...>
Date: Thu, 16 Jul 2009 10:41:01 +0100
Ken wrote:

> I have a valid container (I can print the contents-- 707 lines-- to  
> a window). But when I try to put the contents into a EUTC, the code  
> consistently crashes in FB 5.3b4.
>
> // Here is how I am trying to load the container into the control
> dim as Pointer p
> dim as Long   size
> p = [[@gC]]
> size = fn GetPtrSize( p )
> long if ( p )
> err = fn SetControlData( button&( _fontsEF ), _kControlEditTextPart,  
> _kControlEditTextTextTag, size, #p )
> end if
>


Doesn't answer your question but a workaround is to replace above  
seven lines of code with:

edit$( _fontsEF ) = #gC

Bernie