Modifiying TppDesigner
I need to make a Designer that will force the size of the detail band to the
size of the printable area. (This is for visitor card templates)
I went to modify the Designer form and found that I needed to replace
TppDesigner because the designer window variable and creation functions are
private. So, I made my own designer component by pasting all the code for
TppDesigner in my own unit and changing the Designer form to my own copy of
the form.
Good news, it works. Almost.
I don't have the Data tab. So I go to the Tech-Tips and see I have to add
the unit to get the data tab to show in my designer. It doesn't work.
Searching around, I find that ppRegisterDesignModule is called to register
the data module with the form. I do so and ppRegisterDesignModule goes into
an infinite loop on Initialization.
Is there some special magic I need or am I going about this the wrong way?
Thanks in advance.
Jeff Cuscutis jcuscutis@siscocorp.com | cuscutis@myacc.net
--
____________________________________________________________
"A human being should be able to change a diaper,
plan an invasion, butcher a hog, design a building,
write a sonnet, set a bone, comfort the dying,
take orders, give orders, solve equations, pitch manure,
program a computer, cook a tasty meal, fight efficiently,
die gallantly. Specialization is for insects." - Robert Heinlein
size of the printable area. (This is for visitor card templates)
I went to modify the Designer form and found that I needed to replace
TppDesigner because the designer window variable and creation functions are
private. So, I made my own designer component by pasting all the code for
TppDesigner in my own unit and changing the Designer form to my own copy of
the form.
Good news, it works. Almost.
I don't have the Data tab. So I go to the Tech-Tips and see I have to add
the unit to get the data tab to show in my designer. It doesn't work.
Searching around, I find that ppRegisterDesignModule is called to register
the data module with the form. I do so and ppRegisterDesignModule goes into
an infinite loop on Initialization.
Is there some special magic I need or am I going about this the wrong way?
Thanks in advance.
Jeff Cuscutis jcuscutis@siscocorp.com | cuscutis@myacc.net
--
____________________________________________________________
"A human being should be able to change a diaper,
plan an invasion, butcher a hog, design a building,
write a sonnet, set a bone, comfort the dying,
take orders, give orders, solve equations, pitch manure,
program a computer, cook a tasty meal, fight efficiently,
die gallantly. Specialization is for insects." - Robert Heinlein
This discussion has been closed.
Comments
directory and make then changes there.
HTH
--
Ed Dressel
Team DM
that puts the Data tab in the designer window by running
ppRegisterDesignModule() does so not to my window. If I change it to point
to my designer window it goes into an infinite loop in
ppRegisterDesignModule() where it's trying to match the classname and never
breaks out of the loop. Am I going to have to modifiy a lot of units to fix
this? I was sorta hoping to just have to hit the designer and designerform
units. The less changes I make, the less errors I'll introduce.
Thanks,
Jeff Cuscutis
the data tab doesn't show up? Is 'daIDE' in your uses clause? (Otherwise it
works just fine here).
Ed Dressel
Team DM
class name. I them made my own TppDesignerWindow and changed it's class name
so I could make my changes without interfering with my coworker's use of the
components.
It doesn't like that very much.
That's why I was not getting the data tab and when I did add daIDE it locked
up. It is always expecting the class name to be the same.
I fixed it by modifiying the TppDesignerWindow to have the properties I
needed and made a descendant of TppDesigner that could set those properties.
It all works and I am happy.
Thanks a lot for the help.
Jeff Cuscutis
name
the
Yeah, I too found that changing the class name is a no-no :-)
Ed Dressel
Team DM