[futurebasic] Re: [FB] List box appearance

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

From: Ken Shmidheiser <k.shmidheiser@...>
Date: Tue, 12 Mar 2002 11:25:53 -0500
Alain wrote:

>Ken,
>
>I'm not sure why you have removed from the original demo the part
>that tries to deal with a possible ldes resource. For the handling
>of double clic, I would suggest a raw event handler, perhaps like so:

---- snip -----

Alain,

Thanks for the great double-click example!

I have a feeling Carbon is going to be presenting us with more 
event-handling stuff than we have been used to.

My apologies for mutilating the earlier code.

Robert Purves' post came through on the Associate web site with all 
the constant underscores missing. In my hurry to get the demo to work 
before I left for the office, I commented out the resource stuff to 
avoid having to track down a few missing underscores. Seeing your 
code, I realized with one more function and the global handle, I 
could get the demo to do something as Hans had requested.

Since I was more interested in building the list box on the fly, I 
failed to uncomment the resource code and fix the missing underscores.

The problem with _"ldes" resources, particularly for beginners, is 
that you need an obscure ResEdit template, or the $256.00 Resorcerer 
to build them.

BTW, in your double-click example in  fn GetCellInfo$ I think you 
need to dim cellFound as boolean to get it working.

As penance for my petulance,  the impossible-to-find ResEdit _"ldes" 
template and a sample _"ldes" resource is binhexed below. The two 
need to be kept together to allow the _"ldes" resource to be edited, 
otherwise all you''ll see is hex code.

Basta, you know me!

Ken


(This file must be converted with BinHex 4.0)
:&%aTFh4#EhK8C@e`E'&dC5jbFh*M!(*cFQ058d9%!3!!!!!!!!!#5NGk!!!!!!%
!!!!"r`!!!2m!!!"F!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!-6'P
cG%*[H#jbFh*M)'C[E'4PFQjZC@0dEQ&bH5!JCJ!!FR0bBe*6483"!!!!!)%!!!!
!!!!!!!!!!!!!!!!!!!#h)-Gh!!!!!!!!!Zm!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!%J!!!!!!!3!!!!!"!!!!!!!"!!!!!'F(9Q9bFfP[EN4
A8N316R9YBQ9b)'pQ)(4KBR023dj8"5SU+LSU6&083`G*BfpZ)%P%4&G54!K8B@)
J6Q&YC9"69&)*8Q9cCA*fC@3a4PG54!P5CA0PFRCPC$*'6%j("#SU+LT-8e4&!!!
!HJG@CA*cD@pZ4&G54!45EhGc4&G54!G$EfaeE@jc4&G54!Y$C@aX)%KPD@GSG%4
A8N3+3f9XE#"AD@4dD%4A8N3,9Q9bG#"6Bh*[E'a#6dp-$%K[FQPk)&0MFQpXE%*
26d`(6%4&4L"*4%4A8N3)5'&c)%GbEhG#6dp-!!!"!!!!!Im!!!$r!!!!A#%$#KJ
$5J!!!"`!8J!"E'4PF`!!!"*869"-!!%!(J(drrm!!!!!!!!!!!#!!!!!!!!@!!!
!!!#"!!8!T)%: