forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Need Help With Getting Tabs Working

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
starfire
Newbie


Joined: 16 Dec 2008
Posts: 24
Location: Florida USA

PostPosted: Sat Dec 27, 2008 12:33 am    Post subject: Need Help With Getting Tabs Working Reply with quote

Can someone explain to me how these tabs work in VDS. Because I sure have not got a clue as to how to get them to work. I want to have two tabs, each with there own text, list, buttons and edits elemets contained in them. Been trying my darnest to make it work for two days now and it is driving this VDS newbi nuts!


I understand that a tab dialog element is a group element. Dialog elements that are created subsequent to it, and whose top left corner is within its boundaries, are owned by the group element.

So my thinking is that if the Tab is a group than anything that is placed under the :Tab 1CLICK or :Tab 2CLICK is in a group respectfully. But it is either not hiding or not showing or just not working at all. Here is what I wrote but it does not work. Obviously I have it all wrong or it would be working.

I have searched VDS world and saw a few examples but just could not make too much sense out them.

Any help is much appricated.




Title Tab Test 1
DIALOG CREATE,New Dialog,-1,0,789,524
REM *** Modified by Dialog Designer on 12/26/2008 - 18:07 ***
DIALOG ADD,TAB,TAB1,16,40,744,488,Tab 1|Tab 2
DIALOG ADD,TEXT,TEXT1,368,120,,,TEXT1
DIALOG ADD,TEXT,TEXT2,160,168,,,TEXT2
DIALOG ADD,LIST,LIST1,178,270
DIALOG SHOW

goto "TAB 1CLICK"
:Evloop
wait event
goto @event()

:Tab 1CLICK
DIALOG REMOVE,TEXT2
goto evloop

:Tab 2CLICK
DIALOG REMOVE,TEXT1
DIALOG ADD,TEXT,TEXT2,160,168,,,TEXT2
goto evloop
:Close
exit


Thanks
Starfire
Back to top
View user's profile Send private message
Tdk161
Valued Contributor
Valued Contributor


Joined: 08 Feb 2005
Posts: 399
Location: ITALY

PostPosted: Sat Dec 27, 2008 4:07 am    Post subject: Reply with quote

Hi Starfire

You need really add,remove element from dialog on tabclick event?

This work with show/Hide element

Title Tab Test 1
DIALOG CREATE,New Dialog,-1,0,789,524
REM *** Modified by Dialog Designer on 12/26/2008 - 18:07 ***
DIALOG ADD,TAB,TAB1,16,40,744,488,Tab 1|Tab 2
DIALOG ADD,TEXT,TEXT1,368,120,,,TEXT1
DIALOG ADD,TEXT,TEXT2,160,168,,,TEXT2
DIALOG ADD,LIST,LIST1,178,270
DIALOG SHOW

goto "TAB 1CLICK"
:Evloop
wait event
goto @event()

:Tab 1CLICK
DIALOG HIDE,TEXT2
DIALOG SHOW,TEXT1
goto evloop

:Tab 2CLICK
DIALOG HIDE,TEXT1
DIALOG SHOW,TEXT2
goto evloop
:Close
exit
Back to top
View user's profile Send private message Send e-mail
starfire
Newbie


Joined: 16 Dec 2008
Posts: 24
Location: Florida USA

PostPosted: Sat Dec 27, 2008 4:54 pm    Post subject: Reply with quote

Hi Tdk161,


Now it makes a lot more sense to me. I was really lost with the add/remove elements. Somehow
I got it in my head that that was how to do it. The show and hide elements works a lot better.
Thank you very much for clearing up my confusion. Have a great day.

Thanks
Starfire
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
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

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group