Solved

Canvas initialization..

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


Regards,

GOMF
0
Comment
Question by:GOMF
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
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 

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 100 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

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

803 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