Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Changing the code like shown below will draw a right aligned thin line from transparency to black opaque.</p> <pre><code>linGrBrush := TGPLinearGradientBrush.Create( MakePoint(R.Width-189,0), MakePoint(R.Width,2), MakeColor(0, 0, 0, 0), MakeColor(255, 0, 0, 0)); Pen := TGPPen.Create( linGrBrush,3); Graphics.DrawLine(Pen,R.Width-189,79,R.Width,79); InvalidateRect(Handle,Rect(0,0,R.Width,R.Height),False); </code></pre> <p><strong>Update</strong>, using <code>InvalidateRect</code> for the whole area forces a total redraw of the frame. Otherwise the redraw might be clipped in strange ways. This will solve your color change effect.</p> <p>But a <code>GlassFrame</code> defect is illustrated with the last two images below. The outside frame of the TFrame is not correctly visible on the top and upper sides. </p> <p><img src="https://i.stack.imgur.com/1wuHB.png" alt="enter image description here"></p> <p><img src="https://i.stack.imgur.com/50ooW.png" alt="GlassFrame enabled"> <img src="https://i.stack.imgur.com/WrBsH.png" alt="GlassFrame disabled"></p> <p>Showing dysfunction of TFrame when <code>GlassFrame</code> is enabled (left). The right picture shows a complete black frame (even though in this picture the right side was cropped in compression) with <code>GlassFrame</code> disabled.</p> <p><strong>Update 2 :</strong></p> <p>Enable <code>SheetOfGlass</code> and everything seems ok.</p> <p><img src="https://i.stack.imgur.com/zviWG.png" alt="enter image description here"></p> <p><strong>Update 3 :</strong></p> <p>The <code>GlassFrame</code> top property was set to 40, and caused the strange border effect around the frame. Setting it to 0 fixed this issue.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload