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?

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

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: 274
Joined: Wed Aug 19, 2015 3:02 pm
Location: United Kingdom

Re: Normal Webpage not MDI How?

by SparrowhawkMMU Mon Apr 04, 2016 10:25 am

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

Re: Normal Webpage not MDI How?

by skywalk Mon Apr 04, 2016 6:15 pm

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: 51
Joined: Wed Jul 04, 2018 4:24 am
Location: USA

Re: Normal Webpage not MDI How?

by DanLJr Thu Jul 05, 2018 10:48 pm

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: 596
Joined: Mon Feb 24, 2014 10:17 pm
Location: 127.0.0.1

Re: Normal Webpage not MDI How?

by Peter Fri Jul 06, 2018 7:00 am

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
Return to Coding Questions

Who is online

Users browsing this forum: No registered users and 4 guests