Well, I got this code problem, I turned my little proggy into a popup spammer by accident, don't try this at home,
its kind of annoying :|
So I was trying the SelectedGadgetItem that soja told me to look at for my question on how to know what tabber the user selected so I came out with this piece of buggy code :D
Code Below
I have no clue what so ever on what I did wrong :|
The code is in My main program loop.
Problem is:
it keeps poping popups when its at the last tabber "layers". But the number should be 3 on the messager variable, and the popup should only appear when the variable is 2 not 3.
its kind of annoying :|
So I was trying the SelectedGadgetItem that soja told me to look at for my question on how to know what tabber the user selected so I came out with this piece of buggy code :D
Code Below
If file_open = True Then mainTabber=CreateTabber( 0,0,w,h,WinHandle ) SetGadgetLayout mainTabber,1,1,1,1 InsertGadgetItem(mainTabber,0,"0") InsertGadgetItem(mainTabber,1,"1") InsertGadgetItem(mainTabber,2,"2") UpdateWindowMenu WinHandle Tabber = SelectedGadgetItem( mainTabber ) Messager = 0 Select Tabber Case 0 If Messager = 0 Then Notify "Tabber 1" Messager = messager + 1 EndIf Case 1 If Messager = 1 Then Notify "Tabber 1" Messager = messager + 1 EndIf Case 2 If Messager = 2 Then Notify "Tabber 1" Messager = messager + 1 EndIf End Select EndIf
I have no clue what so ever on what I did wrong :|
The code is in My main program loop.
Problem is:
it keeps poping popups when its at the last tabber "layers". But the number should be 3 on the messager variable, and the popup should only appear when the variable is 2 not 3.