Solved

TSeed looses Glyph

Posted on 2000-04-06
11
240 Views
Last Modified: 2013-12-02
Hi, I know this component is probably bugged, but I would like to avoid changing

what happens is this : I use a TSpeed button with one image in it only

most of the time everything is fine, but from time to time, the component will simply forget it has an image to show and switches to transparent.

when I press the button, I will see the image alright, but when I release it again, the image disappears again.

does somebody have a simple answer to this question?

Regards, Marc
0
Comment
Question by:mhervais
  • 5
  • 5
11 Comments
 
LVL 9

Expert Comment

by:ITugay
ID: 2689471
Is it possible your windows is out of resources?
----
Igor.
0
 
LVL 17

Expert Comment

by:inthe
ID: 2691282
0
 
LVL 4

Author Comment

by:mhervais
ID: 2691354
I tried but my computer already had the latest version of the common controls.

Is it the first time you hear about this one?
0
 
LVL 17

Expert Comment

by:inthe
ID: 2691663
no heard of this type of problem several times,usually graphics cards stuff(like lowering from 32bit to 24 ,or lowering harware acceleration etc)can fix it or sometimes updating commctrl sorts it out..is the  "show icons in all possible colors" setting checked in your windows?
how many colors does the icon(glyph)have,i mean try it with a glyph with less colors and see if there any improvement..its hard to point a finger to definite solution on this one.
0
 
LVL 4

Author Comment

by:mhervais
ID: 2691824
So probably if I want it to be definitely stopped, I will have to use another class of buttons no? or to make mine myself with some images

Anything to recommend?
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 17

Expert Comment

by:inthe
ID: 2694780
well i am presuming you are using a imagelist for the glyph,(this is most likely whats causing the problem),so i would first try setting the glyph to a file(local on harddisk)and get rid of imagelist to see if it stops the error.
even try using a differetn image with less colors to check if that helps.



0
 
LVL 4

Author Comment

by:mhervais
ID: 2694815
Well actually, I set the image during design mode by clicking on the glyph property.

Then I saw a property editor in which I loaded the image from a file.

I guess than then the image is stored by the form.

I think that instead I could load it from stream (I have a database) or from a file from time to time. It would reduce the duration of the problem.

But is this not a more complicated solution than simply change of component?
0
 
LVL 17

Expert Comment

by:inthe
ID: 2694846
what about using normal tbutton ;-)
or some other button from torrys or dsp
i generally use other components from standard simply for better looks..i dont think ive ever actually used tspeedbutton andn rarely use tbutton except for testing e.e stuff.
0
 
LVL 4

Author Comment

by:mhervais
ID: 2695158
I want an image in it

It is probably what I will have to do although I wanted to avoid it
0
 
LVL 17

Accepted Solution

by:
inthe earned 50 total points
ID: 2695227
remember you can also use a tbevel and use a normal timage on top of it using the timages onclick events to act as button..
0
 
LVL 4

Author Comment

by:mhervais
ID: 2695530
thanks Barry. I really forgot about this one

regards, Marc
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Mydac connection data base issue 3 139
indy Tmemory stream non latin charcter issue 2 98
Delphi...Split view - idea? 1 42
Graphics32 under Delphi 10.1 Berlin 2 37
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now