It is currently Sun Feb 28, 2021 3:47 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Webgadget scrollbars and window colors
PostPosted: Wed Jun 24, 2020 6:34 pm 
Offline
Enthusiast
Enthusiast

Joined: Thu May 17, 2007 8:35 pm
Posts: 118
Location: USA
Is it possible to change the color of the scrollbars of the webgadget? (without changing all the color scheme of windows theme/os?)

I have a nice app, but the webgadget has windows theme colors for stuff like scrollbars, etc. Is this changeable? What else in the webgadet can be modified color wise, if so?


Top
 Profile  
Reply with quote  
 Post subject: Re: Webgadget scrollbars and window colors
PostPosted: Wed Jun 24, 2020 7:30 pm 
Offline
Addict
Addict
User avatar

Joined: Tue Mar 02, 2004 1:20 pm
Posts: 1173
Location: Amphibios 9
Code:
HTML.s = "<html>" +
         "<head>" +
         "<style>" +
         " body { " +
         "   scrollbar-base-color: red; " +
         "   scrollbar-face-color: yellow; " +
         "   scrollbar-3dlight-color: blue; " +
         "   scrollbar-highlight-color: green; " +
         "   scrollbar-track-color: orange; " +
         "   scrollbar-arrow-color: black; " +
         "   scrollbar-shadow-color: white; " +
         "   scrollbar-dark-shadow-color: silver; " +
         " } " +
         "</style>" +
         "</head>" +
         "<body>" +
         "<h1>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut...</h1>" +
         "<h1>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut...</h1>" +
         "</body>" +
         "</html>"

OpenWindow(0, 0, 0, 300, 300, "WebGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
WebGadget(0, 10, 10, 280, 280, "")
SetGadgetItemText(0, #PB_Web_HtmlCode, HTML)
Repeat
Until WaitWindowEvent() = #PB_Event_CloseWindow

_________________
Hygge


Top
 Profile  
Reply with quote  
 Post subject: Re: Webgadget scrollbars and window colors
PostPosted: Thu Jun 25, 2020 1:18 am 
Offline
Enthusiast
Enthusiast

Joined: Thu May 17, 2007 8:35 pm
Posts: 118
Location: USA
Kiffi, thanks so much for the reply!

Is there any way to make this stay in place when you load a URL?

For instance to have the orange and yellow scrollbar that you made to be used when loading the page

www.purebasic.com


for instance..

I need to be able to customize the scrollbar of the webgadget when loading a page, if that's possible?


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 16 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye