Jump to content


Photo

Show mobile form in desktop mode


  • Please log in to reply
3 replies to this topic

#1 Bocchi

Bocchi

    Member

  • uniGUI Subscriber
  • PipPip
  • 29 posts

Posted 03 August 2015 - 10:23 AM

I'm trying to open a mobile form (TUnimForm) from another, in desktop mode, but I get this error;

Ext.Label is not a function

 O2A=new Ext.Container({id:"O2A_id",layout:"vbox",scrollable:false,fullscreen:true});O2A.nm="O2A";_cdo_("MainmForm");MainmForm.ajxS=AjaxSuccess;MainmForm.ajxF=AjaxFailure;O2A.rootObj=true;MainmForm.appRoot="/";_cdo_(null,O2A,"window",MainmForm); O32=new Ext.form.Panel({id:"O32_id",scrollable:false,layout:"vbox",width:1920,height:967});O32.nm="O32";_cdo_(null,O32,"form",MainmForm); O3A=new Ext.Toolbar({id:"O3A_id",title:"MainmForm",docked:"top",height:47});O3A.nm="O3A";_cdo_(null,O3A,"titlebar",MainmForm); O42=new Ext.Button({id:"O42_id",iconAlign:"right",iconAlign:"left",icon:"/unim-0.99.50.1187/images/close-form.png",ui:""});O42.nm="O42";_cdo_(null,O42,"closebutton",MainmForm); O46=new Ext.Label({id:"O46_id",cls:"x-unilabel",html:"\x3Ci\x3E\x3Cb\x3Ehttp://localhost:807...b\x3E\x3C/i\x3E will show this Form.",width:1920,height:23,left:0,top:0});O46.nm="O46";_cdo_("UnimLabel1",O46,null,MainmForm);O32.add(O46); O4A= (function(P0){return Ext.Ajax.request({url:"/HandleEvent",params:"Ajax=1&IsEvent=1&Obj=O42&Evt=tap&this="+P0.nm+""+_gv_(O32),success:AjaxSuccess,failure:AjaxFailure,obj:O42,e:"tap"});});O4A.nm="O4A";O42.on("tap",O4A);O3A.add(O42);O32.add(O3A);O2A.add(O32);Ext.Viewport.add(O2A);O2A.uniMask={ldMask:false,maskWaitData:false,maskUseMsg:true};O2A.uniMask.targetObj=null;O2A.show();

 

How can I solve this problem?

Thanks.


  • 0

#2 Farshad Mohajeri

Farshad Mohajeri

    Administrator

  • Administrators
  • 9666 posts

Posted 03 August 2015 - 07:14 PM

Mobile forms can only be shown in a mobile session.
  • 0

#3 skafy

skafy

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 153 posts

Posted 09 January 2017 - 01:17 PM

For me it works if I just add /m in address. So http://localhost:8077/m shows mobile form at PC and phone/tablet.


  • 0

#4 logisticasoft

logisticasoft

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 197 posts

Posted 22 February 2017 - 01:51 AM

Hello, create a form using delphi windows fmx the size of the cell phone, place a browser on the form and call the program from this mobile program, that will simulate the size of the cell phone


  • 0

Carlos Ramirez

ramirez.carlos@yahoo.com





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users