• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 223
  • Last Modified:

Canvas initialization..

does a canvas differ in initialization from D3 til D5 ?


Regards,

GOMF
0
GOMF
Asked:
GOMF
1 Solution
 
JaymolCommented:
Not in the slightest.

John.
0
 
TheNeilCommented:
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
 
GOMFAuthor Commented:
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
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
garizpeCommented:
Ok... What happens with your programs i don´t have problems with D5
can you be more specific....
0
 
GOMFAuthor Commented:
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
 
TheNeilCommented:
What is AnotherPage supposed to be doing? and why are you using vc without creating it first?

The Neil
0
 
rwilson032697Commented:
Listening
0
 
GOMFAuthor Commented:
hehehe, yeah why try to create it before using it..lol...

*blush*

Regards,

GOMF
0
 
TheNeilCommented:
I'll pretend that I actually proposed that as an answer rather than as a general stab in the dark. Thanks

The Neil
0
 
GOMFAuthor Commented:
hehehe, lol...

Regards,

GOMF
0

Featured Post

Take Control of Web Hosting For Your Clients

As a web developer or IT admin, successfully managing multiple client accounts can be challenging. In this webinar we will look at the tools provided by Media Temple and Plesk to make managing your clients’ hosting easier.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now