Got an idea for enhancing SpiderBasic? New command(s) you'd like to see?
-
falsam
- Posts: 280
- Joined: Mon May 05, 2014 9:49 pm
- Location: France
-
Contact:
Post
by falsam »
This code works with PureBasic. Would it be possible to have the same result with SpiderBasic?
Code: Select all
OpenWindow(0, 0, 0, 800, 600, "Test", #PB_Window_SystemMenu|#PB_Window_ScreenCentered)
SetWindowData(0, @"Value in data object")
Debug PeekS(GetWindowData(0))
CompilerIf #PB_Compiler_OS <> #PB_OS_Web
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
CompilerEndIf
Thanks ^-^
➽ Windows 11 - JDK 1.8 - SB 2.40 - Android 13
➽ http://falsam.com
Sorry for my poor english
-
Peter
- Posts: 1093
- Joined: Mon Feb 24, 2014 10:17 pm
- Location: 127.0.0.1:9080
-
Contact:
Post
by Peter »
+1
that would be very helpful.
Greetings ... Peter
-
poshu
- Posts: 96
- Joined: Mon Feb 24, 2014 11:46 pm
Post
by poshu »
Code: Select all
Procedure SetWindowString(Window,String.s)
!spider_SetWindowData(v_window,v_string);
EndProcedure
Procedure.s GetWindowString(Window)
!return spider_GetWindowData(v_window);
EndProcedure
OpenWindow(1,10,10,200,200,"nya")
SetWindowString(1,"test")
Debug GetWindowString(1)
Javascript isn't typed, so anything like this is usually PB inheritance; good news though : you can just circumvent it the easy way :p