Page 4 of 4

Re: SpiderBasic Library - List of new functions

Posted: Mon Oct 22, 2018 6:25 pm
by RSBasic

Re: SpiderBasic Library - List of new functions

Posted: Tue Oct 23, 2018 7:36 am
by RSBasic
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

Posted: Tue Oct 23, 2018 8:29 am
by RSBasic

Re: SpiderBasic Library - List of new functions

Posted: Tue Oct 23, 2018 9:17 am
by RSBasic
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

Posted: Thu Oct 25, 2018 7:37 am
by RSBasic
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

Posted: Thu Oct 25, 2018 8:59 am
by Arbrakaan
Thanks for this great library RSBasic ! :)

Re: SpiderBasic Library - List of new functions

Posted: Sun Mar 17, 2019 7:00 pm
by hoerbie
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

Re: SpiderBasic Library - List of new functions

Posted: Mon Mar 20, 2023 8:19 pm
by magg
With this code you can make Debug window always float at top/right when resize main browser:

Code: Select all

!window.addEventListener("resize",function(){
!	spider_ResizeWindow(spider.debug.window, spider_DesktopWidth() - spider_WindowWidth(spider.debug.window, 1)-10, 10, -0xFFFF , -0xFFFF)
!}) 
EDIT!
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

Re: SpiderBasic Library - List of new functions

Posted: Tue Mar 21, 2023 12:26 pm
by Dirk Geppert
Good to know, also for other windows like this. Thx magg!