M Mohamed Akbarally Member Licensed User Longtime User Sep 27, 2014 #1 Dim lf As Int = 0 Dim tp As Int = 100 Activity.AddView(Button(i,j),lf,tp,12.5,12.5) I want lf and tp to be a percentage
Dim lf As Int = 0 Dim tp As Int = 100 Activity.AddView(Button(i,j),lf,tp,12.5,12.5) I want lf and tp to be a percentage
Erel B4X founder Staff member Licensed User Longtime User Sep 28, 2014 #3 It is better to use: B4X: Activity.AddView(Button(i,j),PerXToCurrent(lf),PerYToCurrent(tp),12.5,12.5) 1%x returns an Int so it is less accurate. Upvote 0
It is better to use: B4X: Activity.AddView(Button(i,j),PerXToCurrent(lf),PerYToCurrent(tp),12.5,12.5) 1%x returns an Int so it is less accurate.