Hi Philipp,

Apologies for the long delay, but found no student to work on that, so I finaly did the work myself (last week).


Philipp Lohmann a écrit :

The item text is the text that can be drawn next to the button (try

[...cut...]

Then you don't draw in the InsertItem* methods - or rather you cause an update there, but there are different circumstances where you need to paint that "target rectangle", basically whenever a paint event for thatoccurs (think someone moves another window over your rectangle and it gets hidden, then visible again).

However if I understand you correctly, that target rectangle would be somewhere 
outside the toolbox, so it would be in a different window.

Indeed. In the workwindow, itself using a DecoToolbox.


If I would have to implement this; I'd rather atach an event handler to the toolbox in question (using the AddEventListener method) and listen for events of type VCLEVENT_TOOLBOX_HIGHLIGHT to know when the user has moved the pointer over a new item. You can then get the helptext for that item from the toolbox and set it on a Control (e.g. a FixedText) which does the text painting on its own.

Works perfectly, thanks a lot for your -one more time - golden advices :)


To prevent the toolbox from still popping up its quick help window, derive from 
the toolbox (you already have, your's is a DecoToolbox in backingwindow.cxx) 
and implement
void RequestHelp( const HelpEvent& rHEvt ) {}

Works perfectly either !


simply doing nothing so no help bubble gets shown.


To share everything, I explained what i did on a wiki page (not up to date, but I'll add new screenshots very soon)

The link : http://wiki.ooo4kids.org/index.php/NewStartCenterBehavior


Thank you very much, and Seasons Greatings :)
Eric

--
Education Project:
http://wiki.services.openoffice.org/wiki/Education_Project
Projet OOo4Kids : http://wiki.ooo4kids.org/index.php/Main_Page
L'association EducOOo : http://www.educoo.org
Blog : http://eric.bachard.org/news

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@gsl.openoffice.org
For additional commands, e-mail: dev-h...@gsl.openoffice.org

Reply via email to