Hi All,
Just bought Purebasic and starting to learn.. here's my first question:
I'm using the webgadget to produce some kind of narrowcasting software.
Now I need to show webpages but without the scrollbar. How can I get that done? Now the vertical scrollbar shows up everytime, even when the webpage fits the current screen..
Webgadget question
-
- Addict
- Posts: 1073
- Joined: Fri Apr 25, 2003 11:13 pm
- Location: Netherlands
- Contact:
- Fluid Byte
- Addict
- Posts: 2336
- Joined: Fri Jul 21, 2006 4:41 am
- Location: Berlin, Germany
This is a HTML issue rather than a problem of PB:
Code: Select all
OpenWindow(0,0,0,400,300,"",#PB_Window_SystemMenu | #PB_Window_SizeGadget | #PB_Window_ScreenCentered)
CreateGadgetList(WindowID(0))
WebGadget(0,0,0,0,0,"")
HTML$ = "<html>"
HTML$ + "<head>"
HTML$ + "<title>No Scrolbar Demo</title>"
HTML$ + "<style>body {overflow-y:hidden;}</style>"
HTML$ + "</head>"
HTML$ + "<body>"
HTML$ + "<p>Lorem ipsum dolor sit amet</p><p>Lorem ipsum dolor sit amet</p>"
HTML$ + "<p>Lorem ipsum dolor sit amet</p><p>Lorem ipsum dolor sit amet</p>"
HTML$ + "<p>Lorem ipsum dolor sit amet</p><p>Lorem ipsum dolor sit amet</p>"
HTML$ + "<p>Lorem ipsum dolor sit amet</p><p>Lorem ipsum dolor sit amet</p>"
HTML$ + "<p>Lorem ipsum dolor sit amet</p><p>Lorem ipsum dolor sit amet</p>"
HTML$ + "<p>Lorem ipsum dolor sit amet</p><p>Lorem ipsum dolor sit amet</p>"
HTML$ + "<p>Lorem ipsum dolor sit amet</p><p>Lorem ipsum dolor sit amet</p>"
HTML$ + "</body>"
HTML$ + "</html>"
SetGadgetItemText(0,#PB_Web_HtmlCode,HTML$)
Repeat
EventID = WaitWindowEvent()
If EventID = #PB_Event_SizeWindow
ResizeGadget(0,0,0,WindowWidth(0),WindowHeight(0))
EndIf
Until EventID = #PB_Event_CloseWindow
Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?
- utopiomania
- Addict
- Posts: 1655
- Joined: Tue May 10, 2005 10:00 pm
- Location: Norway
Code: Select all
<body scroll="auto">
<body scroll="no">
