I am new to B4A but have experience in VB6.
I am busy with a project that will have about 25 screen's/activity and several modules and i have a question about this. I am looking for a way to easy change the settings of the object on the screen and not each time to open all layouts and change the settings manually.
What i want but dont know if possible is to have a 'code module' that handles every object setting like color, textsize and textcolor.
Each object will have a tag and based on the tag the object will be set.
in each Activity_Create i will call that module.
something like this (not real code)
screen 1, Activity_Create, call module.SetObjectSettings(me)
screen 2, Activity_Create, call module.SetObjectSettings(me)
module.SetObjectSetting(screen)
for each object in Screen
select case object.tag
case "layout1"
object.color= colors.red
object.textsize = 12
case "layout2"
object.colors = colors.green
object.textsize =10
case else
end select
next
is this possible and if so how i do this?
I am busy with a project that will have about 25 screen's/activity and several modules and i have a question about this. I am looking for a way to easy change the settings of the object on the screen and not each time to open all layouts and change the settings manually.
What i want but dont know if possible is to have a 'code module' that handles every object setting like color, textsize and textcolor.
Each object will have a tag and based on the tag the object will be set.
in each Activity_Create i will call that module.
something like this (not real code)
screen 1, Activity_Create, call module.SetObjectSettings(me)
screen 2, Activity_Create, call module.SetObjectSettings(me)
module.SetObjectSetting(screen)
for each object in Screen
select case object.tag
case "layout1"
object.color= colors.red
object.textsize = 12
case "layout2"
object.colors = colors.green
object.textsize =10
case else
end select
next
is this possible and if so how i do this?