View Issue Details

IDProjectCategoryView StatusLast Update
0020342LazarusLCLpublic2011-09-26 03:04
ReporterMarkus MüllerAssigned ToLuiz Americo 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version0.9.31 (SVN)Product Build 
Target VersionFixed in Version0.9.31 (SVN) 
Summary0020342: TDBMemo have not the same events as TMemo
DescriptionTMemo have the events OnMouseXXX.
TDBMemo have it not.
Additional InformationNow, I have programing this:
  TMemo(DBMemoAdr).OnMouseUp := @MemoMouseUp;

It works, but there comes always the warning:
fMain.pas(6800,3) Warning: Class types "TDBMemo" and "TMemo" are not related
TagsNo tags attached.
Fixed in Revision32513
LazTarget-
Widgetset
Attached Files

Activities

Bart Broersma

2011-09-25 11:03

developer   ~0052168

Maybe we should make the OnMouseUp of TDBMemo public/published?

As a workaround in the mean time you can do this:

type
  THackDBMemo = class(TDBMemo)
  end; //this will give you access to protected properties of TDBMemo

and then

  THackDBMemo(DBMemoAdr).OnMouseUp := @MemoMouseUp;

Markus Müller

2011-09-25 11:21

reporter   ~0052169

I think it must includ into the standard component TDBMemo. I use it and place it into my form. When I make a extra class, then I must manually create it and set Align Size and some else.

And why have the TDBMemo not this events? Are they forgot?

In Delphi are all Events in the standard TDBMemo available.

Issue History

Date Modified Username Field Change
2011-09-25 07:56 Markus Müller New Issue
2011-09-25 11:03 Bart Broersma Note Added: 0052168
2011-09-25 11:21 Markus Müller Note Added: 0052169
2011-09-26 03:04 Luiz Americo Fixed in Revision => 32513
2011-09-26 03:04 Luiz Americo LazTarget => -
2011-09-26 03:04 Luiz Americo Status new => resolved
2011-09-26 03:04 Luiz Americo Fixed in Version => 0.9.31 (SVN)
2011-09-26 03:04 Luiz Americo Resolution open => fixed
2011-09-26 03:04 Luiz Americo Assigned To => Luiz Americo