Hi Phillip,
Thanks for your help. I haven't fiddled with window positions before, so
I just needed to know which function to use.
What I'm working on is Issue 78592. I need to switch the positions of
the left and right panes, and their captions.
After getting your message, I tried the following code in
ScHFEditPage::ScHFEditPage (sc/source/ui/pagedlg/scuitphfedit.cxx):
if( Application::GetSettings().GetLayoutRTL() )
{
Point pt1 = aWndLeft.GetPosPixel();
Point pt2 = aWndRight.GetPosPixel();
aWndLeft.SetPosPixel(pt2);
aWndRight.SetPosPixel(pt1);
pt1 = aFtLeft.GetPosPixel();
pt2 = aFtRight.GetPosPixel();
aFtLeft.SetPosPixel(pt2);
aFtRight.SetPosPixel(pt1);
}
and it works fine.
Thanks again,
Alan
Philipp Lohmann wrote:
Hmm,
basically you do it exactly as you said :-)
You simply go to the dialog source that corresponds to your resource
file and on the corresponding member control call
SetPosPixel( Point( newX, newY ) )
However controls in dialogs are automatically mirrored in RTL case, is
there some special case you want to handle ?
Kind regards, pl
Alan Yaniger wrote:
Hi list-members,
I'm interested in changing the position of a control defined in an
*.src" file, based on whether the application language is RTL. If for
example I have the following:
Control WND_SAMPLE
{
...
Pos = MAP_APPFONT ( 6 , 18 ) ;
...
};
and in the code I want to execute something like:
if (bRTL)
WindowInstance.SetX(174) // change x-coordinate to
174 instead of 6
how do I do this?
Thanks,
Alan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]