setmarginMM changes behavior
-
- Posts: 18
- Joined: Tue May 28, 2013 9:38 am
setmarginMM changes behavior
Hi,
component was working fine. When I was starting to edit the top of the page was visible.
Then I thought I set different margins from the Program up front. I used the methot setMarginMM. After that, the pages positioned at the bottom, always. When the Programm window was to small, it still showed the bottom of the page, even if I was typing at the top, which was out of sight.
Do I Need to call another Routine to prevent this bottom postion?
I doesn't got to top at all, when I used the setmarginmm.
component was working fine. When I was starting to edit the top of the page was visible.
Then I thought I set different margins from the Program up front. I used the methot setMarginMM. After that, the pages positioned at the bottom, always. When the Programm window was to small, it still showed the bottom of the page, even if I was typing at the top, which was out of sight.
Do I Need to call another Routine to prevent this bottom postion?
I doesn't got to top at all, when I used the setmarginmm.
-
- Site Admin
- Posts: 17534
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Site Admin
- Posts: 17534
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Posts: 18
- Joined: Tue May 28, 2013 9:38 am
-
- Posts: 18
- Joined: Tue May 28, 2013 9:38 am
Okay, the scalerichview Installation answered my question.
I Need to install TRichview as well.
But when I try that, it warns me the the CRVData.pas in my installed Version is newer then the file from the new TRichview Version.
Could there be a Version mix up?
I wouldn't want to loose the global variable for the printing of the Special characters.
I Need to install TRichview as well.
But when I try that, it warns me the the CRVData.pas in my installed Version is newer then the file from the new TRichview Version.
Could there be a Version mix up?
I wouldn't want to loose the global variable for the printing of the Special characters.
-
- Site Admin
- Posts: 17534
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Posts: 18
- Joined: Tue May 28, 2013 9:38 am
Oh, I did not modify any TRichview source file.
I did set the variable in the sources of my own program.
I did install the new components, but as fas as I can see the bug is still there.
When I use the setMarginMM method the page in the scaledrichview is positioned at the bottom and also when I click into the page for editing it still stay positions at the bottom.
I did set the variable in the sources of my own program.
I did install the new components, but as fas as I can see the bug is still there.
When I use the setMarginMM method the page in the scaledrichview is positioned at the bottom and also when I click into the page for editing it still stay positions at the bottom.
-
- Site Admin
- Posts: 17534
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
I cannot reproduce this problem.
Make sure that your application is compiled with the newest version of ScaleRichView.
Add the line:
It must display '5.7.1'
Make sure that your application is compiled with the newest version of ScaleRichView.
Add the line:
Code: Select all
Application.MessageBox(PChar(SRV_VERSION), '', 0);
-
- Posts: 18
- Joined: Tue May 28, 2013 9:38 am
Sorry, had been awas a few days.
Well, I implemented the code line and the Version used is '5.7.1'.
Sorry, I don't know how to upload Image ín this Forum, so I'm sending them to you thru email.
One Image Shows the Program with use of setMargin and the other without.
The Picture without the use of setMargin is how is should look like.
Only that sometimes I Need different margin Settings.
May be this helps to find the Problem. If you Need anything else please let me know.
Well, I implemented the code line and the Version used is '5.7.1'.
Code: Select all
procedure TfrmMain.RichEditEinstellen;
begin
// TextSyles[0] ist für 'Normaler Text'
RVStyle1.TextStyles[0].FontName := oIniTSP.Fontname;
RVStyle1.TextStyles[0].Size := oIniTSP.Fontsize;
RVStyle1.TextStyles[0].Color := oIniTSP.FontColor;
// Seitenränder
srvText.SetMarginMM(oIniTSP.MarginLeft, oIniTSP.MarginTop,
oIniTSP.MarginRight, oIniTSP.MarginBottom);
//
actSteuerzeichenAnzeigenExecute(self);
srvText.Format; //Settings aktivieren
end;
One Image Shows the Program with use of setMargin and the other without.
The Picture without the use of setMargin is how is should look like.
Only that sometimes I Need different margin Settings.
May be this helps to find the Problem. If you Need anything else please let me know.
-
- Site Admin
- Posts: 17534
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Site Admin
- Posts: 17534
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Posts: 18
- Joined: Tue May 28, 2013 9:38 am