Tests on "CONSHOW" and "SCRSHOW"

Post Reply
User avatar
Dutchman
Posts: 148
Joined: Tue Aug 06, 2019 4:47 pm
Location: Netherlands

Tests on "CONSHOW" and "SCRSHOW"

Post by Dutchman » Wed Nov 27, 2019 7:55 pm

I did a lot of tests with the following version of "# Int_ Defaults.bb"

Code: Select all

' "# Int_ Defaults.bb"
' by Ton Nillesen, November 2019
'
'==== Prepare canvas ====
SCRSIZE 600,450 'set before interface call
DRAW CLEAR 0,0,0,0 ' transparant background
GOSUB SetInterface
'
'==== your code here ====
CON SHOW
DELAY 1 ' show parameters

CLS
PRINT "Sorry, SCRSHOW doesn't work here."
PRINT "See Graphics to continue."
SCRSHOW
CLS
INSIGN TEXT Caption "User code is missing"
DRAW UPDATE


WaitForNext ' activate button and wait for touch
'--- finish
INBUTT DELETE NextButt
INSIGN TEXT Caption "Done"
END
'
'======= Subroutines and Functions =======
SetInterface:
'--- Activate extension
Int_.test=1 ' print parameters
{/Extensions/Interface/! Int_}
'--- Presets
DRAW MANUAL
'--- set Id's
NextButt=Int_.Bnext(0)
Caption=Int_.Scapt(0)
'--- activate  caption
CALL Int_Sign(Int_.Scapt,Int_.ScaptCol)
DRAW UPDATE 
RETURN
The following test shows that the program stops at "CONSHOW"
Only manually pressing "Graphics" results in the correct screen display
.
Test A.png
Test A.png (50.75 KiB) Viewed 56 times
.
Eventually I found a solution to get this program working,
but it still requires a solution or a logical and understandable guideline for using "DRAW UPDATE"
.
Test B.png
Test B.png (27.39 KiB) Viewed 56 times
It is still a long way to go

User avatar
kibernetik
Site Admin
Posts: 129
Joined: Tue Aug 06, 2019 3:03 pm

Re: Tests on "CONSHOW" and "SCRSHOW"

Post by kibernetik » Wed Nov 27, 2019 9:13 pm

Please describe a problem you have in a several lines of code - only those lines which create the problem, without inclusion of external files.
Please also describe what behaviour do you expect from that code and what is going wrong.

User avatar
Dutchman
Posts: 148
Joined: Tue Aug 06, 2019 4:47 pm
Location: Netherlands

Re: Tests on "CONSHOW" and "SCRSHOW"

Post by Dutchman » Thu Nov 28, 2019 10:45 am

No thanks, I give up
It is still a long way to go

User avatar
kibernetik
Site Admin
Posts: 129
Joined: Tue Aug 06, 2019 3:03 pm

Re: Tests on "CONSHOW" and "SCRSHOW"

Post by kibernetik » Fri Nov 29, 2019 9:13 am

DRAW UPDATE function affects graphics drawing functions only. It performs screen update and works together with DRAW MANUAL function. DRAW MANUAL functions turns off automatic screen update and only DRAW UPDATE function performs graphics update.

Post Reply