| View previous topic :: View next topic |
| Author |
Message |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Mon Sep 15, 2003 12:59 pm Post subject: saving table contents |
|
|
hi,
i'm having some trouble saving the contents of a table together with its glyphs...i tried LIST SAVE and LIST SAVEFILE but the glyphs are not saved, just the table contents...any ideas?
thanks in advance
serge _________________
|
|
| Back to top |
|
 |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Mon Sep 15, 2003 1:02 pm Post subject: |
|
|
In VDS 5, the glyphs are not stored within the table. You would have to create a seperate list with the glyphs you used to keep track of them. _________________ Chris
Http://theblindhouse.com |
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Mon Sep 15, 2003 1:10 pm Post subject: |
|
|
ok...thanks for that liquidcode...just noticed on the homepage of vdsworld that you are an administrator...is that a new development? if it is, congrats
serge _________________
|
|
| Back to top |
|
 |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Mon Sep 15, 2003 1:14 pm Post subject: |
|
|
Well, I've been an admin for some time now, but, thanks.  _________________ Chris
Http://theblindhouse.com |
|
| Back to top |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Mon Sep 15, 2003 1:29 pm Post subject: |
|
|
Saving gylphs you assigned using VDS is probably not possible as it is hashed out also.
BTW if you are working on table element you may have a look at this to spice it up.
http://codescript.vdsworld.com/VDS5src/table_control_API.zip _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Mon Sep 15, 2003 1:45 pm Post subject: |
|
|
great stuff codescript...i will definitely look at using some of these api's
one question...is there an api i can use to unselect items in a table ie. the table is displayed but no items are selected!
thanks in advance
serge _________________
|
|
| Back to top |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Mon Sep 15, 2003 6:34 pm Post subject: |
|
|
Just send a WM_LBUTTONDOWN message to the Table element before dialog show. I have not implemented much of the click stuff due to a bug in VDS - Rt clicking a selected item is ignored
If you want to still differentiate RT and left click and show a rt click menu U can take a look at:
http://forum.vdsworld.com/viewtopic.php?t=1784
the last post I made in VDS tags.
Also I have another >20 API to show icons, list etc (just like your windows explorer views) bump edge, flat header, MDI child style etc etc. I will put thm together and post sometime. _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Tue Sep 16, 2003 8:46 am Post subject: |
|
|
sounds good...can't wait for it...
serge _________________
|
|
| Back to top |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Tue Sep 16, 2003 4:05 pm Post subject: |
|
|
Hi Serge
You can re-download it. I have updated it with the new examples. Now 63 commands Image list and large Icons are two things I left out to see how the VDS update comes up fixing the glyphs. Any changes may break it.
Enjoy _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Tue Sep 16, 2003 5:19 pm Post subject: |
|
|
| Quote: | | Image list and large Icons are two things I left out to see how the VDS update comes up fixing the glyphs. Any changes may break it. |
What is the problem with the glyphs now? _________________ The Tech Pro
www.tech-pro.net |
|
| Back to top |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Tue Sep 16, 2003 5:27 pm Post subject: |
|
|
If you select a icon from a particular module then all the subsequent ones will be the same as first one. You said it is due to problem with the hashing VDS does. This occurs with bitcombo and Freezingfire some where mentioned same to occur with Table too.
http://forum.vdsworld.com/viewtopic.php?t=1887
I haven't tried personally though with table element as I couldn't set a bitmap to it
| Code: | | list add,table1,hello@tab()hi@tab()hey! This is very long text|new.bmp |
This says unhandled exception (my field sep is default and not TAB
| Code: | | list add,table1,hello@tab()hi@tab()hey! This is very long text@tab()new.bmp |
This doesn't work. I have tried @path(%0) @shortname both.
| VDS Help file wrote: | | Tab characters must be used to separate the data within a string that is to go into separate columns. In addition, a 16 x 16 pixel bitmap may be specified to appear at the left hand side of each item in the table. The bitmap must be specified using a filename or resource filename, at the end of the string, separated from the data by the current field separator character (as with the BITCOMBO and BITLIST dialog elements.) It follows from this that the current field separator should not be a tab character. |
I don't know what I am doing wrong.
(I wanted to associate another image list to the Table for the large icons. Probably I will have to take care of small ones too as the vds image list may get detached ?? So if any changes are going to be made that wont work) _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Wed Sep 17, 2003 8:24 am Post subject: |
|
|
Okay, I remember now. I fixed that problem.
Because the VDS TABLE element only implements a subset of the Listview functionality, it hasn't assigned an image list for large icons. So the chances are that if you did that using APIs you won't break anything. _________________ The Tech Pro
www.tech-pro.net |
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Wed Sep 17, 2003 8:33 am Post subject: |
|
|
hi codescript,
i redownloaded it and it shows around 41 items instead of the mentioned 63...am i doing something wrong?
serge _________________
|
|
| Back to top |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Wed Sep 17, 2003 12:14 pm Post subject: |
|
|
Hi Serge
You are right file was not updated somehow. I fixed it
Now U have 63 functions many are in a DSU more demos and window styles. User can minimize multiple tables within the dialog and work!.
Enjoy.
Jules
I just confirmed that the table/bitcomo/list DOES NOT load a bitmap from the disk as in my above example.Only it loads is from a resource in an dll/exe etc. I hope the fix has taken care of that too. _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Wed Sep 17, 2003 1:21 pm Post subject: |
|
|
My test script has list add commands similar to yours and it works with or without a # in front of the bitmap name. That's tabletest.dsc in the VDS 5 demos. _________________ The Tech Pro
www.tech-pro.net |
|
| Back to top |
|
 |
|