Jump to content
Sign in to follow this  

RichEdit weird behavior after adding tabs

Recommended Posts

I've got a program that I've been converting to a tabbed interface. It uses a RichEdit control for showing a buffer of communications. I added the Tab control and have revamped the code fully to take advantage of creating tabs and all that fun stuff. Everything is working exactly how I planned except now I see two things happening: 1) As I move my mouse over the RichEdit control, my mouse flickers between the IBar cursor and the standard arrow cursor, and 2) I can't scroll in the RichEdit with my mousewheel anymore.

Allow me derail this post for one second. In Windows you have to click on a control before you can use your mousewheel to scroll it. I hate this. I use a program called XMouse Button Control which will scroll the control under the mouse cursor without having focus. I have disabled this program and when I focus the RichEdit, it will scroll with the mousewheel, but with the program enabled, I can't even scroll with the RichEdit focused.

I know this is kinda petty, but this program I'm writing is going to be used almost constantly every day and I don't want to have to choose between the two. I've tried a couple other programs (WizMouse, KatMouse) that do the same function as XMouse but they don't work with my program either. I'd like to try to identify and fix the problem in my UI, with your help.

I've attached the full script. I've run Au3Info and when I move the target over the RichEdit, I see the typical RICHEDIT50W type. I'm starting to mess with styles on both the Tab control and the RichEdit control but I don't know if any of that will help.

Thanks for reading!


Edited by sentry07

Share this post

Link to post
Share on other sites


The "IBar/arrow cursor flicker" when over certain controls has been reported from time to time - here is one I know of. Unfortunately other people seem not to suffer the same effect when running exactly the same script - I get no flicker at all with your script - which makes it very hard to offer any real solution. It seems to be particular to certain machine setups and, given the infinity of available combinations, almost impossible to analyse given the very few cases that we hear about.

The interaction of your AutoIt script (or rather lack of it) with XMouse sounds like a low level incompatibility. As far as I know AutoIt uses only standard Windows API calls - it sounds like XMouse and the other apps do something clever to work their magic and that simple old AutoIt just gets bypassed in the rush.

Sorry if all that sounds rather dismissive - and I am not trying to show AutoIt as perfect - but unless we can positively identify a circumstance in which the flicker problem is consistently reproduceable, I do not believe that there is not much we can do to help. :(


Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:


ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area


Share this post

Link to post
Share on other sites

Well, I fixed my problem, so to speak. After much tweaking and trying many different combinations, I found that the problem with scrolling occurred when the Tab control was behind the RichEdit, for whatever reason. So I resized the Tab control to be just the height of the tabs themselves since I'm managing objects on the GUI myself anyway. This also fixed the cursor blinking problem.

Now I just need to figure out why the script doesn't work on Win8. :)

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...