Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

FBtnCancel in preview form

edited September 2003 in General
Hello,

I am using custom preview plugin for TppPreview. If I set flat := true
property to FBtnCancel then it won't appear
on Toolbar and when I close preview form I get following error message:

"System Error. Code 1400.
Invalid window handle."

And then some access violations.

If I dont set FBtnCancel.Flat := true everything works ok, but just looks
bit ugly as all other buttons we made has flat look.

Any ideas whats causing this problem ?

Thanks,
Ernest Jaraminas
Software Developer

www.happen.biz

Comments

  • edited September 2003
    Hi Ernest,

    The FBtnCancel is a TButton component, which does not contain the "Flat"
    property. Try disabling the original Cancel button and adding a new
    TSpeedButton in its place with the same functionality. Then, setting the
    Flat property should not be a problem.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.