Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Canvas initialization..

Posted on 2000-02-15
10
Medium Priority
?
221 Views
Last Modified: 2010-04-04
does a canvas differ in initialization from D3 til D5 ?


Regards,

GOMF
0
Comment
Question by:GOMF
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
10 Comments
 
LVL 6

Expert Comment

by:Jaymol
ID: 2522908
Not in the slightest.

John.
0
 
LVL 5

Expert Comment

by:TheNeil
ID: 2523063
The canvas is the same. There are a couple of extra features at the bitmap level but nothing that will stop your code from compiling or working

The Neil
0
 

Author Comment

by:GOMF
ID: 2523067
lol, maybe i wanna elaborate on the subject a bit...
I moved a unit to D5 from D3 - and now I've got a problem..I've got 2 classes and the later inherits from the first

the first declaration
  TPreviewCanvas = Class(TObject)
  .....
  Public
    Procedure AnotherPage; Virtual;
  .....
 
The later class,

  TPrnCanvas = Class(TPreviewCanvas)
  ....
  Public
    Procedure AnotherPage; Override;
  ....

What happens in D5 when you run this ? Nothing the procedure Another does never execute, eventhough its called...any ideas ?



Regards,GOMF
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

Expert Comment

by:garizpe
ID: 2523128
Ok... What happens with your programs i don´t have problems with D5
can you be more specific....
0
 

Author Comment

by:GOMF
ID: 2523142
garizpe,

Var
  vc : TPrnCanvas;
Begin
  With vc do
  Begin

    OnPageTop        := NIL; // executes
    OnPageBottom     := NIL; // executes
    AnotherPage;  // DOES NOT EXECUTE!!
    SetFontSize(20);
    Font.Style := [fsBold];
  End;


Really weird...!!

Regards,

GOMF
0
 
LVL 5

Accepted Solution

by:
TheNeil earned 400 total points
ID: 2523205
What is AnotherPage supposed to be doing? and why are you using vc without creating it first?

The Neil
0
 
LVL 12

Expert Comment

by:rwilson032697
ID: 2524654
Listening
0
 

Author Comment

by:GOMF
ID: 2525878
hehehe, yeah why try to create it before using it..lol...

*blush*

Regards,

GOMF
0
 
LVL 5

Expert Comment

by:TheNeil
ID: 2526159
I'll pretend that I actually proposed that as an answer rather than as a general stab in the dark. Thanks

The Neil
0
 

Author Comment

by:GOMF
ID: 2526261
hehehe, lol...

Regards,

GOMF
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

636 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