In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.
Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.
Hi,
If I open a PRG (Form) file with my plugin, when displaying the form in the designer, it will use the font "MS Sans Serif, 8", different from what is defined in the application project properties.
Do I need to do something?
Note:
I didn't set a font on any Form, I just set the default font in the project properties.
The Xailer wrote in "function Main", the code... Application:oFont := TFont():Create....
There is no TFont():Create in any PRG or XFM, only in the MAIN function.
If I open a form through "Project Manager", then see in Designer, Form font is correct, the same as defined in FUNCTION MAIN
So there must be a way to open the PRG via plugin without misconfiguring the font.
Hurricane escribió: ↑Lun Oct 11, 2021 5:02 pm
Hi,
If I open a PRG (Form) file with my plugin, when displaying the form in the designer, it will use the font "MS Sans Serif, 8", different from what is defined in the application project properties.
Do I need to do something?
Note:
I didn't set a font on any Form, I just set the default font in the project properties.
The Xailer wrote in "function Main", the code... Application:oFont := TFont():Create....
There is no TFont():Create in any PRG or XFM, only in the MAIN function.
If I open a form through "Project Manager", then see in Designer, Form font is correct, the same as defined in FUNCTION MAIN
So there must be a way to open the PRG via plugin without misconfiguring the font.
Check the font is not defined on the XFM your are opening. if is defined, it takes precedence.
only:
a) set a default font in the project properties
b) open a PRG (form) file with PLUGIN
c) display the form in the Designer(see oFont property, wrong)
ignacio escribió: ↑Jue Oct 14, 2021 5:34 pmSend a sample
attachment: application project (default font already defined) and plugin.
When you open a file via ::oPlgn:IEditor:OpenFile( cFile ) it opens the file without assigning to a project. It does not either control if is already assigned to a project. It just opens the file in the editor. That's all! On that case if the font is not assigned on the XFM file, the default Font on Xailer is Ms San Serif.
You should check if the file you want top open is assigned to any project and then open it from the project itself.
I imagined that. OpenFile is the only method available in the documentation.
if I try with ...LOAD(cFile)... Error BASE/1004 Message not found: IDEEditor:LOAD
...must be the same mechanism when we click on the file, in Project Manager.
ignacio escribió: ↑Vie Oct 15, 2021 6:35 pm
When you open a file via ::oPlgn:IEditor:OpenFile( cFile ) it opens the file without assigning to a project. It does not either control if is already assigned to a project. It just opens the file in the editor. That's all! On that case if the font is not assigned on the XFM file, the default Font on Xailer is Ms San Serif.
You should check if the file you want top open is assigned to any project and then open it from the project itself.
I solved it with IDEProjectMan:getModule
I needed to export information from some plugin classes and a lot of intuition.
It is very important to distribute all plugin statements (only CLASS IDE... to ENDCLASS). We are in the dark to use the plugin.
This will be an important addition to the documentation. Because the plugin code also changes, becoming incompatible with the documentation.
Another feature I created, I needed a lot of trial and error (extremely tiring), but I managed to finish.