Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

RB10: Is the way to change datapipelines captions in toolbar?

edited December 2007 in General
Hello!

I'm know my next question is specific and difficult but if you can help me,
I'm nake happy :-)

I'm use ReportBuilder since 3.51 version and use own algorithm of
replacement dadapipelines captions on combobox of Edit toolbar, i.e. -
I'm don't want to show delphi component names or UserName (- it is like
delphi identifier!) od datapipelines like "DataPipeline1".
I'm show full names of my queries in this combobox on my native language
(russian) - with spaces and any words :-)

From ver 3.51 to 9 I'm hook windows message in designer.OnActivate event:

var CBox : TComboBox;

FEditBar := TppEditToolbar(P.ToolbarManager.FindToolbar('Edit'));
CBox := FEditBar.ComboBox;

SaveWndProc := CBox.WindowProc;
CBox.WindowProc := CBoxHook;
...

procedure TfrmMain.CBoxHook(var Message: TMessage);
begin
SaveWndProc(Message);
// ItemIndex
if Message.Msg = CB_SETCURSEL then ReplaceData(CBox);
end;

This code work fine, but in RB10 Toolbar upgrade to TBX toolbars and Combox
now not is TWinControl :-(

I'm try to work with FEditBar.ComboBox2 with events (OnChange, OnSelect...)
(FEditBar :=
TppEditToolbar(lLayoutManager.ToolManager.Toolbars.ItemsByName['Edit']);)

- but without any effect....

Is the way to replace datapipelines names in Edit toolbar combobox?

Nikolai

Comments

This discussion has been closed.