View previous topic :: View next topic |
Author |
Message |
SuperCharlie Newbie

Joined: 24 Apr 2002 Posts: 21 Location: Beaumont, Tx
|
Posted: Tue Apr 30, 2002 4:07 pm Post subject: Banging Head On Desk... |
|
|
Well Guys,
I got my new toy home last night (VDS 3.51) all ready to completely re-write my now popular game launcher app and had nothing but nightmares.
I decided to put tabs on it to save screen real estate and catagorize the areas, in hopes of adding more options in the future. There are quite a few input and RADIO boxes on it as well as some text.
The first thing I did was convert it from 2.21, which seemed to work pretty well. Then I copied all the DIALOG ADD's to a text file and made hides and show areas for each tab. All good.
After painstakingly arranging all my controls and hiding and showing them on load and tabCLICK, this is when the nightmare started.
Once loaded (or shown) these guys would not hide unless I changed their values. (Max-Players would hide, Max Players would not, Time-Limit would, Time Limit would not)
DIALOG ADD,TEXT,timelimittxt,152,67,,,Time Limit,STYLE2
DIALOG ADD,TEXT,maxplayerstxt,123,61,,,Max Players,STYLE2
Took me an hour and 2 runs through recreating the hides and shows to figure that one out.
I tried to recreate the problem in a empty script this morning and it worked just fine, but when I load up the whole script, no go.
Prob#2 which is really bigger than #1
I have quite a few RADIO buttons with yes/no on em. After scratchin my head for a looonnggg time trying to figure out where my invisible controls were I came to realize anything inside these will be hidden (including buttons specifically) if you hide the radio button.
Example: Tab1 has a radio button on it, Tab2 has a regular button on it right on top of the radio Tab1, hide the radio, and mr. button on Tab2 dont show.
Man.. and all I wanted to do was put some tabs on my app. I got thiiiiisss close to trashin the whole thing and startin over in somethin else. I mean, cmon, THIS is what VDS was MEANT to do!!!
Any ideas on the radio thing would be appreciated. I guess I can work around the text thing, or it may be a radio prob in disguise, like I said, theres a lot of em on the page.
Thanks..
SC |
|
Back to top |
|
 |
moke Contributor

Joined: 02 Jan 2002 Posts: 162
|
Posted: Tue Apr 30, 2002 5:07 pm Post subject: |
|
|
Hi SuperCharlie,
I usually make tabs dynamic. When you click on TAB1 the dialog elements get added so they are visible. When you click on the TAB2, the elements from TAB1 are removed (using DIALOG REMOVE) and the dialog element for TAB2 are added. When a tab is clicked I use gosub to remove the elements before the new ones are drawn. This way only the elements needed for the active tab are accessable to the application and can't be confused with others that may be hidden. |
|
Back to top |
|
 |
SuperCharlie Newbie

Joined: 24 Apr 2002 Posts: 21 Location: Beaumont, Tx
|
Posted: Tue Apr 30, 2002 5:20 pm Post subject: |
|
|
Thats a good workaround I guess.. I didnt think of that.. thanks.
Kinda stinks to have to grab the vars every time the tab changes instead of in one big swoop at the end tho..
TY!
SC |
|
Back to top |
|
 |
Hortalonus Valued Contributor


Joined: 15 Mar 2002 Posts: 344 Location: Western USA
|
Posted: Tue Apr 30, 2002 5:23 pm Post subject: |
|
|
SuperCharlie... I've had the same problem with text elements not hiding correctly but I never figured out why (just used a different layout instead). It's good to know I'm not the only one.
moke... that's a method that I never thought of. It would eliminate a bunch of potential problems. I've always used DIALOG HIDE... Thanks for the tip!  |
|
Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Tue Apr 30, 2002 9:22 pm Post subject: |
|
|
Hey Charlie,
I posted an example for dealing with tabs and groups
in the VDS 3 source code section:
http://www.vdsworld.com/forum/viewtopic.php?p=1512#1512
BTW, Radio buttons are similiar to the Group element.
Anything within their borders are treated as members
of the group.
Cheers, Mac  _________________ VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361

Last edited by Mac on Tue Apr 30, 2002 9:34 pm; edited 1 time in total |
|
Back to top |
|
 |
SuperCharlie Newbie

Joined: 24 Apr 2002 Posts: 21 Location: Beaumont, Tx
|
Posted: Tue Apr 30, 2002 9:25 pm Post subject: |
|
|
Thank You Mac, very appreciated..
SC |
|
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
|
|