| View previous topic :: View next topic |
| Author |
Message |
X-Tools Valued Contributor

Joined: 20 Sep 2001 Posts: 296 Location: Germany
|
Posted: Fri Aug 22, 2003 11:20 am Post subject: Get bitmap name from table item |
|
|
Hi,
is there a way to get the bitmap name from a bitlist or table like in tommy's vdslists ?
Bye, Fabian |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Fri Aug 22, 2003 12:16 pm Post subject: |
|
|
I think I posted a wish in the wish list about this exact thing. It
bugs me I can't do that.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Mon Aug 25, 2003 6:36 pm Post subject: |
|
|
There is no way to do that. The name of the bitmap isn't stored anywhere in the table element or the image list that contains the images it displays. Once the name is used to load the image into the image list, all that's stored is a hash value to ensure only one copy of the image is loaded.
It would be a considerable memory and performance overhead for large tables using many different images to keep the filename of every image. You set the image in your program, presumably using some formula based on the data on that line, so if you need the image name you should be able to work it out by repeating the formula. It doesn't make sense to burden all VDS programs that use tables with that overhead. That was the design philosophy, anyway. _________________ The Tech Pro
www.tech-pro.net |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Mon Aug 25, 2003 6:58 pm Post subject: |
|
|
Well couldn't you just let it return them if you specify a style, such
as "SAVEBITMAPNAMES" or something? Then it wouldn't have to
store them unless you told the interpreter to do that.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
X-Tools Valued Contributor

Joined: 20 Sep 2001 Posts: 296 Location: Germany
|
Posted: Tue Aug 26, 2003 5:07 am Post subject: |
|
|
I have another idea. I use one cool trick in my apps for saving database ids for each line. create a column with 0 pixel width - it will be invisible. i will use this too for saving the image name.
one small problem - if the user drags the mouse directly on the posistion of the 0 pixel column, he can change the size of it and so it becomes
visible, but i think this is not a big problem
bye, fabian |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Tue Aug 26, 2003 1:48 pm Post subject: |
|
|
But still I think that the STYLE idea would work fine too... And then
we wouldn't have the small problem with the user being able to
drag the left column.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
|