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


Joined: 11 Jun 2001 Posts: 625 Location: Northern Ireland
|
Posted: Tue Dec 30, 2003 4:45 pm Post subject: Table Element Bug |
|
|
When a Table Element is ontop of a Tab Element and you use list
add,table1,data@tab()etc
It does not add the data, it adds a blank line etc
Nathan |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Tue Dec 30, 2003 4:46 pm Post subject: |
|
|
Hi,
Are you sure you're using the right field seperator?
Also can you provide a simple example? _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
Rubes_sw Valued Contributor


Joined: 11 Jun 2001 Posts: 625 Location: Northern Ireland
|
Posted: Tue Dec 30, 2003 5:49 pm Post subject: |
|
|
Heres an example:
| Code: | DIALOG CREATE,New Dialog,-1,0,485,313
DIALOG ADD,TAB,TAB1,10,8,475,263,Tab 1|Tab 2|Tab 3
DIALOG ADD,TABLE,TABLE1,39,14,440,215,Column 1[80]|Column 2[80]|Column 3[80]
DIALOG ADD,BUTTON,BUTTON1,279,386,64,24,BUTTON1
dialog show
:evloop
wait event
goto @event()
:BUTTON1BUTTON
list add,table1,Data@tab()Data2@tab()Data3
goto evloop |
Clicking on the Button should add the data to the list, but it just adds emtpy data !
Nathan |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Tue Dec 30, 2003 6:32 pm Post subject: |
|
|
This indeed looks like a bug. I'm moving this to "Bug Reports" _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Wed Dec 31, 2003 6:03 am Post subject: |
|
|
just in case someone wants to check as i did...removing the tab element makes the code work properly...somehow the presence of the tab element means that data cannot be added to the table as it should...interesting bug
serge _________________
|
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Wed Dec 31, 2003 2:46 pm Post subject: |
|
|
Hi All,
I believe in the VDS help file there is mention of a known issue with the Tab element and the Table element working together  _________________ Home of
Give VDS a new purpose!
 |
|
| Back to top |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Wed Dec 31, 2003 3:51 pm Post subject: |
|
|
I think it is a known issue with table and Tab as mindpower said.
You can have a workaround by placing the Table over a Group/Line
Dialog element of exactly same size as table. Try this:
| Code: | DIALOG CREATE,New Dialog,-1,0,485,313
DIALOG ADD,TAB,TAB1,10,8,475,263,Tab 1|Tab 2|Tab 3
DIALOG ADD,GROUP,GROUP1,39,19,451,222
DIALOG ADD,TABLE,TABLE1,39,19,451,222,Column 1[80]|Column 2[80]|Column 3[80]
DIALOG ADD,BUTTON,BUTTON1,279,386,64,24,BUTTON1
dialog show
:evloop
wait event
goto @event()
:BUTTON1BUTTON
list add,table1,Data@tab()Data2@tab()Data3
goto evloop |
_________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Wed Dec 31, 2003 3:57 pm Post subject: |
|
|
Good thinking CodeScript!  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Wed Dec 31, 2003 4:55 pm Post subject: |
|
|
Thanks  _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Wed Dec 31, 2003 5:11 pm Post subject: |
|
|
From the VDS Help File:
| Code: | | Problems can occur when a TABLE dialog element is placed on a TAB element. These include data not being displayed, and access violations occurring when the TABLE element is removed using DIALOG REMOVE. A workaround is to place the TABLE dialog element on top of a LINE dialog element of exactly the same size. This LINE dialog element will be invisible, since it is hidden by the TABLE. To remove the TABLE when switching tabs, remove the LINE element instead. Because the LINE element acts as a container, the TABLE element is automatically removed at the same time. |
-Garrett _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Wed Dec 31, 2003 5:15 pm Post subject: |
|
|
Additional note here.... You don't have to remove the line, you can also
just hide it and it hides the table along with it.
Keep in mind though, that all subsequent additions of elements that fall
within the boundries of the line become the property of the line (or
group) element. So if you have other elements on other tabs that you
don't want taken over by the line element, be sure to place them on
your dialog prior to the line element and the table.
-Garrett _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Thu Jan 01, 2004 4:56 am Post subject: |
|
|
Oh I just reinvented the wheel  _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Thu Jan 01, 2004 3:39 pm Post subject: |
|
|
| CodeScript wrote: | Oh I just reinvented the wheel  |
Great minds think alike.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Thu Jan 01, 2004 7:52 pm Post subject: |
|
|
It's easy to miss things in the help file. It's getting so big that even I
can easily miss things in it.
-Garrett _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Fri Jan 02, 2004 5:13 pm Post subject: |
|
|
| CodeScript wrote: | Oh I just reinvented the wheel  |
I think it is ok to reinvent something when you didn't know it was invented. If a tree falls in a forest and no one was there to witness it did it make a sound?  _________________ Home of
Give VDS a new purpose!
 |
|
| Back to top |
|
 |
|