[Solved-Partially] pyuno dialogs
Posted: Tue Apr 17, 2018 1:29 am
In the past 10+ years I have done a lot of programming in VB, VBA and python.
Early this year I discovered the python UNObridge and I started studying it and I am well on my way to create my own pytonic interpretation.
Early March I started on forms/dialogs and although I have the basics working of a building/sizing system not unlike GTK or what I had build in the past in VB, working, I have come along some things that I do not seem to be able to figure out.
First Titles/Captions of dialogs embedded in a window/frame.
I can only set a title for the frame but that is not the title displayed. If I create a window/frame set it will show as title either openoffice or libreoffice followed by the version number. If I check prior to setting my own title to the frame, it will have either openoffice or libreoffice without the version number and changing the frame title will not change the title displayed.
So my question is where is the actual displayed title located?
Second: Sizing units.
For a window the default sizing units are points.
A dialog uses some arbitrary unit I can not fathom. On both libreoffice and openoffice I see a vertical ratio of 2. With the dialog units being bigger. Vertically I see on libreoffice a ratio of 2.25 and on openoffice of 2.46. Both on the same Gentoosystem with an equal horizontal and vertical DPI of 100.
So my question is what are those units and if possible, where can I change them?
Third: How can I in UNO determine the openoffice/libreoffice version? I can distinguish between the two by looking at the installation path, but there should be an API call to get version specifics.
I have more questions but they are not urgent. Probably in a few months I will publish my first alfa on git.
Hika
Early this year I discovered the python UNObridge and I started studying it and I am well on my way to create my own pytonic interpretation.
Early March I started on forms/dialogs and although I have the basics working of a building/sizing system not unlike GTK or what I had build in the past in VB, working, I have come along some things that I do not seem to be able to figure out.
First Titles/Captions of dialogs embedded in a window/frame.
I can only set a title for the frame but that is not the title displayed. If I create a window/frame set it will show as title either openoffice or libreoffice followed by the version number. If I check prior to setting my own title to the frame, it will have either openoffice or libreoffice without the version number and changing the frame title will not change the title displayed.
So my question is where is the actual displayed title located?
Second: Sizing units.
For a window the default sizing units are points.
A dialog uses some arbitrary unit I can not fathom. On both libreoffice and openoffice I see a vertical ratio of 2. With the dialog units being bigger. Vertically I see on libreoffice a ratio of 2.25 and on openoffice of 2.46. Both on the same Gentoosystem with an equal horizontal and vertical DPI of 100.
So my question is what are those units and if possible, where can I change them?
Third: How can I in UNO determine the openoffice/libreoffice version? I can distinguish between the two by looking at the installation path, but there should be an API call to get version specifics.
I have more questions but they are not urgent. Probably in a few months I will publish my first alfa on git.
Hika