Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
  • Lazarus Lazarus
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 2,095
    • Issues 2,095
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 7
    • Merge requests 7
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • FPC
  • Lazarus
  • LazarusLazarus
  • Issues
  • #22719
Closed
Open
Created Aug 25, 2012 by FPC Admin account@fpc_adminOwner

Opaque text fails

Original Reporter info from Mantis: mftq75
  • Reporter name: C Western

Description:

Setting TextStyle.Opaque to True produces odd results

Steps to reproduce:

An project with a single paint box with the following paint handler produces no output:

procedure TForm1.PaintBoxPaint(Sender: TObject);
var
  TextStyle: TTextStyle;
begin
  with PaintBox do begin
    TextStyle := Canvas.TextStyle;
    TextStyle.Opaque := True;
    Canvas.TextStyle := TextStyle;  // Comment out this line to produce output
    Canvas.TextOut(10,10,'Hello');
  end;
end;
                                          

Mantis conversion info:

  • Mantis ID: 22719
  • OS: Fedora
  • OS Build: 17
  • Platform: Linux 64bit
  • Version: 1.1 (SVN)
  • Fixed in revision: 38373 (#dbe90566),38384 (#d338c2b4)
Assignee
Assign to
Time tracking