B4A Version: 10.90
Parsing code. Error
Error parsing program.
Error description: Undeclared variable 'iif' is used before it was assigned any value.
Error occurred on line: 475 (ASTabMenu)
Dim CurrentTabUnderlineAnimationDuration As Int = IIf(g_isInUpdate = False,g_CurrentTabUnderlineAnimationDuration,0)
Hi, still having same error (downloaded from 1st page of post, replaced external lib, opened project. Unchecked lib, saved, closed B4a, re-opened and chekecd lib).
Hi Alexander, thanks. I put an ASTabMenu in designer for page 2 and 3 and re-declare B4XPage_Created (AddTab) and ASTabMenu1_TabClick. But when I change between pages #2 and #3, underlined icon remains the same. If I click again on page tab is underlined correctly. Tried:
B4X:
ASTabMenu1.AddTab(xui.Color_ARGB(255,39, 174, 97),"Page 1",ASTabMenu1.FontToBitmap(Chr(0xF015),False,30,xui.Color_White),"")
ASTabMenu1.AddTab(xui.Color_ARGB(152,39, 174, 97),"Page 2",ASTabMenu1.FontToBitmap(Chr(0xF179),False,30,xui.Color_White),"")
ASTabMenu1.AddTab(xui.Color_ARGB(255,39, 174, 97),"Page 3",ASTabMenu1.FontToBitmap(Chr(0xF11B),False,30,xui.Color_White),"")
ASTabMenu1.SetTab(1, True, True) 'this is for page #2, on page #3 index is 2
I don't know, how should I know what your project looks like. Make a new thread, create a test project and upload it, then I can tell you what you are doing wrong.
Unfortunately, this is not possible, because at that time I always used only global variables, which then apply to all.
I would have to rewrite something. But unfortunately I can't do it today, because I'm not feeling well at the moment.
Unfortunately, this is not possible, because at that time I always used only global variables, which then apply to all.
I would have to rewrite something. But unfortunately I can't do it today, because I'm not feeling well at the moment.
I am using b4xlib from first post which shows version 1.24 in the manifest and 1.20 in the code. ( Should it matter? )
Also:
I'm using ASTabMenu with "Horizontal" and "text only" mode selected in Designer Custom Properties
mBase width is 360dip and height is 40dip yet the menu comes as vertical