Delphi-PRAXiS
Seite 1 von 2  1 2      

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   TMS THTMListbox (https://www.delphipraxis.net/183040-tms-thtmlistbox.html)

drama22 6. Dez 2014 16:17

TMS THTMListbox
 
hello i am trying to put animated gifs inside thtmlistbox , i read the mini reference of Thtmlistbox from here , but there is no example about how to put animated gifs , the image that i try to load i upload it on url example
Delphi-Quellcode:
imagename := 'http://www.delphipraxis.net/images/smilies/icon_redface.gif';
fullitem := '<img src="'+imagename+'" width="24" height="24" align="middle" >' + 'item';
Thtmlistbox.items.Add(fullitem);
but it wont load always the image is blank doesn't load i been long time i didnt find any solution for that , there is a very poor informations about tms online any help with this case ?

Jens01 6. Dez 2014 17:37

AW: TMS THTMListbox
 
miniHtml

drama22 6. Dez 2014 17:48

AW: TMS THTMListbox
 
Zitat:

Zitat von Jens01 (Beitrag 1282449)

i mentioned that i read the reference there is no example on how to use animated gif from url .

mkinzler 6. Dez 2014 18:36

AW: TMS THTMListbox
 
An animated gif is an image

drama22 7. Dez 2014 00:02

AW: TMS THTMListbox
 
Zitat:

Zitat von mkinzler (Beitrag 1282456)
An animated gif is an image

yes i know that but its not showing always blank

vagtler 7. Dez 2014 18:02

AW: TMS THTMListbox
 
Regarding the mentioned Mini HTML documentation the image source cannot be an URL:
Zitat:

specifier can be : idx : name is the index of the image in the associated imagelist
ssys : name is the index of the small image in the system imagelist or a filename for which the corresponding system imagelist is searched
lsys : same as ssys, but for large system imagelist image
file : name is the full filename specifier
res : name of a resource image (not visible at design time) Supported image types: BMP, GIF, PNG. Please note that the resource type should be RT_RCDATA!
no specifier : name of image in an PictureContainer

drama22 7. Dez 2014 19:09

AW: TMS THTMListbox
 
Zitat:

Zitat von vagtler (Beitrag 1282526)
Regarding the mentioned Mini HTML documentation the image source cannot be an URL:
Zitat:

specifier can be : idx : name is the index of the image in the associated imagelist
ssys : name is the index of the small image in the system imagelist or a filename for which the corresponding system imagelist is searched
lsys : same as ssys, but for large system imagelist image
file : name is the full filename specifier
res : name of a resource image (not visible at design time) Supported image types: BMP, GIF, PNG. Please note that the resource type should be RT_RCDATA!
no specifier : name of image in an PictureContainer

so there is no way to load images from url into Thtmlistbox ?

vagtler 8. Dez 2014 07:20

AW: TMS THTMListbox
 
What about downloading the image from the URL and saving it temporarily in a PictureContainer?

mkinzler 8. Dez 2014 07:40

AW: TMS THTMListbox
 
It's his only option. He can also store it in an imagelist or in the temp folder.

drama22 10. Dez 2014 01:30

AW: TMS THTMListbox
 
Zitat:

Zitat von mkinzler (Beitrag 1282585)
It's his only option. He can also store it in an imagelist or in the temp folder.

is there sample code for that


Alle Zeitangaben in WEZ +1. Es ist jetzt 13:30 Uhr.
Seite 1 von 2  1 2      

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz