Page 1 of 1

Mobile UI can be showed in a window?

Posted: Sat Oct 12, 2024 12:29 pm
by Caronte3D
I want to use MobileUI, but not at fullscreen. It's possible?

Re: Mobile UI can be showed in a window?

Posted: Sat Oct 12, 2024 4:30 pm
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)

Re: Mobile UI can be showed in a window?

Posted: Sat Oct 12, 2024 7:05 pm
by Caronte3D
Wow! :shock:
I'm learning a lot of things!
Thnaks! ;)

Re: Mobile UI can be showed in a window?

Posted: Sun Oct 13, 2024 9:56 am
by Dirk Geppert
:shock: :shock: :shock: :D :D :D
Peter! How can you find out such internal information? Great!

Re: Mobile UI can be showed in a window?

Posted: Sun Oct 13, 2024 1:40 pm
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.