Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Code Samples & Tips > Additional Libraries
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Additional Libraries Users contributed libraries.
This sub-forum is only available to licensed users.

SpecialButtons Library

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-10-2010, 03:45 PM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 978
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default SpecialButtons Library

Here is a collection of special buttons, some new and some modified.
These are:
1. Circle button - new
2. Ellipse button - new
3. Poligon button - new
4. Rectangle button - new
5. Slide button - existing
6. State button - upgraded

The circle and ellipse buttons came out quite ugly so I added a constructor to eliminate the surrounding line.

The library works for desktop and device and tested on qvga and vga with autoscale compilation.

The package includes dll, cs file, demo program and help file.

Edit: ver. 1.1 includes transparency over images.
ver. 1.2 improves transparency, upgrades SlideButtonb to have graphics like RectangleButton, correct errors.
1.2A - added the forgottemn methods to change colors.
ver 1.3 - FillColor removed from New2
ver 1.4 - SetSliderWidth method added to SlideButton.
ver 1.5 - rounded corners are now set by int - 0 no rounding, 1- slightly, 2- cut.
- A converter program to convert regular buttons to RectangleButtons.
ver 1.61 - enables vertical text on Ellipse, Rectangle and State Buttons, see form4 picture here.

Edit: ver 1.7 corrected mulfunction of mousedown and mouseup events.

Enjoy
Attached Images
File Type: jpg sb.jpg (73.9 KB, 161 views)
Attached Files
File Type: sbp converter.sbp (1.8 KB, 103 views)
File Type: zip SpecialButtons_1.7.zip (28.1 KB, 4 views)
__________________
David Erez
Ramat Hasharon, Israel

Last edited by derez : 05-19-2012 at 07:33 PM.
Reply With Quote
  #2 (permalink)  
Old 08-11-2010, 01:49 AM
Newbie
 
Join Date: Oct 2007
Location: Melbourne, Australia
Posts: 5
Default

Very nice. Another great library!!!! And useful too.
Reply With Quote
  #3 (permalink)  
Old 08-11-2010, 04:09 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,689
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Looks great. Thank you for sharing
Reply With Quote
  #4 (permalink)  
Old 08-11-2010, 12:38 PM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 978
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default Transparency over images

following a tip from Erel I updated the library so the rectangle holding the button is transparent if an image is set as background of a form.
__________________
David Erez
Ramat Hasharon, Israel
Reply With Quote
  #5 (permalink)  
Old 08-12-2010, 08:55 PM
tremara1's Avatar
Senior Member
 
Join Date: Oct 2008
Location: Ballarat Victoria Australia
Posts: 175
Default array problem

Hi guys, I have been away for a while and have been getting back into it. This library looks cool and I am keen to try it on my new HTC Touch but I must have missed something in the update to 6.90 as my current ver 6.8 is not handling the dim of the array for poligon. If I comment out the 'as integer' it does not crash (cannot be null value) but the array is not working in the creation of the poligon button. I have probably missed something simple...DOH!!

ps. I will be excited to get my hands on a b4ppc for android....thanks

Trevor
Ballarat Victoria Australia
Reply With Quote
  #6 (permalink)  
Old 08-12-2010, 09:18 PM
tremara1's Avatar
Senior Member
 
Join Date: Oct 2008
Location: Ballarat Victoria Australia
Posts: 175
Default I see now

I just had a look at the 6.9 'essentials' and see that dim of variables has changed.....update coming soon...thanks
Trevor Smith
Ballarat Victoria Australia
Reply With Quote
  #7 (permalink)  
Old 08-15-2010, 03:01 PM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 978
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default Ver 1.2

Version 1.2 is now loadable at the first post.
I corrected few errors, changed the SlideButton to have graphics like the RectangleButton and improved the transparency of Rectangle, Slide & State Buttons over images.

Please report problems if you see any, I'm sure there are still some.
__________________
David Erez
Ramat Hasharon, Israel
Reply With Quote
  #8 (permalink)  
Old 08-16-2010, 02:52 AM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 978
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

Ver 1.3 is updated.
I removed FillColor from New2, FillColor and EndColor are united.
__________________
David Erez
Ramat Hasharon, Israel
Reply With Quote
  #9 (permalink)  
Old 08-17-2010, 06:25 PM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 978
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

ver 1.4 - SetSliderWidth method added to SlideButton.
__________________
David Erez
Ramat Hasharon, Israel
Reply With Quote
  #10 (permalink)  
Old 08-18-2010, 08:26 AM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 978
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

Ver 1.5 - two levels of rounded corners - 1 is new, 2 is as before. 0 for not rounded at all.

I think it is a stable version and I won't change it unless I hear comments or requests.
Attached Images
File Type: jpg Rounded 1.jpg (33.8 KB, 66 views)
__________________
David Erez
Ramat Hasharon, Israel

Last edited by derez : 08-18-2010 at 09:47 AM.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Door library (Beta) - Special library Erel Official Updates 60 01-13-2011 11:23 AM
Merging Outlook library and Phone library Erel Official Updates 11 09-15-2010 09:22 AM
PhoneticAlgorithms Library (ex-StringComparison Library) moster67 Additional Libraries 10 11-11-2008 07:46 PM


All times are GMT. The time now is 07:20 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0