Gadgets

Just starting out? Need help? Post your questions and find answers here.
Charlied
New User
New User
Posts: 5
Joined: Fri Jun 26, 2009 10:39 am
Location: UK

Gadgets

Post 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.
User_Russian
Addict
Addict
Posts: 1580
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

Re: Gadgets

Post by User_Russian »

There is an example of creating a gadget in the distribution program TailBite
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Re: Gadgets

Post by Trond »

What kind of gadget do you need?
Charlied
New User
New User
Posts: 5
Joined: Fri Jun 26, 2009 10:39 am
Location: UK

Re: Gadgets

Post 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.
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Re: Gadgets

Post 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.
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Re: Gadgets

Post 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! :mrgreen:

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!!! :D
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
Charlied
New User
New User
Posts: 5
Joined: Fri Jun 26, 2009 10:39 am
Location: UK

Re: Gadgets

Post 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! :mrgreen:


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.
Num3
PureBasic Expert
PureBasic Expert
Posts: 2812
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Re: Gadgets

Post by Num3 »

Post Reply