Thanks for your answer...

My keyboard is the normal one. So, i have no 'tab key'...
But i was using the option 'tab on return' in the property in the text field...

I will try the code a little bit later...
Regards.
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Code: Select all
global TxtSel
global sFldH,sFldV
on returninfield
goNextTarget
end returninfield
on tabinfield
goNextTarget
end tabinfield
on enterinfield
goNextTarget
end enterinfield
on goNextTarget
focus on fld "Txt10" of grp "grpTxt10"
end goNextTarget
on focusIn
put "grpTxt9" into TxtSel
put item 1 of the loc of grp "grpTxt9" into sFldH
put item 2 of the loc of grp "grpTxt9" into sFldV
end focusIn
Code: Select all
global TxtSel
global sFldH,sFldV
on focusIn
put "grpTxt10" into TxtSel
put item 1 of the loc of grp "grpTxt10" into sFldH
put item 2 of the loc of grp "grpTxt10" into sFldV
end focusIn
Code: Select all
global TxtSel
global sFldH,sFldV
on returninfield
goNextTarget
end returninfield
on tabinfield
goNextTarget
end tabinfield
on enterinfield
goNextTarget
end enterinfield
on goNextTarget
set the loc of grp TxtSel to sFldH & comma & sFldV
focus on fld "Txt10" of grp "grp10"
end goNextTarget
on openField
answer "field number 10"
put "grp9" into TxtSel
put item 1 of the loc of grp "grp9" into sFldH
put item 2 of the loc of grp "grp9" into sFldV
put 528 into valueV
put 383 into valueH
set the loc of grp TxtSel to valueV & comma & valueH
end openField
Code: Select all
global TxtSel
global sFldH,sFldV
on keyboardActivated
put 528 into valueV
put 383 into valueH
set the loc of grp TxtSel to valueV & comma & valueH
end keyboardActivated
on keyboardDeactivated
set the loc of grp TxtSel to sFldH & comma & sFldV
end keyboardDeactivated
Code: Select all
answer "field number 10"
Code: Select all
set the uCurrentFieldGroup of this stack to tID
Code: Select all
put the uCurrentFieldGroup of this stack into tID
Dixie, Where is the 'Installed Apps' heading?Dixie wrote:Hi...
It seems things have changed with xCode 6.1... under the heading 'Installed Apps' you will see a '+" sign... ...
Code: Select all
on preOpenStack
if the environment is "mobile" then
put "portrait,portrait upside down,landscape left,landscape right" into theallowed
iphoneSetAllowedOrientations theallowed
end if
set the fullscreenmode of this stack to empty
makeTheGroup
set the layerMode of group "grpBtn" to "scrolling"
if the platform is "iphone" then
set the compositorType of this stack to "opengl"
else
set the compositorType of this stack to "software"
end if
set the compositorTileSize of this stack to 32
set the compositorCacheLimit of this stack to (16 * 1024 * 1024)
end preOpenStack
on makeTheGroup
if exists(group "grpBtn") then
else
group button "btn1" and button "btn2"
set the name of last group to "grpBtn"
end if
end makeTheGroup
Code: Select all
local sScrolling
local sInitialMouseX, sInitialMouseY
local sInitialHScroll, sInitialVScroll
on mouseDown
## Allow the group to scroll
put true into sScrolling
## Record the initial touch position
put item 1 of the mouseLoc into sInitialMouseX
put item 2 of the mouseLoc into sInitialMouseY
## Record the initial hScroll and vScroll
put the vScroll of me into sInitialVScroll
put the hScroll of me into sInitialHScroll
end mouseDown
on mouseMove mouseX, mouseY
## If the screen is being touched then
if sScrolling then
## Calculate how far the touch has moved since it started
put mouseY - sInitialMouseY into tVChange
put mouseX- sInitialMouseX into tHChange
## Reset the hScroll and vScroll to follow the touch
lock screen
set the vScroll of me to sInitialVScroll - tVChange
set the hScroll of me to sInitialHScroll - tHChange
unlock screen
end if
end mouseMove
on mouseRelease
mouseUp
end mouseRelease
on mouseUp
put false into sScrolling
end mouseUp