Jump to content


Slides Editor XE2


  • Please log in to reply
9 replies to this topic

#1 Jonny Kwekkeboom

Jonny Kwekkeboom
  • Members
  • 23 posts

Posted 14 January 2012 - 03:08 PM

Hi Boki,

by me in Delphi 2010 the Slides Editor worked perfect
but inside Delphi XE2 there is only at top 2 or 3 Pixel height seen inside the Slides Editor
and the rest not visible ?

See attached picture...

cu
Jonny

#2 Jonny Kwekkeboom

Jonny Kwekkeboom
  • Members
  • 23 posts

Posted 14 January 2012 - 03:10 PM

Hi,

attached file

Attached Files



#3 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 6,683 posts
  • Gender:Male

Posted 14 January 2012 - 11:27 PM

Hi,

Please change next procedure (copy/paste whole method) in NxFieldChoser.pas:

procedure TNxSlidesDesigner.DrawSlide(const SlideRect: TRect;
  Column: TNxCustomColumn);
var
  R, LocRect: TRect;
  M: Integer;
begin
  with Canvas, Column do
  begin
    R := SlideRect;
    if DrawBorders then
    begin
      if Self.Selected = Column then
      begin
        Brush.Color := clHighlight;
        FrameRect®;
      end else
      begin
        Pen.Color := $00BBBBBB;
        Polyline([Point(R.Left, R.Bottom - 1), Point(R.Left, R.Top), Point(R.Right, R.Top)]);
        Pen.Color := $008F8F8F;
        Polyline([Point(R.Right - 1, R.Top + 1), Point(R.Right - 1, R.Bottom - 1), Point(R.Left, R.Bottom - 1)]);
      end;
      InflateRect(R, -1, -1);
    end;
    Brush.Color := Color;
    Canvas.FillRect®;
    Canvas.Font.Assign(Column.Font);
    TGraphicsProvider.DrawWrapedTextRect(Canvas, R, Alignment, VerticalAlignment, WrapKind = wkWordWrap, Name, BiDiMode);
    if Self.Selected = Column then
    begin
      case SlideCaptionLocation of
        clLeft:
        begin
          M := R.Top + (R.Bottom - R.Top) div 2;
          LocRect := Rect(R.Left - 2, M - 2, R.Left + 2, M + 2);
        end;
        clTop:
        begin
          M := R.Left + (R.Right - R.Left) div 2;
          LocRect := Rect(M - 2, R.Top - 2, M + 2, R.Top + 2);
        end;
      end;
      Pen.Color := clGreen;
      Rectangle(LocRect);
    end;
  end;
end;
boki@bergsoft.net
--
BergSoft Home Page: www.bergsoft.net
Members Section: bms.bergsoft.net
Articles and Tutorials: dn.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#4 Jonny Kwekkeboom

Jonny Kwekkeboom
  • Members
  • 23 posts

Posted 15 January 2012 - 01:39 PM

Hi,

same problem here

RAD Studio XE2 Enterprise  (Delphi) in C++  not tested yet

see attached screnshoot

All components new compiled and installed

cu
Jonny

Attached Files

  • Attached File  Berg.bmp   383.54K   4 downloads


#5 Jonny Kwekkeboom

Jonny Kwekkeboom
  • Members
  • 23 posts

Posted 15 January 2012 - 01:51 PM

Hi,

in C++ Builder XE2 same problem

tested in TNextDBGrid is the screenshoot ...

in top pixel we can select a item but not seen ..

cu
Jonny

#6 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 6,683 posts
  • Gender:Male

Posted 15 January 2012 - 05:57 PM

Hi,

Does pasted code fix helps?

Best regards
boki@bergsoft.net
--
BergSoft Home Page: www.bergsoft.net
Members Section: bms.bergsoft.net
Articles and Tutorials: dn.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#7 Jonny Kwekkeboom

Jonny Kwekkeboom
  • Members
  • 23 posts

Posted 16 January 2012 - 10:37 PM

Hi,

no problem still avaible
see my last two postings...

cu
Jonny

#8 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 6,683 posts
  • Gender:Male

Posted 16 January 2012 - 11:58 PM

Hi Jonny,

Maybe you need to re-compile packages? If not, I will send you complete file.

Best regards
boki@bergsoft.net
--
BergSoft Home Page: www.bergsoft.net
Members Section: bms.bergsoft.net
Articles and Tutorials: dn.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#9 Jonny Kwekkeboom

Jonny Kwekkeboom
  • Members
  • 23 posts

Posted 17 January 2012 - 10:21 PM

Hi,

will now test it again and recompile all

cu
Jonny

#10 Jonny Kwekkeboom

Jonny Kwekkeboom
  • Members
  • 23 posts

Posted 17 January 2012 - 10:28 PM

Hi Boki,

Worked now perfect !!

I changed code only in Delphi2010 package...
and not in XE2 so I have other folder created for this version..

After changed code and recompile all worked OK !!

Thanks.

cu
Jonny




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users