[Gambas-devel] component creation

Benoit Minisini gambas at ...1...
Mon Apr 25 14:35:02 CEST 2005


On Sunday 24 April 2005 11:55, Daniel Campos wrote:
> Frank Berg escribió:
> > hi,
> >
> > if i create an component
> > and the component create an new form with button(s),
> > the button event must declared public, so in the main application the
> > name of the public event is shown,
> >
> > i find this is not so pretty. better is to hide the sub or function
> > name of events (if i want it)
> >
> > maybe an extra keyword is possible, such at
> >
> > public hide sub button1_Click()
> > public shroud sub button1_Click()   (my translator gif me that word :-)
> >
> > frank
>
> I had a similar problem with the xml.rpc component. I think It should be:
>
> NOEXPORT PUBLIC SUB button1_Click()
>
> This problem will very usual when writting classes derived from "Control".
>
> Benoît, we are more people now :-)))) please add this change....
>
> Regards,
>
> D. Campos
>

This is not a problem of the number of people that need it... It is a problem 
in the design of the interpreter that only support PUBLIC or PRIVATE, and 
that need the event handlers to be PUBLIC - Which is logical in one way...

But the IDE can hide all public methods with an underscore in it. Do you think 
it is a solution ?

Regards,

-- 
Benoit Minisini
mailto:gambas at ...1...




More information about the Devel mailing list