[Gambas-user] Tutorial on building a "user control"?

Fabien Bodard gambas.fr at ...626...
Thu Oct 18 14:52:27 CEST 2012


2012/10/17 Gerry Douglas <geraldpdouglas at ...626...>:
> Dear Fabien,
>
> Thank you for your advice.  I have looked at the code for those user
> controls, and I believe I understand the syntax for creating a user
> control.  However, I am not clear on how in the IDE to actually do this.
> For example, I want to create a control that has on it a grid and a
> scrollbar.  Do I start with a container in the IDE and add those controls,
> than add my logic and somehow save as a user control so it will appear on
> the toolbar in the IDE?
>
> Sorry I am not quick to pickup on this.  Once I get a simple example
> working I will be fine.
>
> Regards,
> Gerry.
>
> On Tue, Oct 16, 2012 at 2:29 PM, Fabien Bodard <gambas.fr at ...626...> wrote:
>
>> 2012/10/16 Benoît Minisini <gambas at ...1...>:
>> > Le 16/10/2012 19:01, Gerry Douglas a écrit :
>> >> Hi,
>> >>
>> >> I have built a number of healthcare applications in VB targeted for
>> >> touchcreen.  To get an idea take a look at ...
>> >>
>> >> http://www.youtube.com/watch?v=cf49zRxhKhc
>> >>
>> >> My first challenge was that the scroll bars on the listbox could not be
>> >> made larger, so it was very hard to use one's finger on the
>> touchscreen.  I
>> >> got around this by creating a user control for a "Touchscreen Listbox"
>> with
>> >> large scroll bars.  Once I figured out how user controls worked in VB I
>> >> made many more, like a diagnosis picker, medication picker, etc.
>> >>
>> >> I would like to learn how to build a user control in Gambas. Could
>> anyone
>> >> point me to a tutorial?
>> >>
>> >> Regards,
>> >> Gerry.
>> >
>> > All controls from gb.form component are user controls made in Gambas.
>> > You can look at the gb.form source code.
>> >
>> > --
>> > Benoît Minisini
>> >
>> >
>> ------------------------------------------------------------------------------
>> > Don't let slow site performance ruin your business. Deploy New Relic APM
>> > Deploy New Relic app performance management and know exactly
>> > what is happening inside your Ruby, Python, PHP, Java, and .NET app
>> > Try New Relic at no cost today and get our sweet Data Nerd shirt too!
>> > http://p.sf.net/sfu/newrelic-dev2dev
>> > _______________________________________________
>> > Gambas-user mailing list
>> > Gambas-user at lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>> Building control in gambas is a dream :-)... you will see
>>
>> i think for your project a user form with a gridview and a scrollbar
>> will do the job... but ... all can be done :-) see iconview or grid
>> view for most advanced usercontrol or the filechooser or dir chooser
>> for assembly (composed) control
>>
>> --
>> Fabien Bodard
>>
>>
>> ------------------------------------------------------------------------------
>> Don't let slow site performance ruin your business. Deploy New Relic APM
>> Deploy New Relic app performance management and know exactly
>> what is happening inside your Ruby, Python, PHP, Java, and .NET app
>> Try New Relic at no cost today and get our sweet Data Nerd shirt too!
>> http://p.sf.net/sfu/newrelic-dev2dev
>> _______________________________________________
>> Gambas-user mailing list
>> Gambas-user at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_sfd2d_oct
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user

a short example

-- 
Fabien Bodard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: demo-0.0.1.tar.gz
Type: application/x-gzip
Size: 5248 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20121018/a0a154b8/attachment.bin>


More information about the User mailing list