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 


Table Element Bug

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
Rubes_sw
Valued Contributor
Valued Contributor


Joined: 11 Jun 2001
Posts: 625
Location: Northern Ireland

PostPosted: Tue Dec 30, 2003 4:45 pm    Post subject: Table Element Bug Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Tue Dec 30, 2003 4:46 pm    Post subject: Reply with quote

Hi,

Are you sure you're using the right field seperator? Smile
Also can you provide a simple example?

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Rubes_sw
Valued Contributor
Valued Contributor


Joined: 11 Jun 2001
Posts: 625
Location: Northern Ireland

PostPosted: Tue Dec 30, 2003 5:49 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Tue Dec 30, 2003 6:32 pm    Post subject: Reply with quote

This indeed looks like a bug. I'm moving this to "Bug Reports"
_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Wed Dec 31, 2003 6:03 am    Post subject: Reply with quote

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 Confused

serge

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Wed Dec 31, 2003 2:46 pm    Post subject: Reply with quote

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 Question

_________________
Home of

Give VDS a new purpose!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Wed Dec 31, 2003 3:51 pm    Post subject: Reply with quote

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
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Wed Dec 31, 2003 3:57 pm    Post subject: Reply with quote

Good thinking CodeScript! Very Happy Very Happy
_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Wed Dec 31, 2003 4:55 pm    Post subject: Reply with quote

Thanks Very Happy
_________________
Regards
- CodeScript
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Wed Dec 31, 2003 5:11 pm    Post subject: Reply with quote

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
View user's profile Send private message
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Wed Dec 31, 2003 5:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Thu Jan 01, 2004 4:56 am    Post subject: Reply with quote

Oh I just reinvented the wheel Embarassed Wink
_________________
Regards
- CodeScript
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Thu Jan 01, 2004 3:39 pm    Post subject: Reply with quote

CodeScript wrote:
Oh I just reinvented the wheel Embarassed Wink


Great minds think alike. Smile

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Thu Jan 01, 2004 7:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Fri Jan 02, 2004 5:13 pm    Post subject: Reply with quote

CodeScript wrote:
Oh I just reinvented the wheel Embarassed Wink


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? Wink

_________________
Home of

Give VDS a new purpose!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Bug Reports 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