-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add property for RibbonDesigner with path to XML file #73
Comments
I tried that earlier with no luck. The problem is that the TUIRibbon control does not know the source XML file name or the generated Pascal file at designtime. Opening the (empty) RibbonDesigner is possible using the right click menu in the designer. |
Then just add published property for UIRibbon - path to XML file for DesignerEditor. It will be more convenient to use it then - opening designer without file has no sense.
|
A kind of designtime-only property? Somewhat uncommon, but should work. |
Implemented. Let me know what you think, did not have much time for testing today. |
Wonderful. Some changes to your functions - marked with long arrows in comments. Besides that there is a small problem - changing of published property (lRibbon.RibbonSourceFile := BrowseForXmlFile();) does not mark file as changed, so if unit was saved before and closed right after this operation, property value will not be saved - Delphi thinks that nothing changed.
|
Placing the XML file outside the project dir sounds like a strange idea. I used absolute paths at first (which lead to the wrong code in my commit), but with absolute paths a projects is not portable any more, so this is a no-go. Thanks for your feedback. |
Please add parameter with file name for RibbonDesigner at opening it from Delphi IDE (Double click on TUIRibbon) to skip need of pressing "Open file" and selecting file every time.
Add file name as published property, if it cannot be taken automatically from form itself.
The text was updated successfully, but these errors were encountered: