I have a "caution" image on a dialog that is shown if there are questionable parameter values. Users do not always notice it, so I want to fade it in and out cyclically over a second or so (yes, I could just toggle the Visible property, but that would look a bit like I was just toggling the Visible property). Is there a simpler way than putting it on it's own form and floating it over the dialog (and changing the AlphaBlendValue property of the form)?
What is the simplest way to add an AlphaBlendValue property to Delphi's TImage
1.4k views Asked by rossmcm At
2
There are 2 answers
Related Questions in DELPHI
- How can I read the header of request to webserver
- Receiving Notifications for Individual Task Completion OmniThreadLibrary Parallel.ForEach
- Delphi - How to get result of function from QuickReport without viewing a report?
- Out of memory while adding documents to a Firebird BLOB field with Delphi
- How to MakeScreenshot fullpage on Delphi
- How to program a COM object with an IEnumerator, IEnumerable interface inside
- How to Dynamically Add Controls to Delphi Form
- How to write a string in Stringrid with DelimitedText in FMX Delphi 11
- TGrid/TStringGrid multi cell selection / multi editing in delphi firemonkey (12)
- How to localize "Today" in the Delphi TMonthCalendar?
- How can I call a SOAP webserver method in Vue.js?
- Efficiently Handling Large Number of API Calls with Delphi 10.4 and OmniThreadLibrary
- Delphi can not compile the unit create by its "XML Data Binding Wizard"
- Save Form Properties in File and then restore those Properties after reopening
- Is it possible to open a blob without saving it to file
Related Questions in TRANSPARENCY
- Blender to Unity Vertex Color (Alpha) Data Doesn't Work
- How to fetch the data of a PNG PHAsset, which is cropped or adjusted?
- Models using Unity URP shader and transparency are overlapping themselves
- Colorize, Transparent and Move Selected Entities on Xbim Control
- Set transparent fill for box plots using px.box
- How to set p5.js alpha channel transparency in a shader?
- Knock-out transparency group, TikZ and SVG
- TextLabels not changing to Visible = false to Visible = true
- Keep transparency after merging 2 videos
- Transparency probleme on my c++ windows.h
- Android: TextView transparent png as background resource not working
- Hiding widgets in a QMainWindow layout with a translucent background on macOS
- Unity Built-in shader, cutout + transparent
- Magick -depth 16 command changes alpha channel data
- How can I create a tkinter python object to be 50% opacity?
Related Questions in ALPHABLENDING
- Compositing ARGB Bitmaps Together CPU-only
- pixman_image_fill_boxes() does nothing
- Porter duff "conjoint" and "disjoint" use cases in vulkan
- Skia library not able to use alpha masking
- How overlay a image to specific part on another image in opencv
- Exact formula for alpha blending used in WPF
- Alpha Blend issue with python and opencl
- webgl2 problem with rendering opaque and translucent triangles
- Correct alpha blending parameters in a transparent MTKView?
- How to overlay images with alpha blending using AVX512 instructions?
- Processing sketch: merge alpha channel video with another movie
- Optimizing alpha blending for two colors with alpha
- Alpha Blending on Borders
- Math Formula for calculating the resulting colour of a transparent layer with a multiply blend over another layer
- Implementing Vector Addition Via `blendFunc` In WebGL?
Related Questions in DELPHI-2006
- Windows slowing down with mouse pointer on destop
- Delphi (2006): how to Split by new line and break at the same time
- Why loop While with for inside doen't work?
- Is it possible to typecast a callback function in Delphi?
- Use TQuery.Locate() function to find other then first matching
- Removing part of condition in some cases
- Delphi 2006 proper use of END
- Local form in delphi 2006
- TPageControl component in Delphi 2006
- Pass WideString to raise an exception
- Working with mili second DateTime with culture specific format in Delphi
- class operator with result of Extended type does not work in BDS2006?
- _Document.SaveAs prompts unexpected
- Where is the sizing data of TOpenDialog stored and how can this be reset?
- Conditionally change application icon with Delphi 2006
Related Questions in TIMAGE
- Load image from URL into a TImage
- How to copy content of timage from form1 to form2?
- Copy text drawn on TImage to another TImage
- How to convert TImage and TImageControl coordinates to underlying bitmap coordinates?
- Problem with painting with TImage. I have drawn on the TImage but it is not being painted
- How can I get the width and length of a Picture in a Timage Component in Delphi Firemonkey
- StretchDraw to printer.canvas loses the transparency
- Assign a picture to a TImage and define the background color of transparent pixels
- Speed up image loading in TImage
- Delphi Game Timer program freezes up after 1.5 to 2 hours and sometimes gives an exception "Canvas does not allow"
- How do I make a TImage move (like a DVD logo)
- Showing an animated .ani cursor on a form in Delphi 7
- Try..Except ignored inside a thread
- Delphi Custom TImage Component - MouseEnter, MouseLeave in component
- How to duplicate TImage component with the image using RTTI
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
You can do this using the
Opacityparameter ofTCanvas.Draw. Behind the scenes this callsTGraphic.DrawTransparentwhich in turn calls the WindowsAlphaBlendAPI function. An easy way to implement this is with aTPaintBox:If you are using an older version of Delphi without the
Opacityparameter ofTCanvas.Drawyou can useAlphaBlenddirectly.Thanks to Giel for suggesting the
Opacityparameter ofTCanvas.Draw, and for Sertac for pointing out that it is quite a recent addition toTCanvas.Draw.