Some question for RB 10.04
Now, we have bought the upgrade to RB 10.04. I'm currently changing my
source code. Now I have some questions :
1. How can I in the designer window make the Preview Tab invisible?
2. If the user click on the Preview Button I want to make my own source.
How can I do this?
3. In the old RB 7.04 I have done the following :
tppDesignerWindow(Screen.ActiveForm).FileNewClick(tppDesignerWindow(Screen.ActiveForm).mniFileNew);
So the wizard is called. How can I do this with RB 10.04.
4. In RB 7.04 I had the control to all Menus of the designer windows
with tppDesignerWindow(Screen.ActiveForm). So I was able to make
invisible some Menupoints. How can I do this with RB 10.04?
Best wishes
Bernhard
source code. Now I have some questions :
1. How can I in the designer window make the Preview Tab invisible?
2. If the user click on the Preview Button I want to make my own source.
How can I do this?
3. In the old RB 7.04 I have done the following :
tppDesignerWindow(Screen.ActiveForm).FileNewClick(tppDesignerWindow(Screen.ActiveForm).mniFileNew);
So the wizard is called. How can I do this with RB 10.04.
4. In RB 7.04 I had the control to all Menus of the designer windows
with tppDesignerWindow(Screen.ActiveForm). So I was able to make
invisible some Menupoints. How can I do this with RB 10.04?
Best wishes
Bernhard
This discussion has been closed.
Comments
Below are a couple examples that will get you on the right track with
customizing the designer in RB 10.
http://www.digital-metaphors.com/tips/Designer10_CustomizeMenusAndToolbars.zip
http://www.digital-metaphors.com/tips/Designer10_HideNotebookTab.zip
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
extend or change popupmenus (for example for the tppMemo Component). I
don't want use for editing the standard Editor window. So I have to call
my own routine if the user click on the Edit Menu point.
Best wishes
bernhard
Nico Cizik (Digital Metaphors) schrieb:
All the popup menus have been separated from their components and designers
since RB 9. It is now very easy to create and add your own popup menu for a
given component. Take a look at the ppPopupMenus.pas file, specifically the
TppCustomMemoPopupMenu and TppMemoPopupMenu classes. Then take a look at
the initialization section of that file to see how to register your own
popupmenus. Note that you will need to unregister the old popup menu in
order to replace one.
TppPopupMenuManager.UnRegisterMenuClass(TppMemo);
TppPopupMenuManager.RegisterMenuClass(TppMemo, TppMyMemoPopupMenu);
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com