Search found 35 matches
- Sat Jan 22, 2022 10:44 am
- Forum: Coding Questions
- Topic: Strange problem with storing javascript buffer pointers in a list
- Replies: 0
- Views: 557
Strange problem with storing javascript buffer pointers in a list
see code comments for details Structure samples buffer.l EndStructure Global NewList sample.samples(), audioctx Procedure ButtonHandler() Static audioinit If audioinit = 0 audioinit = 1 ! const AudioContext = window.AudioContext || window.webkitAudioContext ! v_audioctx = new AudioContext({latencyHi...
- Thu Jan 20, 2022 4:52 pm
- Forum: Javascript
- Topic: The File System Access API
- Replies: 1
- Views: 1611
The File System Access API
Can anyone point me in the right direction? I tried a couple of things but it wont work. Procedure ButtonHandler() gid = GadgetID(0) !let directory !document.getElementById(v_gid.gadget.id).addEventListener('click', async () => { ! try { ! directory = await window.showDirectoryPicker({ ! startIn: 'd...
- Sat Jan 16, 2021 10:41 am
- Forum: Javascript
- Topic: SVG Dropshadow
- Replies: 0
- Views: 1168
SVG Dropshadow
Does anyone know how to apply a drop shadow to vector drawings? Procedure GadgetEvents() Select EventGadget() Case 0 If EventType() = #PB_EventType_LeftButtonDown EndIf If EventType() = #PB_EventType_MouseMove; And GetGadgetAttribute(0, #PB_Canvas_Buttons) & #PB_Canvas_LeftButton EndIf EndSelect...
- Tue Jan 12, 2021 9:59 am
- Forum: Bugs Reports
- Topic: IDE Crashes on MacOS Big Sur on exit
- Replies: 3
- Views: 1651
Re: IDE Crashes on MacOS Big Sur on exit
I am currently using crossover to run the windows x86 version and it works fine
- Sun Dec 27, 2020 8:51 am
- Forum: Javascript
- Topic: Remove black border
- Replies: 2
- Views: 1331
Re: Remove black border
Thanks, missed that for some reason. That post will help with many other tweaks
- Sat Dec 26, 2020 4:19 pm
- Forum: Javascript
- Topic: Remove black border
- Replies: 2
- Views: 1331
Remove black border
Does anyone know how to remove the black borders around clicked gadgets like buttons and lists?


- Thu Dec 17, 2020 9:04 pm
- Forum: Bugs Reports
- Topic: IDE Crashes on MacOS Big Sur on exit
- Replies: 3
- Views: 1651
IDE Crashes on MacOS Big Sur on exit
The IDE crashes every time i exit on MacOS 11+
- Mon Dec 07, 2020 11:53 am
- Forum: Javascript
- Topic: Access SB List from Javascript?
- Replies: 2
- Views: 1330
Re: Access SB List from Javascript?
nice 
i was looking at the debugger and found

i was looking at the debugger and found
Code: Select all
t_mystructure.current._mydata.array[v_arrayindex]
- Mon Dec 07, 2020 11:39 am
- Forum: Javascript
- Topic: Access SB List from Javascript?
- Replies: 2
- Views: 1330
Access SB List from Javascript?
Hi, i have a structure that contains an array as one of its element. I need to access this array from javascript code. I can access an array directly using !a_arrayname. How can we get the array contents in a list from javascipt?
Thanks
Thanks
- Tue Nov 03, 2020 7:11 am
- Forum: Javascript
- Topic: Javascript const
- Replies: 6
- Views: 2156
Re: Javascript const
Thanks Peter, i get it now. 'Protected' ensures that the variable is local inside the procedure even if the same variable exists globally so that the return value is always that of the procedure.