Hello all!
I am not able to value other objects found in the Activity and / or in other layouts found in 'activity module' or by code module '
Example :
main module/activity :
Sub Activity_Create(FirstTime As Boolean)
' configurazione
Activity.LoadLayout("aConfig1")
' valorizzazione e traduzione variabili e oggetti
Activity.Title=main.trans.GetText("Configuration")
lblSelLingua.Text=main.trans.GetText("Language")
btnConfig1Memo.Text=main.trans.GetText("Save configuration")
btnConfig1Esce.Text=main.trans.GetText("Exit")
' menu
Activity.AddMenuItem2(main.trans.GetText("Save configuration"), "mnuSalvaConf", LoadBitmap(File.DirAssets, "save2.png"))
Activity.AddMenuItem2(main.trans.GetText("Help"), "mnuHelpConf", LoadBitmap(File.DirAssets, "help6.png"))
Activity.AddMenuItem2(main.trans.GetText("Exit"), "mnuEsceConf", LoadBitmap(File.DirAssets, "exit1.png"))
End Sub
From the module xmod1.bas (code or activity):
how do I change, for example, the value of btnConfig1Memo.Text?
how do I change, for example, the value of a menu item that is on the same Activity or from another module (module code or activity)?
I wrote basicppc : moduloName.objectName.Text="xxx"!
Thank you
Enrico
Sorry for my English. Translated with google translate
I am not able to value other objects found in the Activity and / or in other layouts found in 'activity module' or by code module '
Example :
main module/activity :
Sub Activity_Create(FirstTime As Boolean)
' configurazione
Activity.LoadLayout("aConfig1")
' valorizzazione e traduzione variabili e oggetti
Activity.Title=main.trans.GetText("Configuration")
lblSelLingua.Text=main.trans.GetText("Language")
btnConfig1Memo.Text=main.trans.GetText("Save configuration")
btnConfig1Esce.Text=main.trans.GetText("Exit")
' menu
Activity.AddMenuItem2(main.trans.GetText("Save configuration"), "mnuSalvaConf", LoadBitmap(File.DirAssets, "save2.png"))
Activity.AddMenuItem2(main.trans.GetText("Help"), "mnuHelpConf", LoadBitmap(File.DirAssets, "help6.png"))
Activity.AddMenuItem2(main.trans.GetText("Exit"), "mnuEsceConf", LoadBitmap(File.DirAssets, "exit1.png"))
End Sub
From the module xmod1.bas (code or activity):
how do I change, for example, the value of btnConfig1Memo.Text?
how do I change, for example, the value of a menu item that is on the same Activity or from another module (module code or activity)?
I wrote basicppc : moduloName.objectName.Text="xxx"!
Thank you
Enrico
Sorry for my English. Translated with google translate