FBtnCancel in preview form
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
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
This discussion has been closed.
Comments
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.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com