Solved

Delphi Programming question

Posted on 1997-09-23
2
154 Views
Last Modified: 2010-04-04
What Delphi variables would I pass to Windows' ScrollDC if I wanted to use it in a TGraphicControl.  I would like to make a trend line.
0
Comment
Question by:jkk
2 Comments
 

Accepted Solution

by:
jorgen.hojdmo earned 50 total points
Comment Utility
The function is defined like this in Windows.pas

function ScrollDC(DC: HDC; DX, DY: Integer; var Scroll, Clip: TRect; Rgn: HRGN;
  Update: PRect): BOOL; stdcall;

DC = TGraphicsControl.Canvas.Handle

Scroll and Clip is for You to define. Rgn and Update can be set to nil. Hope this helps.
0
 
LVL 3

Expert Comment

by:mirek071497
Comment Utility
The TGraphicsControl don't published Canvas so you must do this inside component or use other component.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now