[futurebasic] RE: [FB] List box

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

From: Ken Shmidheiser <kshmidheiser@...>
Date: Wed, 26 Jul 2000 20:48:25 -0400
Steve asked:

>I am trying to make a list box using control #353. I created an "ldes"
>resource using a TMPL resource in ResEdit and can draw the control ok. I
>then created a record containing list elements with a pointer to it and then
>referenced the pointer in FN SETCONTROLDATA. However, this does not put the
>list elements in the control (see FB^3 code and binHex of resource below).
>Any help would be greatly appreciated.

---Code snipped----

I hope someone smarter than me can help Steve get this working. I've 
spent about a half hour with the code and am stumped. I am wondering 
if we may need to implement a CNTL resource to handle the ldes 
resource similar to the way a CNTL resource is needed to handle an 
Appearance Manager compliant popup MENU resource?

 From what I understand, we should be getting some more Appearance 
Manager stuff in the next FB^3 release. Maybe that will help us 
address some of the questions. Ease in making list boxes is one area 
where RealBASIC excels-- I hate them to be ahead of us!

Steve, could you give us some idea of how you created the ldes resource code?

BTW, I was unable to extract Steve's BinHexed resource with Stuffit, 
but DeHQX worked just fine to create the lBox.rsrc.

The example should go in Joe's book if we can get it to work. The 
code is clean and simple and the hard work-- making the resource-- is 
done for us.

Ken