Jonathan-LeRoux / IguanaTex

A PowerPoint add-in allowing you to insert LaTeX equations into PowerPoint presentations on Windows and Mac
http://www.jonathanleroux.org/software/iguanatex/
Other
902 stars 62 forks source link

(Re)add mouse wheel support #76

Closed koppor closed 4 weeks ago

koppor commented 1 month ago

Refs https://github.com/Jonathan-LeRoux/IguanaTex/issues/12#issuecomment-704642824

Mouse wheel scrolling of the "latex code" area does not work. Meaning: If I use the mouse wheel while hovering on that field, nothing happens.

Jonathan-LeRoux commented 1 month ago

It works for me... We need to figure out why it doesn't work for you. Note that the comment you referred to is old and should have been addressed.

I've noticed in the past that sometimes the scrolling bar doesn't appear, but I haven't seen this in a long time and couldn't reproduce it regularly. I'm wondering if maybe you're hitting this kind of situation here.

koppor commented 1 month ago

Scrollbars appear:

image

Jonathan-LeRoux commented 4 weeks ago

Oh, you're talking about the error window! It's true that this isn't implemented. I can easily add it, I think it's only a matter of integrating to the ErrorForm the code around this line.

Jonathan-LeRoux commented 4 weeks ago

Please try the version in IguanaTex_v1_62_20241102.zip, it should fix this issue and https://github.com/Jonathan-LeRoux/IguanaTex/issues/77.

koppor commented 4 weeks ago

Please try the version in IguanaTex_v1_62_20241102.zip, it should fix this issue and #77.

Thank you for the quick reply. I tried to compile IguanaTex_v1_62.pptm to *.ppam, but I have an compile error in ErrorForm

image

I am stuck somehow 😅

Jonathan-LeRoux commented 4 weeks ago

My bad, I got totally confused between the ErrorForm, which doesn't have any scrollable area, and the LogFileViewer, which is what you were talking about. But the LogFileViewer should already have the ability to scroll with the mouse wheel. It works on my end. So we're back to needing to figure out why it doesn't work for you.

This is really hard to debug because you can't really put a breakpoint near HookListBoxScroll, it will just crash PowerPoint...

Can you scroll in the main IguanaTex window?

Jonathan-LeRoux commented 4 weeks ago

Here is a version without the scroll fix, but which fixes https://github.com/Jonathan-LeRoux/IguanaTex/issues/77: IguanaTex_v1_62_20241103.zip

Jonathan-LeRoux commented 4 weeks ago

The only thing I can think of is that your PowerPoint is 32-bit. The scrolling functions are supposed to work both on 32 and 64-bit, but I have no way to test that...

koppor commented 4 weeks ago

Then, I close. In case I manage to install PowerPoint 64bit - and I encounter this issue, I will reopen.

Jonathan-LeRoux commented 4 weeks ago

Please keep us updated!