Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

Can't get a gradient background working with a TLMDEdit control

edited October 2013 in LMD-Tools Vote Up0Vote Down
I'm using LMD2004 and can't, for the life of me, get a gradient background working on a TLMDEdit control.  I also could not get Transparent Property working.  It always only seems to draw the background based on the Color Property.

I'm wondering what I am doing wrong.

Here are all the properties that were set in the form for the control: 

NOTE:  on the form, in ObjectInspector, the Gradient Endcolor is showing up as ClBlack, even though I don't see it showing up in the form when displayed as text.

  object LMDEdit1: TLMDEdit
    Left = 178
    Top = 344
    Width = 419
    Height = 137
    BackFX.AlphaBlend.Strength = 1.000000000000000000
    BackFX.AlphaBlend.FillObject.Style = sfGradient
    BackFX.AlphaBlend.FillObject.Gradient.Color = clSilver
    BackFX.AlphaBlend.FillObject.Gradient.ColorCount = 236
    BackFX.AlphaBlend.FillObject.Gradient.PaletteRealize = True
    BackFX.AlphaBlend.FillObject.TileMode = tmNone
    BackFX.AlphaBlend.FillObject.Brush.Color = clMoneyGreen
    BackFX.AlphaBlend.FillObject.Options = [foFillInner, foQuickDraw]
    BackFX.Buffered = True
    Bevel.StyleOuter = bvFrameRaised
    Bevel.BorderColor = clGradientActiveCaption
    Bevel.EdgeStyle = etRaised
    Bevel.LightColor = clSilver
    Bevel.Mode = bmEdge
    Bevel.ShadowColor = clGray
    Bevel.StandardStyle = lsNone
    Caret.BlinkRate = 530
    Color = clBlack
    Ctl3D = False
    CtlXP = False
    ParentCtl3D = False
    TabOrder = 7
    Font.Charset = ANSI_CHARSET
    Font.Color = clTeal
    Font.Height = -20
    Font.Name = 'Verdana'
    Font.Style = []
    Font3D.Style = tdExtrude
    ParentFont = False
    CustomButtons = <>
    CustomButtonsStyle = ubsOfficeTransp
    PasswordChar = #0
    Text = 'Testing, testing, one, two three, four'
  end

Thanks,

JY

Comments

  • 2 Comments sorted by Votes Date Added
  • Same anser as in other eMail. Make sure you have understood concept of semi transparency. There is no transparency without using special background controls (check the demo projects where transparency is demonstrated, also with edit and memo controls (AFAIK there were also available in LMD 2004 releases).
Sign In or Register to comment.