B4A Library FancyButton V1.0.3

tdocs2

Well-Known Member
Licensed User
Longtime User
have you tried it without obfuscation? Just a thought and dont know whether this is relevant.

The method you are calling (maybe initialize?) needs 3 parameters but you are giving 5 parameters.

Thank you, Don.

The error I posted was with Lib 1.0.

The method Initialize according to the xml requires 5 parameters with Lib 1.0.3 and 3 parameters with 1.0.

B4X:
FancyBtn.xml - version 1.03

FancyBtn : Process object - wraps com.div.FancyButton

Initialize

Method

Returns : Void

Initialize(EventName As String, iconres As String, IconPosition As Int, tag As Object, AllowDismiss As Boolean)

B4X:
FancyBtn.xml - version 1.0

FancyBtn : Process object - wraps com.div.FancyButton

Initialize

Method

Returns : Void

Initialize(EventName As String, iconres As String, IconPosition As Int)
I downloaded the sample app you provided on a different computer with 1.0.3 and it works just fine.

Thank you, Don. Your generosity and willingness to help is to be commended.

Sandy
 

Gary Milne

Active Member
Licensed User
Longtime User
Hi Don, I like what you are doing here but I wish some of this stuff were more built in. (Feels like I spend way too much time working on overcoming the limits of the built in views).

Anyway, I have been playing with FontAwesome as a way of dressing up buttons when I came across your FancyButtons. I wanted to give it a try so I changed a button on my project as shown below.



It looks not too bad but I find the spacing between the Icon and the text to be a bit "off". It seems as though the icon is gravity.left and the text is gravity right leaving an oversized space between them. This gap does not seem to be present on any of your examples but there do not seem to be any controls to change this.

P.S. It would be nice to be able to specify the use of BOLD\ITALIC for the text as I'm sure many developers already use this as a visual aid for the user.
 

Lello1964

Well-Known Member
Licensed User
Longtime User
Hi Don, i must use button without text, but if i set .text="", text space isn't used bye icon.
How can put icon in middle center of button without text ?
 

Mashiane

Expert
Licensed User
Longtime User
H
Hi

Can you make an oval button with this with the image centered inside? I'm looking for one without text, just the image only
 

DonManfred

Expert
Licensed User
Longtime User
You just can use the radius and no text. See example-screenshot in post #1
but this will not result in an oval... Only a rectangle with rounded corners. Or even a circle

The library does not support any special layouts as it is based on a button
 

R Rioja

Member
Licensed User
Longtime User
Don,
Most of the properties as write-only. Is it possible to make them read/write? I also noticed that there is no property for height.
Thank you,
Robert
 

R Rioja

Member
Licensed User
Longtime User
The sample program will not work on Android version 2.3.4 but is works with Android 4.4.2, so my question is what is the minimum version required?
Thanks,
Robert
 

EduardoElias

Well-Known Member
Licensed User
Longtime User
Don.... do you have plans to update this library? they made many changes to it... thanks
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…