Hello,
I dont know if it is a bug, but i post here, because it can be the case.
With P.B, ZoomSprite with negatives values is used to flip a sprite.
Here is the bug i think i've found in S.B :
; LoadSprite(1, "mySprite.png") ; load first a 32x32 sprite, drawn on the screen every 30fps in the ...
Search found 21 matches
- Tue Dec 10, 2019 6:44 am
- Forum: Coding Questions
- Topic: ZoomSprite with negative values
- Replies: 1
- Views: 2849
- Mon Dec 09, 2019 3:10 pm
- Forum: Coding Questions
- Topic: Get the URL of local storage
- Replies: 0
- Views: 4461
Get the URL of local storage
Hello,
Is it possible to get the URL of a text file after loading it on the local storage ? (a file opened with the "openrequester")
I would like to load sprites in the same folder as this file...
Thanks
EDIT:
It seems that "LoadSprite" command can't load on local storage for now. But i think it ...
Is it possible to get the URL of a text file after loading it on the local storage ? (a file opened with the "openrequester")
I would like to load sprites in the same folder as this file...
Thanks
EDIT:
It seems that "LoadSprite" command can't load on local storage for now. But i think it ...
- Mon Oct 14, 2019 10:38 am
- Forum: Coding Questions
- Topic: Keyboard events for canvas and screen : focus
- Replies: 2
- Views: 2366
Re: Keyboard events for canvas and screen : focus
Thanks a lot Peter. It works perfectly.
- Mon Oct 14, 2019 7:27 am
- Forum: Coding Questions
- Topic: Keyboard events for canvas and screen : focus
- Replies: 2
- Views: 2366
Keyboard events for canvas and screen : focus
Hello,
I try to give the keyboard focus to a canvas, but without success.
SetActiveGadget does nothing.
Same case for SetActiveWindow.
I must click in the canvas.
I've copied a little part of code below.
Comments are in French, but i can translate.
I also would like to sometimes open a sticky ...
I try to give the keyboard focus to a canvas, but without success.
SetActiveGadget does nothing.
Same case for SetActiveWindow.
I must click in the canvas.
I've copied a little part of code below.
Comments are in French, but i can translate.
I also would like to sometimes open a sticky ...
- Wed Jan 13, 2016 9:21 pm
- Forum: Coding Questions
- Topic: [SB 1.10] ComboBoxGadget
- Replies: 3
- Views: 4354
Re: [SB 1.10] ComboBoxGadget
This fix works also with Android, but not ipad. (safari & chrome)
On ipad, the arrow to open the combobox does not open it, but the combobox is selected in blue.
EDIT:
If i make the combobox editable, the problem is partially solved.
When i type text inside, the combobox open itself.
But the arrow ...
On ipad, the arrow to open the combobox does not open it, but the combobox is selected in blue.
EDIT:
If i make the combobox editable, the problem is partially solved.
When i type text inside, the combobox open itself.
But the arrow ...
- Wed Jan 13, 2016 7:51 pm
- Forum: Coding Questions
- Topic: Detecting if under a mobile webbrowser
- Replies: 2
- Views: 3279
Re: Detecting if under a mobile webbrowser
Thanks a lot !
I'm sorry, i make novice errors.
I'm sorry, i make novice errors.
- Wed Jan 13, 2016 11:04 am
- Forum: Coding Questions
- Topic: Detecting if under a mobile webbrowser
- Replies: 2
- Views: 3279
Detecting if under a mobile webbrowser
I've found a code to detect mobile web-browsers, but after an adaptation, it doesn't seems to works on SB.
Can you take a look ?
I would like the event to be bind only if i'm not under a mobile, but my var "isMobile" always stay to 0.
isMobile.i = 0
! if(navigator.userAgent.match(/Android/i ...
Can you take a look ?
I would like the event to be bind only if i'm not under a mobile, but my var "isMobile" always stay to 0.
isMobile.i = 0
! if(navigator.userAgent.match(/Android/i ...
- Wed Jan 13, 2016 7:52 am
- Forum: Javascript
- Topic: Add a vertical scrollbar on the web browser
- Replies: 0
- Views: 4170
Add a vertical scrollbar on the web browser
Hello
Is there a JS code line i can add in my program to have a vertical scrollbar on the virtual desktop of the web browsers ?
I would like to see all of a big window without resizing it.
Is there a JS code line i can add in my program to have a vertical scrollbar on the virtual desktop of the web browsers ?
I would like to see all of a big window without resizing it.
- Tue Jan 12, 2016 11:14 am
- Forum: Coding Questions
- Topic: Canvas keyboard "KeyBack" & Web explorers
- Replies: 2
- Views: 3537
Re: Canvas keyboard "KeyBack" & Web explorers
Thanks.
I've tried to do this :
; Backspace key
! Mousetrap.bind('backspace', function() {
! if(v_CursorAtArea > 0) {
! var l = v_Ar(v_CursorAtArea).text.length();
! if(l > 0) {
! v_Ar(v_CursorAtArea).text = v_Ar(v_CursorAtArea).text.substring(0, l - 1);
! }
! }
! });
But i'm not sure that i ...
I've tried to do this :
; Backspace key
! Mousetrap.bind('backspace', function() {
! if(v_CursorAtArea > 0) {
! var l = v_Ar(v_CursorAtArea).text.length();
! if(l > 0) {
! v_Ar(v_CursorAtArea).text = v_Ar(v_CursorAtArea).text.substring(0, l - 1);
! }
! }
! });
But i'm not sure that i ...
- Tue Jan 12, 2016 12:55 am
- Forum: Coding Questions
- Topic: Canvas keyboard "KeyBack" & Web explorers
- Replies: 2
- Views: 3537
Canvas keyboard "KeyBack" & Web explorers
Hello
I have a problem with a canvas keyboard released event.
When i hit the "Back" key, in SB, i do some graphical text stuffs, it works.
But, if i upload my program and type its url, the "Back" key shortcut is used by chrome or mozilla to go back on the last url.
Is there a way to by-pass this ...
I have a problem with a canvas keyboard released event.
When i hit the "Back" key, in SB, i do some graphical text stuffs, it works.
But, if i upload my program and type its url, the "Back" key shortcut is used by chrome or mozilla to go back on the last url.
Is there a way to by-pass this ...