Hi ABM Gurus...
So, getting back into the loop is not an easy task, but so far... so good (?)
Theming is one of the more challenging aspects of ABMaterial, and one of most importance.
In ABMShared we find the BuildTheme(themeName As String) sub, and the base theme is initiated using MyTheme.Initialize(themeName).
So my logic was that I could use this local variable to add the components themes to MyTheme, resulting in something like MyTheme.AddLAbelTheme(themeName) and by doing so, the Page BuildTheme() sub would call the underlaying Theme with the methods theme.Initialize("pagetheme") and theme.AddABMTheme(ABMShared.MyTheme).
But, it turns out that is NOT the case...
I still have to add the Themes to the Main Theme by giving it a theme name!
So, this doesn't work inside ABMShared BuildTheme(themeName):
MyTheme.AddLabelTheme(themeName)
And I am forced to add it like:
MyTheme.AddLabelTheme("pageTheme") being "pageTheme" the name I've chosen for this theme.
Is there something eluding me on this one?
My intention was to simply add to the MyTheme default theme instead of creating a new one ... I know this is just a small thing... and I can getaround it with many solutions, but I just wonder..!
So, getting back into the loop is not an easy task, but so far... so good (?)
Theming is one of the more challenging aspects of ABMaterial, and one of most importance.
In ABMShared we find the BuildTheme(themeName As String) sub, and the base theme is initiated using MyTheme.Initialize(themeName).
So my logic was that I could use this local variable to add the components themes to MyTheme, resulting in something like MyTheme.AddLAbelTheme(themeName) and by doing so, the Page BuildTheme() sub would call the underlaying Theme with the methods theme.Initialize("pagetheme") and theme.AddABMTheme(ABMShared.MyTheme).
But, it turns out that is NOT the case...
I still have to add the Themes to the Main Theme by giving it a theme name!
So, this doesn't work inside ABMShared BuildTheme(themeName):
MyTheme.AddLabelTheme(themeName)
And I am forced to add it like:
MyTheme.AddLabelTheme("pageTheme") being "pageTheme" the name I've chosen for this theme.
Is there something eluding me on this one?
My intention was to simply add to the MyTheme default theme instead of creating a new one ... I know this is just a small thing... and I can getaround it with many solutions, but I just wonder..!