Download the free trial version
Additional Libraries Users contributed libraries.
This sub-forum is only available to licensed users.
fgGradientButtons (Buttons with Gradient-Color)
10-10-2009, 02:14 PM
Basic4ppc Expert
Join Date: May 2007
Location: Schwäb. Gmünd, Germany
Posts: 977
Awards Showcase
fgGradientButtons (Buttons with Gradient-Color)
Hi,
here is my new library. With this library you can create a button with a gradient and rounded corners.
The desktop version is just a dummy library, it generates only normal buttons with no gradient.
.NET Compact Framework 2.0 or higher is required.
The zip file also includes a examples and a Help-File.
Version 1.002 ;
Property "WithPressedEffect" with Shadow effect.
Button with AutoScale
Version 1.004 ;
The desktop version is no longer a dummy library.
Fixed errors on Shadow effect
Version 1.005 ;
I changed the order of parameters in the method new2 :
from ...left,top,height,width,.. to ...left,top,width,height,..
Version 1.006 ;
2 new Property and 1 new method added:
DockStyle
AnchorStyles
AddContextMenu
Version 1.007 ;
Property ControlRef added:
errors corrected in the Anchor property
Version 1.008 ;
Property ImageMode added: cCenterImage, cStretchImage, cNormalImage
Property TextAlignment added: alLeft, alCenter, alRight
Version 1.009 ;
B4P-Autoscale added
Property WithShadows added
Property WithPressedEffect changed: 1.Clik=Button pressed, 2.Clik= Button released
Events added: ButtonPressed, ButtonReleased
Ciao,
Filippo
Attached Images
Attached Files
__________________
PPC: MDA Pro, 2GB SD
Device: HTC Desire , Android 2.2
______________________
Last edited by Filippo : 08-22-2010 at 01:58 PM .
Reason: Update
10-10-2009, 02:47 PM
Senior Member
Join Date: Nov 2008
Location: Greenville, South Carolina
Posts: 166
Very useful library!
Personally I like to design my own buttons with
Paint.NET , but this is a terrific idea.
I'm sure it will come in handy
JOOC; Why is this library not available for desktop?
__________________
Codito, ergo sum
"I code, therefore I am"
Last edited by ExcludeReality : 10-10-2009 at 02:50 PM .
10-10-2009, 02:49 PM
Administrator
Great work. Thanks
10-10-2009, 03:30 PM
Basic4ppc Expert
Filippo
A very nice and usefull library, Thank you.
Can you please add a short description (instead of us playing with the example until all is clear ?).
Edit: I can see all through the menu !
__________________
David Erez
Ramat Hasharon, Israel
Last edited by derez : 10-10-2009 at 03:52 PM .
10-11-2009, 12:38 PM
Basic4ppc Expert
Join Date: May 2007
Location: Schwäb. Gmünd, Germany
Posts: 977
Awards Showcase
Hi derez,
a short Help-File is included.
@ExcludeReality
Quote:
JOOC; Why is this library not available for desktop?
I do not knows why but it will not just work.
But I don't care about. It's important for me that it works on the pocketpc.
Ciao,
Filippo
__________________
PPC: MDA Pro, 2GB SD
Device: HTC Desire , Android 2.2
______________________
11-07-2009, 02:23 PM
Basic4ppc Expert
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,344
Awards Showcase
Hi filippo,
I am porting some of my code into a dll, hoping that doing so will make it work faster and smoother.. It uses 1 of your FgGradiantButtons, and I would like to keep them..So I ask if you could share the .cs file, for merging, and if I can have your permition to merge it into my dll, with given credits.
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)
My Posts helped you? Consider Buying me a Porto Glass!
11-07-2009, 03:18 PM
Basic4ppc Expert
Quote:
Originally Posted by
Filippo
I do not knows why but it will not just work.
It needs visual styles enabling for the application on the desktop but the gradient still doesn't show
.
Code:
obj1.New1( False ) obj1.CreateNew( " System.Windows.Forms.Application " & obj1.System_Windows_Forms) obj1.RunMethod( " EnableVisualStyles " ) obj1.SetProperty( " VisualStyleState " , " ClientAndNonClientAreasEnabled " )
EDIT:- Forget visual styles, I was wrongly assuming it was an override of a standard Button. After poking around a bit I see that the desktop library does not actually try to implement the gradient filled button but is just an ordinary one. Filippo must have found some difficulty in getting the code to work on the desktop
.
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Last edited by agraham : 11-07-2009 at 03:33 PM .
11-07-2009, 05:21 PM
Basic4ppc Expert
Join Date: May 2007
Location: Schwäb. Gmünd, Germany
Posts: 977
Awards Showcase
Hi Cableguy,
my DLL is written in vb.net, so there is none. cs-file.
@agraham
Quote:
Filippo must have found some difficulty in getting the code to work on the desktop .
__________________
PPC: MDA Pro, 2GB SD
Device: HTC Desire , Android 2.2
______________________
11-07-2009, 05:36 PM
Basic4ppc Expert
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,344
Awards Showcase
Could you please share the source so that we/I can try to port to c#?
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)
My Posts helped you? Consider Buying me a Porto Glass!
11-09-2009, 05:44 PM
Basic4ppc Expert
Join Date: May 2007
Location: Schwäb. Gmünd, Germany
Posts: 977
Awards Showcase
Hi,
i have updated my library, Version 1.002.
__________________
PPC: MDA Pro, 2GB SD
Device: HTC Desire , Android 2.2
______________________
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools
Display Modes
Linear Mode
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
All times are GMT. The time now is 07:01 AM .