I'm creating a native control to display credits in iOS. As bg of the stack I have black and there is a button with an image as icon below. On top of this there is a graphic I use to specify the rect of the native control. I done some tests but it seemst to me that I can have the native filed transparent in the way you see the button below. iOS seems to ignore this statement: mobileControlSet "myControl", "opaque", "false"
Any idea?
Code: Select all
mobileControlCreate "multiline", "myControl"
mobileControlSet "myControl", "rect", the rect of graphic "creditsTextDisplay"
mobileControlSet "myControl", "text", field "creditsTextFiled" of cd "localizations" of stack "SV-Resources"
mobileControlSet "myControl", "visible", "true"
mobileControlSet "myControl", "editable", "false"
mobileControlSet "myControl", "textColor", "200,200,200"
mobileControlSet "myControl", "dataDetectorTypes", "link"
mobileControlSet "myControl", "textAlign", "center"
mobileControlSet "myControl", "autoCorrectionType", "false"
mobileControlSet "myControl", "scrollingEnabled", "true"
mobileControlSet "myControl", "opaque", "false"
if the platform is "iphone" then -- iOS
mobileControlSet "myControl", "borderStyle", "none"
mobileControlSet "myControl", "fontSize", "16"
else if the platform is "android" then -- ANDROID
mobileControlSet "myControl", "multiline", "true"
mobileControlSet "myControl", "fontSize", "5"
end if