Having an Issue with the SceneGroup

Hi Brent,

Oddly i don’t think there is, it only has a error with the fonts. I don’t know if that is the issue but i have no idea to be honest.

The error message looks like this 

Windows simulator build date: Nov 18 2014 @ 18:35:32

Copyright © 2009-2014  C o r o n a   L a b s   I n c .

Version: 3.0.0

Build: 2014.2511

Platform: SM-G900S / x64 / 6.2 / Intel® HD Graphics 4000 / 4.0.0 - Build 10.18.10.3308 / 2014.2511

Warning: could not load font HelveticaNeue-Light. Using default font.

Warning: could not load font HelveticaNeue-Light. Using default font.

Warning: could not load font HelveticaNeue-Light. Using default font.

Hi Matt,

Yes, this is a font issue. Can you search all of your code for the term “Helvetica” and see if it comes up?

Brent

Hi Brent,

I did a search using Ctrl+F then typed in “Helvetica” and on every scene and page of my code it simply says 

Unable to find Helvetica

Not sure what to do here,

Thanks,

Matt.

Hmmm… refresh my memory, which widgets are you using? Radio buttons if I recall? And what else? Buttons (widget.newButton()) or other widgets? Do you set the widget theme somewhere?

Brent

Yes I have radio buttons on my main.lua as the navigation and a few widget.newButton on my forms page just to navigate to some basic form pages with my native text fields and checkboxes. 

Thanks, 

Matt.

Hi Matt,

Please do a search for “setTheme” in your full project and see if you get any results…

Brent

Hi Brent,

I just tried a search through every file in my source project files and found nothing again I got the same result as the last search 

“Unable to find setTheme”

Thanks again,

Brent.

Hi Matt,

Actually, this error you’re seeing is more of a warning, and it shouldn’t result in the app crashing or black-screening. That would be related to something else entirely…

Right I see, what do you think it could be, also I have discovered that my native fields scroll over my tab bar when I use my scrollView any ideas why this is?
My tab bar is on my main.lua
My native field are on my forms.lua
If that helps.

Thanks again,
Matt.

Hi Matt,

Native input fields will always appear in front of other visual (OpenGL) content. It’s a technical limitation and there is no workaround for it. If this is a breaking limitation, you could consider breaking up your submission forms into multiple pages which the user navigates (swipes) through, wherein the fields fit cleanly on that page and don’t interfere with the tab bar (thus no scroll view at all).

Brent

Hi Brent,
I have been plaining on using a swipe navigation lately due to the issues that are arising from the scrollview. I would just proceed on using a swipe navigation however, I posted an issue I’m having with my swipe navigation but just waiting for help on that one before I can cross of the scrollview from my apps navigation.

Thanks,
Matt.

Hi @sulmaxcp,

What kind of scene change transition are you using? A moving (scrolling) type or otherwise? When you say the text fields “don’t disappear”, do you mean they remain on the screen completely, never moving or anything whatsoever when the scene changes?

Thanks,

Brent

I have 3 pages Home, Forms and Settings

I’m on the Forms Page which has 3 forms on it which all have their own pages.

My currently using one called Incident Report, which has my textboxes on, there are many things on this scene including my textboxes which is why I needed to use a scrollview. The textboxes will move up and down the page when i’m on the Incident Report scene but if I click to a different scene when I’m on the Incident Report page and the textboxes are on the scene the follow onto which ever other scene I click on such as Home, Forms or Settings.

Thanks,

Matt.

Hi Matt,

I don’t know what is happening in your code. I tested using native text fields in a scrollView, with that scrollView inserted into the Composer scene, and when I change/remove that scene, the text fields go with it. I can only suggest that you carefully check your code and ensure that you have not accidentally inserted the scrollView (and thus the native fields) into a group that’s not part of the scene’s view.

Best regards,

Brent

This is a simpler version of what I want to do I has 12 textbox fields and they are all in a scrollView and I have then put the scrollView in the sceneGroup. However, I still get the same result?

[lua]


– textboxes.lua


local composer = require( “composer” )

local scene = composer.newScene()

local widget = require( “widget” )

function scene:create( event )

local sceneGroup = self.view

– Scroll

local scrollView = widget.newScrollView

{

   top = - 28,

   left = 0,

   width = display.contentWidth,

   height = display.contentHeight + 20,

   horizontalScrollDisabled = true,

   scrollHeight = 480,

   listener = scrollListener,

   topPadding = 25

  }

local bg = display.newRect( 0, 0, display.contentWidth, display.contentHeight )

bg.anchorX = 0

bg.anchorY = 0

bg:setFillColor( 1 )

scrollView:insert( bg )

–textBox1

local textBox1 = native.newTextField( 160, 10, 300, 40 )

textBox1.size = 20

textBox1:addEventListener( “userInput”, textBox1 )

textBox1.inputType = “number”

scrollView:insert( textBox1 )

–textBox2

local textBox2 = native.newTextField( 160, 60, 300, 40 )

textBox2.size = 20

textBox2:addEventListener( “userInput”, textBox2 )

textBox2.inputType = “number”

scrollView:insert( textBox2 )

–textBox1

local textBox3 = native.newTextField( 160, 110, 300, 40 )

textBox3.size = 20

textBox3:addEventListener( “userInput”, textBox3 )

textBox3.inputType = “number”

scrollView:insert( textBox3 )

–textBox4

local textBox4 = native.newTextField( 160, 160, 300, 40 )

textBox4.size = 20

textBox4:addEventListener( “userInput”, textBox4 )

textBox4.inputType = “number”

scrollView:insert( textBox4 )

–textBox5

local textBox5 = native.newTextField( 160, 210, 300, 40 )

textBox5.size = 20

textBox5:addEventListener( “userInput”, textBox5 )

textBox5.inputType = “number”

scrollView:insert( textBox5 )

–textBox6

local textBox6 = native.newTextField( 160, 260, 300, 40 )

textBox6.size = 20

textBox6:addEventListener( “userInput”, textBox6 )

textBox6.inputType = “number”

scrollView:insert( textBox6 )

–textBox7

local textBox7 = native.newTextField( 160, 310, 300, 40 )

textBox7.size = 20

textBox7:addEventListener( “userInput”, textBox7 )

textBox7.inputType = “number”

scrollView:insert( textBox7 )

–textBox8

local textBox8 = native.newTextField( 160, 360, 300, 40 )

textBox8.size = 20

textBox8:addEventListener( “userInput”, textBox8 )

textBox8.inputType = “number”

scrollView:insert( textBox8 )

–textBox9

local textBox9 = native.newTextField( 160, 410, 300, 40 )

textBox9.size = 20

textBox9:addEventListener( “userInput”, textBox9 )

textBox9.inputType = “number”

scrollView:insert( textBox9 )

–textBox10

local textBox10 = native.newTextField( 160, 460, 300, 40 )

textBox10.size = 20

textBox10:addEventListener( “userInput”, textBox10 )

textBox10.inputType = “number”

scrollView:insert( textBox10 )

–textBox11

local textBox11 = native.newTextField( 160, 510, 300, 40 )

textBox11.size = 20

textBox11:addEventListener( “userInput”, textBox11 )

textBox11.inputType = “number”

scrollView:insert( textBox11 )

–textBox12

local textBox12 = native.newTextField( 160, 560, 300, 40 )

textBox12.size = 20

textBox12:addEventListener( “userInput”, textBox12 )

textBox12.inputType = “number”

scrollView:insert( textBox12 )

sceneGroup:insert( scrollView )

end

function scene:show( event )

local sceneGroup = self.view

end

function scene:hide( event )

local sceneGroup = self.view

end

function scene:destroy( event )

local sceneGroup = self.view

end


– Listener setup

scene:addEventListener( “create”, scene )

scene:addEventListener( “show”, scene )

scene:addEventListener( “hide”, scene )

scene:addEventListener( “destroy”, scene )


return scene

[/lua]

Thanks,

Matt.

Hi Matt,

Before I continue to assist you, can you edit/close this thread or the other thread which seems to be talking about the same thing? I think you have two threads in the forums on this exact same topic, so I’m not sure what the status of your situation is.

Thanks,

Brent

Just closed the other thread, so this one is the only thread now which is up to date.

Thanks,
Matt.

Hi Matt,

Can you answer the questions that Rob and I have asked you previously? For example, do the native fields do anything at all? Or do they absolutely stay locked in place on the screen on scene transition? Also, what kind of transition are you using? Fade, slideIn/Out, crossFade?

Brent

I’m not using any scene transitions, when I click one of my tab buttons to change scene everything disappears from the current scene and everything appears from the new scene at the same time in a slit of a second. The native fields move in the scrollview when on the correct scene, but when the scene is changed they stay on screen and do not move but can still be opened and used.
Hope this helps.

Matt.

Hi Matt,

What is the “tab button” you refer to? Where do you create your tabs? When clicked, what is the action you take?

Thanks,

Brent