[Gambas-user] Custom control not appearing in toolbox

VonZorch VonZorch at ...626...
Wed May 7 23:58:08 CEST 2014


Thanks for the help.


On Tue, May 6, 2014 at 11:47 PM, B Bruen [via Gambas] <
ml-node+s8142n46355h33 at ...3046...> wrote:

> On Mon, 5 May 2014 21:13:25 -0700 (PDT)
> VonZorch <[hidden email]<http://user/SendEmail.jtp?type=node&node=46355&i=0>>
> wrote:
>
> > I developed a custom control.  I followed the instructions on the How to
> > Program Components In Gambas page.  It works correctly and can be
> selected
> > from the project properties dialog.  It can be created in code but I
> cannot
> > get it to appear on the IDE toolbox.   SpeedListBox.gz
> > <http://gambas.8142.n7.nabble.com/file/n46335/SpeedListBox.gz>   that
> link
> > should be the source archive and installer.
> > There are png icons files in the correct place using two variations of
> the
> > class name.
> > Can someone shed a little light on this problem?
>
> You cannot inherit UserControl as you are already inheriting Form.  See
> comp/source/gb.form ColorChooser (and FColorChooser) for a good example of
> how to use a form to design a custom control.
>
> Your control can use a form as you intend to "design" the control, but the
> actual exported control must either inherit from UserControl or
> UserContainer (or some other control) in order to work properly.
>
> hth
> --
> B Bruen <[hidden email]<http://user/SendEmail.jtp?type=node&node=46355&i=1>>
>
>
> ------------------------------------------------------------------------------
>
> Is your legacy SCM system holding you back? Join Perforce May 7 to find
> out:
> • 3 signs your SCM is hindering your productivity
> • Requirements for releasing software faster
> • Expert tips and advice for migrating your SCM now
> http://p.sf.net/sfu/perforce
> _______________________________________________
> Gambas-user mailing list
> [hidden email] <http://user/SendEmail.jtp?type=node&node=46355&i=2>
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://gambas.8142.n7.nabble.com/Custom-control-not-appearing-in-toolbox-tp46335p46355.html
>  To unsubscribe from Custom control not appearing in toolbox, click here<http://gambas.8142.n7.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=46335&code=Vm9uWm9yY2hAZ21haWwuY29tfDQ2MzM1fDM1MzU4ODczNA==>
> .
> NAML<http://gambas.8142.n7.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://gambas.8142.n7.nabble.com/Custom-control-not-appearing-in-toolbox-tp46335p46368.html
Sent from the gambas-user mailing list archive at Nabble.com.



More information about the User mailing list