SpiderBasic Library - List of new functions
Re: SpiderBasic Library - List of new functions
Now there is YouTubeGadget(): https://www.purebasic.fr/german/viewtop ... 99#p349499
Re: SpiderBasic Library - List of new functions
With this function you can move gadgets to another window: https://www.purebasic.fr/german/viewtop ... 00#p349500
Re: SpiderBasic Library - List of new functions
Get browser name: https://www.purebasic.fr/german/viewtop ... 02#p349502
Get browser version: https://www.purebasic.fr/german/viewtop ... 03#p349503
Get browser engine: https://www.purebasic.fr/german/viewtop ... 04#p349504
Get browser version: https://www.purebasic.fr/german/viewtop ... 03#p349503
Get browser engine: https://www.purebasic.fr/german/viewtop ... 04#p349504
Re: SpiderBasic Library - List of new functions
With this function you can open an internal or external page in a popup window: https://www.purebasic.fr/german/viewtop ... 05#p349505
Re: SpiderBasic Library - List of new functions
With this function you can add and change a placeholder text for StringGadget, EditorGadget, SpinGadget, DateGadget and ComboBoxGadget: https://www.purebasic.fr/german/viewtop ... 44#p349544
Re: SpiderBasic Library - List of new functions
Thanks for this great library RSBasic ! 

Re: SpiderBasic Library - List of new functions
Hi RSBasic,
thanks for your work, I found an error in the first post, the Link for "Preference....Create, load, edit and save setting file:" is wrong, same in German PB forum.
And if you like, I put a small code (modified from your codes) for setting the missing line-height of gadgets in the bug forum.
Regards, Hoerbie
thanks for your work, I found an error in the first post, the Link for "Preference....Create, load, edit and save setting file:" is wrong, same in German PB forum.
And if you like, I put a small code (modified from your codes) for setting the missing line-height of gadgets in the bug forum.
Regards, Hoerbie
Re: SpiderBasic Library - List of new functions
With this code you can make Debug window always float at top/right when resize main browser:
EDIT!
I add keyboard shortcut ESC to hide/show debug window.
Code: Select all
!window.addEventListener("resize",function(){
! spider_ResizeWindow(spider.debug.window, spider_DesktopWidth() - spider_WindowWidth(spider.debug.window, 1)-10, 10, -0xFFFF , -0xFFFF)
!})
I add keyboard shortcut ESC to hide/show debug window.
Code: Select all
Procedure DebugEscape()
Static Visible = #True
Define DebugWin
! v_debugwin = spider.debug.window;
If Visible = #True
HideWindow(DebugWin,1)
Visible = #False
else
HideWindow(DebugWin,0)
Visible = #True
endif
EndProcedure
macro SetStickyDebug() ;make debug window float at edge
!window.addEventListener("resize",function(){
! spider_ResizeWindow(spider.debug.window, spider_DesktopWidth() - spider_WindowWidth(spider.debug.window, 1)-10, 10, -0xFFFF , -0xFFFF)
!})
!window.addEventListener("keyup", function(event) {
! if (event.keyCode === 27) {
DebugEscape()
! }
!});
EndMacro
SetStickyDebug() ;to use it
Last edited by magg on Sat Apr 01, 2023 6:06 am, edited 1 time in total.
-
- Posts: 262
- Joined: Fri Sep 22, 2017 7:02 am
Re: SpiderBasic Library - List of new functions
Good to know, also for other windows like this. Thx magg!