Solved

Canvas initialization..

Posted on 2000-02-15
10
219 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
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…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

728 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