Hi,

this is generally not possible. You can only draw within your window bounds. However there is a method to draw also in the region that is occluded by the child windows of a window (thereby painting on those child windows, too). This can be done using the Window::SetParentClipMode( PARENTCLIPMODE_NOCLIP ) method.

The normal ruler however does not do that AFAIK; it seems it simply draws to the correct window. For details see the SvxRuler class: svx/source/dialog/svxruler.cxx in the method SvxRuler::DrawLine_Impl.

Just my 2 cents, pl

On 15.04.11 14:11, Dmitry A. Ashkadov wrote:
Hello!

Can I draw some parts of GUI element outside it (its window)? For example, how can ruler draw over document field? Is it possible?

Thanks.


--

<http://www.oracle.com/>
Philipp Lohmann | Software engineer

OracleOpen Office Development

ORACLE Deutschland B.V. & Co. KG | Nagelsweg 55 | 20097 Hamburg

ORACLE Deutschland B.V. & Co. KG
Hauptverwaltung: Riesstr. 25, D-80992 München
Registergericht: Amtsgericht München, HRA 95603

Komplementärin: ORACLE Deutschland Verwaltung B.V.
Hertogswetering 163/167, 3543 AS Utrecht, Niederlande
Handelsregister der Handelskammer Midden-Niederlande, Nr. 30143697
Geschäftsführer: Jürgen Kunz, Marcel van de Molen, Alexander van der Ven

<http://www.oracle.com/commitment>

        

Oracle is committed to developing practices and products that help protect the environment



--
-----------------------------------------------------------------
To unsubscribe send email to dev-unsubscr...@gsl.openoffice.org
For additional commands send email to sy...@gsl.openoffice.org
with Subject: help

Reply via email to