Forum > General

SOLVED!! Getting an image on top of component


I have an image and Rich Memo on a panel. (see code). No matter how I try, I can't get the image to appear on top of the memo. Can anyone help?  (You'll have to load the picture yourself)

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---object Form1: TForm1  Left = 375  Height = 240  Top = 237  Width = 427  Caption = 'Form1'  ClientHeight = 240  ClientWidth = 427  LCLVersion = ''  object Panel1: TPanel    Left = 88    Height = 152    Top = 32    Width = 247    Caption = 'Panel1'    ClientHeight = 152    ClientWidth = 247    TabOrder = 0    object Image1: TImage      Left = 40      Height = 90      Top = 16      Width = 90    end    object RichMemo1: TRichMemo      Left = 106      Height = 66      Top = 58      Width = 118      HideSelection = False      Lines.Strings = (        'RichMemo1'      )      TabOrder = 0      ZoomFactor = 1    end  endend        

Its not possible. You can put the TImage in the richmemo by setting its parent to it but that's about it.

Nup!  I had tried that as it would have sort of solved my problem.  But if you try to do it at design time it throws the Image onto the main form.  If you try to do it at run time, you get an error message that Control of  Class 'TRichMemo' can't have control of class 'TImage' as a child.

Basically what I want to do is have a RichMemo which is being used as part of an invoice and have an image with text on its canvas representing Electronic Banking Data which the user can make visible if required and move to the normal position under the signature or anywhere else suitable within the memo.

Put the image into an autosized frameless panel.


--- Quote ---Put the image into an autosized frameless panel.
--- End quote ---

Thank you - works perfectly

So much to learn - so little time!!!!!!


[0] Message Index

Go to full version