position of cursour by htmlcellhover Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
Wolfgang
I live to help wx-kind
I live to help wx-kind
Posts: 180
Joined: Mon Jan 28, 2019 8:22 am

position of cursour by htmlcellhover

Post by Wolfgang »

Hello

I have an HTMLCELLHOVER event

All is working, but if the htmlwindow is scrolled down the caclulated position is not correct.
At the calculated point I show another window.

Code: Select all

		lpos = H_cell->GetAbsPos();
		wxSize bibsy;
		bibsy= m_bibf[count]->GetSize();
		
		while (lpos.y > bibsy.GetY())
		{
			lpos.y = lpos.y - bibsy.GetY();
		}
		lpos.x = lpos.x + m_bibf[count]->GetScreenPosition().x;
		lpos.y = lpos.y + m_bibf[count]->GetScreenPosition().y;
		
It is now either to high or to low, but not on the right place, if the window is scrolled.
User avatar
doublemax
Moderator
Moderator
Posts: 19116
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: position of cursour by htmlcellhover

Post by doublemax »

Use the source, Luke!
Wolfgang
I live to help wx-kind
I live to help wx-kind
Posts: 180
Joined: Mon Jan 28, 2019 8:22 am

Re: position of cursour by htmlcellhover

Post by Wolfgang »

Thanks, working now.
Post Reply