Page 1 of 1
Gadgets
Posted: Tue Jun 08, 2010 4:53 pm
by Charlied
Still a newbie
Is there a library or repository for additional gadgets other than those that come with the compiler?
Is there any information on how to create ones own gadgets (suitable for a newbie)?
Any help or pointer to help would be appreciated.
Re: Gadgets
Posted: Tue Jun 08, 2010 6:07 pm
by User_Russian
There is an example of creating a gadget in the distribution program TailBite
Re: Gadgets
Posted: Tue Jun 08, 2010 6:11 pm
by Trond
What kind of gadget do you need?
Re: Gadgets
Posted: Wed Jun 09, 2010 11:01 am
by Charlied
Thank you for your replies.
What sort of gadgets?
Well sort of "industrial types"
Meters like a car speedometer, Moving coil voltmeter, Digital voltmeter (7 segment), Large push buttons, Toggle switch, Circular slider with digital readout (multi turn and single turn) for example. I have seen these as around as controls for VB.
Re: Gadgets
Posted: Wed Jun 09, 2010 11:21 am
by Trond
I don't think anything like that exists for PB. Maybe the best option is to use an image gadget and draw your gadget on it. Or ImageButtonGadgets for buttons.
Re: Gadgets
Posted: Wed Jun 09, 2010 4:16 pm
by Rook Zimbabwe
Custom Controls:
http://www.vb-helper.com/ccl.htm
I suppose if compiled correctly you could use them anywhere!
http://msdn.microsoft.com/en-us/library ... S.80).aspx
If you want to see an example of owner draw custom control look for SRod's clock!
That could be adapted to be a speedometer with a little resource!
As far as togglebuttons image buttons that change the image depending on their state. This can be as easy or as hard as you want to code it! I use custom images alone because the imagebutton does NOT support msking in < PB 4.5 !!!
Perhaps it will... I see a new rounded rectangle in 4.5 that I mean to play with as soon as I finish reworking the Menu Editor annd Manager programs for my POS software... next week... really!!!

Re: Gadgets
Posted: Wed Jun 09, 2010 6:10 pm
by Charlied
Try as I might I can not find :
If you want to see an example of owner draw custom control look for SRod's clock!
Perhaps you could give me a clue!
BTW I was in the POS terminal business for 5 years (UK subsidiary for a Taiwanese outfit) so I would like to see your software - just for interest.
Re: Gadgets
Posted: Wed Jun 09, 2010 7:33 pm
by Num3