Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Where is my reverse mouse cursor?

(1/3) > >>

280Z28:
This concerns Windows builds.

When you hover over the line numbers of an editor, you can click to select a full line. The mouse cursor should point to the right while over this selection margin to indicate the expected action. It doesn't.

There is a line of code at codeblocks/sdk/wxscintilla/src/scintilla/src/Editor.cxx:5215 that sets the mouse cursor to point right. I have used the debugger and verified this line IS getting called at the right time.

The problem seems to lie inthe way wxWidgets handles the call. If you look at wxWidgets-2.6.2/src/msw/cursor.cpp:313, you can see that the right arrow is not defined as a Windows default. Instead, the cursor is supposed to load from the wxWidgets DLL, as specified in the resource file wxWidgets-2.6.2/include/wx/msw/wx.rc:55.

So why did I mention all this? Well, it seems there is a right-cursor that DOES get shown at one point. If you hover your mouse over the far left pixel of the text area in the Build Log or the Code::Blocks message tab (a couple tabs to the left of the build log on mine), the cursor points to the right. Why does it happen here, and how can we make use of that to make it also point to the right when you're hovered over the selection margin of an editor window?

takeshimiya:
This bug along with the one described here are the most annoying ones personally. I've met them when I first discovered C::B and I was really worried no other noticed it.

I didn't bothered to fix it because I thought it was a scintilla bug, but it seems not.

280Z28:

--- Quote from: Takeshi Miya on December 21, 2005, 10:41:49 pm ---This bug along with the one described here are the most annoying ones personally. I've met them when I first discovered C::B and I was really worried no other noticed it.

I didn't bothered to fix it because I thought it was a scintilla bug, but it seems not.

--- End quote ---

I can fix that one. I just fixed the one where after you type '}' and it automatically lines up your brace, the next uparrow or downarrow keystroke puts the cursor at the beginning of the line you move to instead of right above or below where the brace is.

Can you figure out what's different between the editor margin and the build log margin?  :?

280Z28:
To fix the behavior in the breakpoint margin, comment out the following line from sdk/cbeditor.cpp:

--- Code: ---m_pControl->SetMarginSensitive(1, 1);
--- End code ---

There's only one such line in the file. You can still set, edit, and remove breakpoints and bookmarks by right-clicking the margin.

grv575:

--- Quote from: 280Z28 on December 22, 2005, 12:08:33 am ---There's only one such line in the file. You can still set, edit, and remove breakpoints and bookmarks by right-clicking the margin.

--- End quote ---

Isn't being able to set breakpoints easily (1 click) more important than visual feedback when highlighting a line?  I think it's a scintilla shortcoming/bug in any case.

Navigation

[0] Message Index

[#] Next page

Go to full version