Hi ppl
I am new to AKG2 but I did search the forum for my problem before making this post, I have seen a good few editbox problems but so far I haven't seen this one posted yet.
btw this all works on from the ide on a pc this only happens on bluestacks and my galaxy S4
I have tried to sort it out myself but have to admit defeat it may be something simple in which case I will have lived up to my screen name :/
problem starts when I click on the the 3rd editbox everything works fine until then, when the 3rd editbox is clicked on the screen goes goes darker and seems to lock and a larger image of the editbox appears in the middle of the screen, on Bluestacks nothing can be done until the back key is clicked.
on my phone I get the same dark screen lock but I can still enter chars into the edit.
a screen shot is attached and the 2 code folders zipped in the dropbox link below.
https://www.dropbox.com/sh/4tgi82hjcn0fki5/AAAU3ZRT8JbHfo-s4SDoK9AHa?dl=0
Example 1
Example 1
// Project: Editbox test
// Created: 2015-07-05
// set window properties
SetWindowTitle( "Editbox test" )
SetWindowSize( 1024, 768, 0 )
// set display properties
SetVirtualResolution( 1024, 768 )
SetOrientationAllowed( 1, 1, 1, 1 )
CreateEditBox(1)
SetEditBoxPosition(1,115,285)
//~ SetEditBoxSize( 1, 250, 25 )
//~ SetEditBoxTextSize( 1, 20 )
//~ SetEditBoxBorderSize(1,2)
//~ SetEditBoxBorderColor(1,255,255,255,255)
//~ SetEditBoxCursorColor(1,255,255,255)
//~ SetEditBoxBackgroundColor(1,0,0,0,255)
//~ SetEditBoxTextColor( 1, 255, 255, 255 )
//~ SetEditBoxActive(1,1)
CreateEditBox(2)
SetEditBoxPosition(2,115,345)
//~ SetEditBoxSize( 2, 250, 25 )
//~ SetEditBoxTextSize( 2, 20 )
//~ SetEditBoxBorderSize(2,2)
//~ SetEditBoxBorderColor(2,255,255,255,255)
//~ SetEditBoxCursorColor(2,255,255,255)
//~ SetEditBoxBackgroundColor(2,0,0,0,255)
//~ SetEditBoxTextColor( 2, 255, 255, 255 )
//~ SetEditBoxVisible(2,1)
//~ SetEditBoxActive(2,1)
CreateEditBox(3)
SetEditBoxPosition(3,115,405)
//~ SetEditBoxSize( 3, 250, 25 )
//~ SetEditBoxTextSize( 3, 20 )
//~ SetEditBoxBorderSize(3,2)
//~ SetEditBoxBorderColor(3,255,255,255,255)
//~ SetEditBoxCursorColor(3,255,255,255)
//~ SetEditBoxBackgroundColor(3,0,0,0,255)
//~ SetEditBoxTextColor( 3, 255, 255, 255 )
//~ SetEditBoxVisible(3,1)
//~ SetEditBoxActive(3,1)
CreateEditBox(4)
SetEditBoxPosition(4,115,465)
//~ SetEditBoxSize( 4, 250, 25 )
//~ SetEditBoxTextSize( 4, 20 )
//~ SetEditBoxBorderSize(4,2)
//~ SetEditBoxBorderColor(4,255,255,255,255)
//~ SetEditBoxCursorColor(4,255,255,255)
//~ SetEditBoxBackgroundColor(4,0,0,0,255)
//~ SetEditBoxTextColor( 4, 255, 255, 255 )
//~ SetEditBoxActive(4,1)
do
Sync ( )
loop
I have commented out most of the code but it doesn't help.
I tried a different method
Example 2
// Project: another editbox test
// Created: 2015-07-05
// set window properties
SetWindowTitle( "another editbox test" )
SetWindowSize( 1024, 768, 0 )
// set display properties
SetVirtualResolution( 1024, 768 )
SetOrientationAllowed( 1, 1, 1, 1 )
Boxes(5,285)
do
if (getrawkeypressed(32))
end
endif
Print( ScreenFPS() )
Sync()
loop
function Boxes(EB,y)
//Make Text Boxs
for i=1 to EB
CreateEditBox(i)
SetEditBoxPosition(i,115,y)
SetEditBoxSize(i,250,25)
SetEditBoxTextSize(i,20)
SetEditBoxBorderSize(i,2)
SetEditBoxBorderColor(i,255,255,255,255)
SetEditBoxCursorColor(i,255,255,255)
SetEditBoxBackgroundColor(i,0,0,0,255)
SetEditBoxTextColor(i,255,255,255)
SetEditBoxActive(i,1)
inc y,60
next i
endfunction
with the same result
it's like my code is infected if I start fresh I dont have the problem but I dont want to have to rewrite all my code from scratch again if this is something silly simple.
thank you taking the time to read this.