[Gambas-user] MyFirstComponent Attempt

richard terry rterry at ...1822...
Tue Jan 29 22:16:47 CET 2008


On Wed, 30 Jan 2008 04:07:03 am Benoit Minisini wrote:
> On mardi 29 janvier 2008, richard terry wrote:
> > Seem's I'm going to have to have a go at bulding a component, so wondered
> > if anyone had a blow by blow description/guide to do something which is
> > probably way beyond my novice capabilities.
> >
> > Thanks in anticipation.
> >
> > Richard
>
> I never had the time to write a guide. Yet another thing to be done... But
> you can look in the 'comp/src' directory of the source tree, you will find
> all Gambas components written in Gambas. They should worth the reading!

> Regards,

Will look at that tonight, in the meantime I used an example I found to try 
and build a component. What I ultimately want to do is to replicate my vb 
popup phrasewheel (textbox with listbox attatched) which auto-suggests 
completions, which I used extensively through my work in the mid 1990's, and 
which Karsten and Ian Haywood developed extensively in gnuMed over the last 
couple of years.

I enclose some code as a stuttering example with a question.

When I put this component in another project, and put it on a form which can 
resize, the component misbehaves badly. IE unlike a combo box where the list 
drops down, appearing over the top of any controls underneath it,  this one, 
when stacked in a vertical row of similar components, on say a vertical box, 
behaves by pushing the otherse below it out of the way.

Wonder if someone could run it and comment. + head me in the right direction 
re the basic design.

Thanks

Ricard



-------------- next part --------------
A non-text attachment was scrubbed...
Name: myfirstcomponent-0.0.14.tar.gz
Type: application/x-tgz
Size: 11399 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20080130/9c239c7f/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: comptest-0.0.1.tar.gz
Type: application/x-tgz
Size: 7553 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20080130/9c239c7f/attachment-0001.bin>


More information about the User mailing list