Page 1 of 1

Normal Webpage not MDI How?

Posted: Mon Apr 04, 2016 9:25 am
by Michael E
Hello,

I am looking to make a web app, but I need it to look like a normal webpage, not a MDI/ window inside of a window.

This forum is on a webpage and it has features and buttons, and actions etc... without document floating around on a different background...

What commands or user guides can I review..... I have Purevision, and I exported a previous PB project from it to SpiderBasic, and the output automatically put my user interface as a MDI document on top of a blue background.

Thanks for you Help
MIke

Re: Normal Webpage not MDI How?

Posted: Mon Apr 04, 2016 10:25 am
by SparrowhawkMMU
I think you do this by including the #PB_Window_Background flag when calling OpenWindow()

Re: Normal Webpage not MDI How?

Posted: Mon Apr 04, 2016 6:15 pm
by skywalk
Thanks, I had the same question.

Re: Normal Webpage not MDI How?

Posted: Thu Jul 05, 2018 10:48 pm
by DanLJr
Hi All!

Trying-out SB for the first time. Attempting to test this concept (of no windows; just a flat webpage) with a simple Hello World! program. (I'm brand new to SB, but an old-school QuickBASIC and VB developer from decades ago, so I'm not new to programming overall.)

Ok, on to the business at hand...

I'm not getting expected results from OpenWindow as a webpage background.

It does NOT seem to make the window the background of the webpage, even though I specified #PB_Window_Background. I can still see the titlebar and grab/move the window, etc. What am I not understanding here? (Hopefully, I'm just being dumb/noob, and this is a simple misunderstanding on my part.)

Here's my very simple code for testing:

Code: Select all

HiWrld$ = "Hello World!"

If OpenWindow(#PB_Any, #PB_Ignore, #PB_Ignore, 600, 600, "Window Is Supposed To Be Background. Why Is It Not?", #PB_Ignore, #PB_Window_Background)
  TextGadget(#PB_Any, (WindowHeight(GetActiveWindow())-300)/2, (WindowWidth(GetActiveWindow())-300)/2, 300, 300, HiWrld$, #PB_Text_Center + #PB_Text_VerticalCenter)
EndIf
Any clarity/help/corrections/explanations/samples would be greatly appreciated.

Thanks in advance!
-Dan

Re: Normal Webpage not MDI How?

Posted: Fri Jul 06, 2018 7:00 am
by Peter
DanLJr wrote:

Code: Select all

If OpenWindow(#PB_Any, #PB_Ignore, #PB_Ignore, 600, 600, "Window Is Supposed To Be Background. Why Is It Not?", #PB_Ignore, #PB_Window_Background)

Code: Select all

If OpenWindow(#PB_Any, #PB_Ignore, #PB_Ignore, 600, 600, "Window Is Supposed To Be Background. Why Is It Not?", #PB_Window_Background)
Greetings ... Peter