Jean-Marc Lasgouttes <lasgouttes <at> lyx.org> writes: > What I would try personally is to look at TextMetrics::drawParagraph > (TextMetrics.cpp). There, you can test whether the cursor is in the row > one wants to paint, and whether its x_pos() is too large for the screen. > In this case you can, as a first experiment change the value of the x > parameter of the RowPainter constructor and see how well it works for > example for making large equations easy to edit. No UI at this point, > and no inset specific code.
Thank you for this information. I will try to learn more about this. Here, do you prefer sliding row by row or slide the whole paragraph? I think it would be better if I try and get back to you. If a table is too large (or a snippet with multiple columns), when we move the cursor to the edge of any of the rows, whole table (snippet) should slide. Will that be doable by following this approach? > > But I still did not find a way to how to > > activate an event that listen to mouse hovering. It seems like that LyX has > > not still used such actions. I am pleased if you can guide me with your > > experiences and knowledge. > > It may be interesting to take a look at BufferView::updateHoveredInset() > (BufferView.cpp) where some similar stuff is done for hovering over > inset buttons. This would be really helpful. > I do read all these mails, even if I do not seems very reactive at times. > > PS: of course, you should also read the threads started by other > students interested in this subject, since I may answer there to > questions that are of interest for you too. Of course I will. Thank you Hashini