Mobile UI can be showed in a window?

Just starting out? Need help? Post your questions and find answers here.
User avatar
Caronte3D
Posts: 189
Joined: Sat Nov 23, 2019 5:21 pm
Location: Some Universe

Mobile UI can be showed in a window?

Post by Caronte3D »

I want to use MobileUI, but not at fullscreen. It's possible?
User avatar
Peter
Posts: 1197
Joined: Mon Feb 24, 2014 10:17 pm
Location: 127.0.0.1:9080
Contact:

Re: Mobile UI can be showed in a window?

Post by Peter »

This should work:

Code: Select all

[HereIsYourMobileUICode]

Procedure moveMobileToWindow(WindowId)
  ! $("body").children().each(function() {
  !   if (this.tagName.toLowerCase().startsWith("ons")) {
  !     $(spider_WindowID(v_windowid).contentFrame).append($(this));
  !   }
  ! });
EndProcedure

OpenWindow(99, #PB_Ignore, #PB_Ignore, 600, 800, "Look, i'm a window with mobile content!", #PB_Window_ScreenCentered | #PB_Window_SystemMenu)

moveMobileToWindow(99)
User avatar
Caronte3D
Posts: 189
Joined: Sat Nov 23, 2019 5:21 pm
Location: Some Universe

Re: Mobile UI can be showed in a window?

Post by Caronte3D »

Wow! :shock:
I'm learning a lot of things!
Thnaks! ;)
Dirk Geppert
Posts: 332
Joined: Fri Sep 22, 2017 7:02 am

Re: Mobile UI can be showed in a window?

Post by Dirk Geppert »

:shock: :shock: :shock: :D :D :D
Peter! How can you find out such internal information? Great!
Quin
Posts: 118
Joined: Wed Nov 08, 2023 4:38 pm

Re: Mobile UI can be showed in a window?

Post by Quin »

Dirk Geppert wrote: Sun Oct 13, 2024 9:56 am :shock: :shock: :shock: :D :D :D
Peter! How can you find out such internal information? Great!
Probably an insane amount of reading the generated javascript, plus general intelligence. Regardless, it's incredibly impressive.
Post Reply