4.3 version

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: 4.3 version

Post by Mr. Kibernetik »

New sample program "motion detector.txt" will be added to Interactive Interface section.

This program monitores device camera, starts video recording when motion before camera is detected and records until motion is finished. Recorded video samples can be viewed directly in the program.

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: 4.3 version

Post by Mr. Kibernetik »

New command will be added:

SLIDER n$ VALUE k AT x,y SIZE s ANGLE a
creates slider with name [n$], value [k], at point [x,y], with size [s] and at an angle [a] to horizontal direction. Valid values for [k] are from 0 to 1. Parameter ANGLE is optional. Command OPTION ANGLE affects this command.

These commands will become obsolete:

SLIDER VALUE AT HSIZE
SLIDER VALUE AT VSIZE

Henko
Posts: 814
Joined: Tue Apr 09, 2013 12:23 pm
My devices: iPhone,iPad
Windows
Location: Groningen, Netherlands
Flag: Netherlands

Re: 4.3 version

Post by Henko »

Mr. Kibernetik wrote:New sample program "motion detector.txt" will be added to Interactive Interface section.

This program monitores device camera, starts video recording when motion before camera is detected and records until motion is finished. Recorded video samples can be viewed directly in the program.
GREAT ! :o

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: 4.3 version

Post by Mr. Kibernetik »

New command will be added:

SET TOOLBAR OFF
SET TOOLBAR ON
turns OFF and turns ON visibility of top control toolbar. It also affects position of main graphics window on the screen. ATTENTION: if program is stopped when control toolbar is hidden then application control will be completely lost.

Application stability will be improved.

basiccode
Posts: 100
Joined: Wed Feb 12, 2014 12:21 pm

Re: 4.3 version

Post by basiccode »

Hello there.
I was thinking about this feature and how it might be implemented.
I realised that if the app goes in debug mode the toolbar can show up so you can navigate back to the app then smartBasic can hide it again if it was hidden. If the app stops and smartBasic doesn't exit (because it was not started by a bookmark or other iOS app) then it should reappear when you go to edit mode.

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: 4.3 version

Post by Mr. Kibernetik »

basiccode wrote:Hello there.
I was thinking about this feature and how it might be implemented.
I realised that if the app goes in debug mode the toolbar can show up so you can navigate back to the app then smartBasic can hide it again if it was hidden. If the app stops and smartBasic doesn't exit (because it was not started by a bookmark or other iOS app) then it should reappear when you go to edit mode.
Yes, nice comment! This kind of "smart" behavior can be added in future versions.

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: 4.3 version

Post by Mr. Kibernetik »

basiccode wrote:Hello there.
I was thinking about this feature and how it might be implemented.
I realised that if the app goes in debug mode the toolbar can show up so you can navigate back to the app then smartBasic can hide it again if it was hidden. If the app stops and smartBasic doesn't exit (because it was not started by a bookmark or other iOS app) then it should reappear when you go to edit mode.
I also want to add that this toolbar functionality does not affect debugging.
So if program was paused by DEBUG PAUSE command when toolbar was hidden, then in debug window toolbar will be present anyway.

basiccode
Posts: 100
Joined: Wed Feb 12, 2014 12:21 pm

Re: 4.3 version

Post by basiccode »

Yes. I noticed there is 3 states where smartBasic has to be smartBasic.
In debug mode in edit mode and when a user app ends if smartBasic hasn't exited.

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: 4.3 version

Post by Mr. Kibernetik »

basiccode wrote:Yes. I noticed there is 3 states where smartBasic has to be smartBasic.
In debug mode in edit mode and when a user app ends if smartBasic hasn't exited.
Yes, I understand your idea.

Henko
Posts: 814
Joined: Tue Apr 09, 2013 12:23 pm
My devices: iPhone,iPad
Windows
Location: Groningen, Netherlands
Flag: Netherlands

Re: 4.3 version

Post by Henko »

Mr. Kibernetik wrote:New command will be added:

EXIT
ends program execution and quits application.
Do you mean that SB is removed from the background as well? If not, could you implement the EXIT statement in that way?
(I frequently use a little SB app. When i forget to delete SB from the background, my iphone is totally dead after some hours, which is very nasty sometimes).

Post Reply