Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder 2 Preview » View Thread |
Messages 11 to 16 of 16 total |
Tcheckbox not working on IOS |
Thu, May 14 2015 11:55 AM | Permanent Link |
Matthew Jones | Kane Jun wrote:
> How can i delete my own post? You cannot on this server. But I think it good that it is here, as it helps us all learn what to do, and what not to do. |
Thu, May 14 2015 2:18 PM | Permanent Link |
Raul Team Elevate | << Kane Jun wrote:
Please disregard all I did it for some reason but let me check my coding. Thank you for everything, evertbody. >> The touch events (i.e. Touch Start) only triggers on mobile so when running in windows desktop the browsers do not trigger it so there it worked ok since your code never ran. Raul |
Fri, May 15 2015 10:10 AM | Permanent Link |
Kane Jun EZ-Tech, Inc | Raul wrote:
<< Kane Jun wrote: Please disregard all I did it for some reason but let me check my coding. Thank you for everything, evertbody. >> The touch events (i.e. Touch Start) only triggers on mobile so when running in windows desktop the browsers do not trigger it so there it worked ok since your code never ran. Raul Hi Raul and everybody I worked around with following code and everything works fine. If I comment out whole procedure (as Metthew suggested), then android phone does not work . So added one line for iphone. var c:tcheckbox; c:=tcheckbox.create(self); c.caption:=a[i]; c.tag:=d; inc(d); c.font.color:=clblack; c.layout.position:=lptopleft; c.layout.consumption:=lcbottom; c.layout.reset:=true; c.parent:=orderdetailform.scrollpanel1; c.selectionstate:=ssunselected; c.margins.left:=20; c.width:=160; c.ontouchstart:=CheckBox1TouchStart(c,false,false,false,0,0); procedure Torderdetailform.CheckBox1TouchStart(Sender: TObject; ShiftKey, CtrlKey, AltKey: Boolean; X, Y: Integer); begin if application.isios then exit; //<===== I added this line if tcheckbox(sender).selectionstate=ssselected then tcheckbox(sender).selectionstate:=ssunselected else tcheckbox(sender).selectionstate:=ssselected; end; |
Fri, May 15 2015 11:33 AM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Kane,
<< I worked around with following code and everything works fine. >> Yes, but it's not a good solution. You should get rid of the OnTouchStart event handler altogether - you don't need it. The check box will work fine on Android/iOS without it. Tim Young Elevate Software www.elevatesoft.com |
Fri, May 15 2015 12:29 PM | Permanent Link |
Kane Jun EZ-Tech, Inc | "Tim Young [Elevate Software]" wrote:
Kane, << I worked around with following code and everything works fine. >> Yes, but it's not a good solution. You should get rid of the OnTouchStart event handler altogether - you don't need it. The check box will work fine on Android/iOS without it. Tim Young Elevate Software Tim Thanks I know it's a temporary solution. but this is the only way I know of that works. I will fix it when we have final release |
Fri, May 15 2015 1:23 PM | Permanent Link |
Raul Team Elevate | <<
Uli Becker wrote: Application.IsAndroid / Application.IsIOS defined in webui still work (actually they call "IsPlatformAndroid" / "IsPlatformIOS"). >> Thanks - did not notice those. However they are part of a class so unless i'm missing something obvious you cannot call them direct but have to got thru an instance of TInterfaceManager. Raul |
« Previous Page | Page 2 of 2 | |
Jump to Page: 1 2 |
This web page was last updated on Tuesday, September 17, 2024 at 04:19 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |