| View previous topic :: View next topic |
| Author |
Message |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Tue Apr 11, 2006 1:17 am Post subject: TABS |
|
|
Hi
Does anyone else have trouble with tabs after you get complex and 4 or more?
I've troubleshot setpos sizes from 500 to 10000 with all different variations.
I've remmed different groups and couples all day
Ok, I'm totally insane again
I know what your thinking, when was I not
Maybe I still have that 1 more TAB trick to learn...
Any ideas would help tremidious |
|
| Back to top |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Tue Apr 11, 2006 5:00 am Post subject: |
|
|
Heres a stripped version of my program, if I dont move the TEXT other TAB data is in conflict with it, but I cant seem to resolve it.
| Code: | Title Tabtest
DIALOG CREATE,Tabtest,-1,0,450,397,SAVEPOS
DIALOG ADD,TAB,testtabs,38,4,444,214,tab1|tab2|tab3|tab4|tab5|tab6
# I have to POS-move below to make way for prevoius tabs data (this is stripped version)
DIALOG ADD,TEXT,test,1120,1050
DIALOG SHOW
:Evloop
wait event
goto @event()
:tab5CLICK
GOSUB POSshow
wait "0.1"
dialog show,test
%%text = testing testing testing testing testing testing
dialog set,test,%%text
%%vertical = @DLGPOS(test,T)
%%horizontal = @DLGPOS(test,L)
%%width = @DLGPOS(test,W)
%%height = @DLGPOS(test,H)
info TAB"5" "-" no text will show on dialog@CR()@CR()%%vertical@CR()%%horizontal@CR()%%width@CR()%%height@CR()@CR()I see it here in info"???"@CR()Why not apply on the dialog"."
goto evloop
#_______ SHOW HIDE
:POSshow
DIALOG setpos,test,120,50
EXIT
:POShide
DIALOG setpos,test,1120,1050
dialog hide,test
EXIT
:tab1click
GOSUB POShide
goto evloop
:tab2click
GOSUB POShide
goto evloop
:tab3click
GOSUB POShide
goto evloop
:tab4CLICK
GOSUB POShide
goto evloop
:tab6CLICK
GOSUB POShide
goto evloop
:Close
EXIT |
Thanks in advance (Imma pain)  |
|
| Back to top |
|
 |
Hooligan VDS Developer


Joined: 28 Oct 2003 Posts: 480 Location: California
|
Posted: Tue Apr 11, 2006 12:43 pm Post subject: |
|
|
This seems to work for me... (I think...)
| Code: | Title Tabtest
DIALOG CREATE,Tabtest,-1,0,450,397,SAVEPOS
DIALOG ADD,TAB,testtabs,38,4,444,214,tab1|tab2|tab3|tab4|tab5|tab6
# I have to POS-move below to make way for prevoius tabs data (this is stripped version)
DIALOG ADD,TEXT,test,120,50
DIALOG SHOW
:Evloop
wait event
goto @event()
:tab5CLICK
GOSUB POSshow
wait "0.1"
rem dialog show,test
%%text = testing testing testing testing testing testing
dialog set,test,%%text
%%vertical = @DLGPOS(test,T)
%%horizontal = @DLGPOS(test,L)
%%width = @DLGPOS(test,W)
%%height = @DLGPOS(test,H)
info TAB"5" "-" no text will show on dialog@CR()@CR()%%vertical@CR()%%horizontal@CR()%%width@CR()%%height@CR()@CR()I see it here in info"???"@CR()Why not apply on the dialog"."
goto evloop
#_______ SHOW HIDE
:POSshow
DIALOG setpos,test,120,50
EXIT
:POShide
DIALOG setpos,test,1120,1050
rem dialog hide,test
EXIT
:tab1click
GOSUB POShide
goto evloop
:tab2click
GOSUB POShide
goto evloop
:tab3click
GOSUB POShide
goto evloop
:tab4CLICK
GOSUB POShide
goto evloop
:tab6CLICK
GOSUB POShide
goto evloop
:Close
EXIT
|
Hooligan _________________ Hooligan
Why be normal? |
|
| Back to top |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Wed Apr 12, 2006 2:03 am Post subject: |
|
|
How do I explain this, hehe
That works for me too now...
But before I stripped out the 2400+ lines to make an easy to see
example of my problem, the problem is gone - lol
I mean, before if I did it like your example, it would not show, because
of other dialogs in the other tabs, I spent a day trying to adjust them
first, and another day to weed them out thinking it must be the TEXT one.
Any ways that works here, but not in my original program, sorry.
And I have this problem everytime I just about get my TABs done and
looking good, TABs are allmost starting to seem evil to me
I'm sure its something simple, and maybe in about 10 years I'll stumble
on my stupidity again and be able to use and enjoy TABs. So far they
allways fail me or I mean I fail TABs.
Thanks for trying to help, I do appreciate.. |
|
| Back to top |
|
 |
Hooligan VDS Developer


Joined: 28 Oct 2003 Posts: 480 Location: California
|
Posted: Wed Apr 12, 2006 3:00 am Post subject: |
|
|
I noticed in your original example you were both hiding the text AND
moving it to a position off the window... I just changed it to do only one of
those... (shift the position). I also made it create it within the window,
initially... Maybe you're inadvertantly doing something similar...
Hooligan _________________ Hooligan
Why be normal? |
|
| Back to top |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Fri Apr 14, 2006 3:28 am Post subject: |
|
|
OK,
Here I have a real simple version for you to get working please
I know its all wrong, but I want to see a correct formula for all my future tabs, Thanks..
| Code: | Title Tabtest
DIALOG CREATE,Tabtest,-1,0,450,427,SAVEPOS
DIALOG ADD,TAB,testtabs,38,4,444,244,tab1|tab2
GOSUB loadTABs
DIALOG SHOW
:Evloop
wait event
goto @event()
:loadTABs
dialog ADD,LINE,sloline,61,8,435,217
dialog ADD,radio,SLOradio,65,30,110,174,SOURCE SLO files,player"0."slo|player"1."slo|player"2."slo|player"3."slo|player"4."slo|player"5."slo|player"6."slo|player"7."slo,player"0."slo
dialog ADD,radio,SLOchecks,65,312,110,174,TARGET SLO files,player"0."slo|player"1."slo|player"2."slo|player"3."slo|player"4."slo|player"5."slo|player"6."slo|player"7."slo,player"0."slo
wait "0.02"
dialog ADD,LINE,vloline,61,8,435,217
dialog ADD,radio,VLOradio,65,30,110,174,SOURCE VLO files,player"0."vlo|player"1."vlo|player"2."vlo|player"3."vlo|player"4."vlo|player"5."vlo|player"6."vlo|player"7."vlo,player"0."vlo
dialog ADD,radio,VLOchecks,65,312,110,174,TARGET VLO files,player"0."vlo|player"1."vlo|player"2."vlo|player"3."vlo|player"4."vlo|player"5."vlo|player"6."vlo|player"7."vlo,player"0."vlo
wait "0.02"
GOSUB HIDE
EXIT
:HIDE
dialog hide,VLOradio
dialog hide,VLOchecks
dialog hide,vloline
dialog hide,SLOradio
dialog hide,SLOchecks
dialog hide,sloline
EXIT
:tab1click
GOSUB HIDE
dialog show,sloline
dialog show,SLOradio
dialog show,SLOchecks
goto evloop
:tab2click
GOSUB HIDE
dialog show,vloline
dialog show,VLOradio
dialog show,VLOchecks
goto evloop
:Close
EXIT |
Appreciate any info  |
|
| Back to top |
|
 |
WidgetCoder Contributor


Joined: 28 May 2002 Posts: 126 Location: CO, USA
|
Posted: Fri Apr 14, 2006 4:31 am Post subject: |
|
|
I typically use add/remove with tabs and store any changed values to a variable, list or registry on tabCLICK.
You could try:
| Code: |
Title Tabtest
DIALOG CREATE,Tabtest,-1,0,450,427,SAVEPOS
DIALOG ADD,TAB,testtabs,38,4,444,244,tab1|tab2
DIALOG SHOW
%1 = Tab1
gosub %1ADD
:Evloop
wait event
%E = @event()
goto %E
:tab1CLICK
:tab2CLICK
%2 = @substr(%E,1,-5)
gosub %1REMOVE
shift
gosub %1ADD
goto evloop
:tab1ADD
dialog ADD,LINE,sloline,61,8,435,217
dialog ADD,radio,SLOradio,65,30,110,174,SOURCE SLO files,player"0."slo|player"1."slo|player"2."slo|player"3."slo|player"4."slo|player"5."slo|player"6."slo|player"7."slo,player"0."slo
dialog ADD,radio,SLOchecks,65,312,110,174,TARGET SLO files,player"0."slo|player"1."slo|player"2."slo|player"3."slo|player"4."slo|player"5."slo|player"6."slo|player"7."slo,player"0."slo
exit
:tab1REMOVE
dialog REMOVE,sloline
exit
:tab2ADD
dialog ADD,LINE,vloline,61,8,435,217
dialog ADD,radio,VLOradio,65,30,110,174,SOURCE VLO files,player"0."vlo|player"1."vlo|player"2."vlo|player"3."vlo|player"4."vlo|player"5."vlo|player"6."vlo|player"7."vlo,player"0."vlo
dialog ADD,radio,VLOchecks,65,312,110,174,TARGET VLO files,player"0."vlo|player"1."vlo|player"2."vlo|player"3."vlo|player"4."vlo|player"5."vlo|player"6."vlo|player"7."vlo,player"0."vlo
exit
:tab2REMOVE
dialog REMOVE,vloline
exit
:Close
EXIT |
|
|
| Back to top |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Fri Apr 14, 2006 4:59 am Post subject: |
|
|
Cool, ThanksWidget Coder
So I guess hide and or POS was too unpredictible and crappy results.
And as far as flicker, TABs dont notice.
And also as the example below, I would be able to shift up to 9 TABs as would prolly always be plenty.
Below I added 1 more tab, is it correct or OK? (it seemed to work ok here)
| Code: | Title Tabtest
DIALOG CREATE,Tabtest,-1,0,450,427,SAVEPOS
DIALOG ADD,TAB,testtabs,38,4,444,244,tab1|tab2|tab3
DIALOG SHOW
%1 = Tab1
gosub %1ADD
:Evloop
wait event
%E = @event()
goto %E
:tab1CLICK
:tab2CLICK
:tab3CLICK
%2 = @substr(%E,1,-5)
gosub %1REMOVE
shift
gosub %1ADD
goto evloop
:tab1ADD
dialog ADD,LINE,sloline,61,8,435,217
dialog ADD,radio,SLOradio,65,30,110,174,SOURCE SLO files,player"0."slo|player"1."slo|player"2."slo|player"3."slo|player"4."slo|player"5."slo|player"6."slo|player"7."slo,player"0."slo
dialog ADD,radio,SLOchecks,65,312,110,174,TARGET SLO files,player"0."slo|player"1."slo|player"2."slo|player"3."slo|player"4."slo|player"5."slo|player"6."slo|player"7."slo,player"0."slo
exit
:tab1REMOVE
dialog REMOVE,sloline
exit
:tab2ADD
dialog ADD,LINE,vloline,61,8,435,217
dialog ADD,radio,VLOradio,65,30,110,174,SOURCE VLO files,player"0."vlo|player"1."vlo|player"2."vlo|player"3."vlo|player"4."vlo|player"5."vlo|player"6."vlo|player"7."vlo,player"0."vlo
dialog ADD,radio,VLOchecks,65,312,110,174,TARGET VLO files,player"0."vlo|player"1."vlo|player"2."vlo|player"3."vlo|player"4."vlo|player"5."vlo|player"6."vlo|player"7."vlo,player"0."vlo
exit
:tab2REMOVE
dialog REMOVE,vloline
exit
:tab3ADD
dialog ADD,LINE,zloline,61,8,435,217
dialog ADD,radio,zLOradio,65,30,110,174,SOURCE zLO files,player"0."zlo|player"1."zlo,player"0."zlo
dialog ADD,radio,zLOchecks,65,312,110,174,TARGET zLO files,player"0."zlo|player"1."zlo,player"0."zlo
exit
:tab3REMOVE
dialog REMOVE,zloline
exit
:Close
EXIT |
Thank a godzillion WidgitCoder (guess I was really stumped on TABs)  |
|
| Back to top |
|
 |
WidgetCoder Contributor


Joined: 28 May 2002 Posts: 126 Location: CO, USA
|
Posted: Fri Apr 14, 2006 5:08 am Post subject: |
|
|
Yep
No actually you can add an almost unlimited number of tabs the "@substr(%E,1,-5)" only strips the "CLICK" from the end of the event string. So Tab99CLICK would be Tab99.. |
|
| Back to top |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Fri Apr 14, 2006 5:17 am Post subject: |
|
|
yeah, I wasn't thinking, I noticed you removing -5 (click) first thing, I should have also remembered you only using and needing %1 and %2 (not all 9)
hey thanks again WidgetCoder, I really appreciate it, I can finally enjoy tabs, I been wasting all this time with hide and pos
Something wierd just happened, I had about 12 search pages on nice tab keywords open, and was gonna read all them when I clicked on the 1st one, all pages disappeared. Oh well, must have been god saying your way is the best tab way and go with it  |
|
| Back to top |
|
 |
WidgetCoder Contributor


Joined: 28 May 2002 Posts: 126 Location: CO, USA
|
Posted: Fri Apr 14, 2006 5:24 am Post subject: |
|
|
| I'm glad God agrees:) and you're quite welcome.. Good Night |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|