Scalable icons on buttons

197 views
Skip to first unread message

Paul Bowers

unread,
Jun 7, 2024, 4:51:13 PM6/7/24
to Sailforms Users
We probably knows that we can put emoji on buttons 
as well as text, but the issue is if you scale the button 
the icon doesn't scale and remains small. 

Is there a solution. Well yes there is. Create your form 
 with all your buttons, size and place then etc, put your 
code behind. The last thing to do is create a scalable 
Label with your emoji icon. These scale correctly. 
Placed then on top of the button. The button underneath
Still functions.

The labels need to be created last as sailform zorder process 
Renders buttons first and labels last.
SmartSelect_20240607_212110_Pro.jpg

radomir cubel

unread,
Aug 23, 2024, 5:41:44 AM8/23/24
to Sailforms Users
Hi Paul.
Your solution is interesting. Thank you for sharing it with us.
I tried it on.
Unfortunately, this method works on some versions of android:
My experience: 
- android 5.1.1 and 4.4 does not work - the label is under the button or field;
- android 9 works (the label is above the button)!

Radomir

Gwyn Richards

unread,
Aug 23, 2024, 6:25:26 AM8/23/24
to Sailforms Users
Hi 
It seems it's hit or miss on the order of construction SmartSelect_20240815_105819_Pro.jpg
These were all constructed button first emoji last. I eventually got them right by dragging them off position and repositioning them. And I found that if it is the last field on the form it does not work at all, ( the same as Lost Focus does not work in the last field) I had to create a dummy field and then remove it. I was getting so frustrated that I decided to  import a form I had successfully constructed some years ago and remove unwanted fields, just using the remaining keypad layout, after doing so, the remaining  keypad layout went haywire. 
Some years ago I asked Chris if we could have Bring forward - Push back commands to do this very thing, but it never materialised. 
Gwyn 

Gwyn Richards

unread,
Aug 23, 2024, 6:31:22 AM8/23/24
to Sailforms Users
P.S.
I did eventually complete it.

SmartSelect_20240823_113026_Pro.jpg
Reply all
Reply to author
Forward
0 new messages