Normal Webpage not MDI How?

Just starting out? Need help? Post your questions and find answers here.
Michael E
Posts: 1
Joined: Mon Apr 04, 2016 9:18 am

Normal Webpage not MDI How?

Post 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
User avatar
SparrowhawkMMU
Posts: 281
Joined: Wed Aug 19, 2015 3:02 pm
Location: United Kingdom

Re: Normal Webpage not MDI How?

Post by SparrowhawkMMU »

I think you do this by including the #PB_Window_Background flag when calling OpenWindow()
User avatar
skywalk
Posts: 47
Joined: Tue Feb 25, 2014 2:13 am
Location: Boston, MA

Re: Normal Webpage not MDI How?

Post by skywalk »

Thanks, I had the same question.
When working toward the solution of a problem, it always helps if you know the answer. ~ ?
An expert is one who knows more and more about less and less until he knows absolutely everything about nothing. ~ Weber
User avatar
DanLJr
Posts: 58
Joined: Wed Jul 04, 2018 4:24 am
Location: USA

Re: Normal Webpage not MDI How?

Post 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
User avatar
Peter
Posts: 1086
Joined: Mon Feb 24, 2014 10:17 pm
Location: 127.0.0.1:9080
Contact:

Re: Normal Webpage not MDI How?

Post 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
Post Reply