Yuri Dario wrote:
Hi,
still on the OS2 port, I have an open issue with native window sizing
and positioning.
When a window is moved using Os2SalFrame::SetPosSize, it seems to me
that new position is expressed relative to the parent window, not to
the screen coordinates.
I found this for example for combo boxes, because the listbox was shown
in a total wrong position.
SalFrame positioning always occurs relative to the parent, that's true.
If there is no parent, the coordinates are desktop relative. Also since
you use OS/2 there may be problems regarding top/down direction. VCL's
implementation assumes that ascending y-direction goes downward (like
all windowing systems aside from OS/2 do).
But also for sizing I have a problem: when I click a menu item, instead
of showing a dropdown list of items, I see two arrows, like if the
available space is not enough to show all the menu.
Also here I think there is an error in coordinate system, but I still
have to identify it.
Since these errrors seems to be related, I'd like to read something
about how the OOo windowing system is working. Is there a such
document?
Sadly no.
Otherwise more help is needed :-)
Please feel free to ask. VCL problems are probably best discussed at
[email protected]
Kind regards, pl
--
If you give someone a program, you will frustrate them for a day;
if you teach them how to program, you will frustrate them for a lifetime.
-- Author unknown
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]