Sorry in advance for the vague conditions in which the problem below occurs. It is very intermittent, and I have not pinned down a consistent set of steps that reproduce it yet. (Which is why I'm asking for some general or common things that might cause it)
The application I'm working on consists of MonoDevelop.Components.Docking dock frames. There is a tabbed group of panels in one if the frames, and one of them has a GtkTreeView in it. Every now and then, the nodes of the Treeview will not expand when clicking on the + button. This does not go away until restarting the application.
However, since I have not been able to consistently reproduce it, I'm kind of at a loss of what to look for/mess with to fix it. So does anyone have any ideas on what might generally cause the nodes to not expand when clicked? Or any better steps I should try in order to reproduce it?
I have found this occurs when a disabled node is in the TreeView. In my case it was a project in the solution pad of MonoDevelop that was set to not build in the current configuration. When I removed the project, all other nodes in the TreeView started working again immediately.
You can use the arrow right/left keys to expand/collapse nodes.
It may be related to a Gtk bug:
https://bugzilla.gnome.org/show_bug.cgi?id=675835
which was fixed recently:
http://git.gnome.org/browse/gtk+/commit/gtk?h=gtk-2-24&id=b32a9eb691920f21ad3b9127c833aaba15727c4b
Related
It is quite to scroll through tabs in Idea. I am happy about the speed it scroll through files, but for tabs it is too slow.
Is there a way to keep the general scroll speed but make it faster only when scrolling through tabs?
I am aware that there are hotkeys to switch tabs quickly, but still need to know.
Indeed in the current build 2020.3.1 tabs scrolling is very slow. There is a bug for it, and apparently, JetBrains already fixed it. Here are official comments from a developer:
These three problems were fixed:
For slow mouse wheel rotation we should use "rough" integer metrics event.getUnitsToScroll() instead of "precise" double metrics event.getPreciseWheelRotation(). Actually is means 1 instead of 0.1 in my environment (MacBook)
In MacBooks trackpad can suddenly send a single scroll event in opposite direction and looks like "trembling", these sudden events should be ignored
Unit increment for horizontal scrolling can be tuned now with registry key ide.editor.tabs.scroll.unit.increment (default value is 10)
See here for the relevant changes.
As for versions of IntelliJ:
2020.3.1 the bug exists and you can do nothing about it, is suppose, without altering the speed of scrolling in the main window.
2021.1 the bug was fixed. Currently (23.01.2020), you can't download it, but I think it will be available soon as EAP Build. Please, see here.
If you want it right now, you can download the source code and build it manually from the git repo. The build instructions are simple. I tested it, and indeed, the scrolling is much faster now :)
Additionally, after the availability of 2021.1 build, you can modify the speed of tab scrolling by changing the registry value ide.editor.tabs.scroll.unit.increment
EDIT: I realized that I didn't tag this properly - I should have included vb.net as a tag, on the grounds that there could be a code based solution. Note, that no changes to the resolution are made in my source code.
UPDATE: When the program starts execution, the left coordinate for each PictureBox is multiplied by ~0.376, whilst the top coordinate for each PictureBox.Top is multiplied by ~0.418 . This "down-scaling" applies to all picture boxes. The source code I have is incredibly rudimentary and cannot be responsible for this. I also looked at another project and I still face the same error. A simple but poor fix would be to divide each coordinate by the corresponding values mentioned above.
In order to show you the issue I'm facing, please look at the images below. Compare this image, where each PictureBox (i.e. a snake, set of arrows, etc.) has been placed so that they line up with a feature of the background image:
To this image, where the PictureBox elements are bunched together. Their positions have been "down-scaled" closer to the origin of the form (note that all the elements are transforming horizontally during runtime, which is why the elements are in the top right corner):
In the solution I was given (developed in VS 2010 I believe), the position of each PictureBox goes beyond the background image as shown:
It is clear that each picture box has been placed in an organized fashion. During execution, each PictureBox goes to it's intended position (i.e. lines up appropriately with the background image).
Obviously, the original developer of the solution I was given would have not faced the problem I am. The fact that the solution works properly during runtime indicates some kind of error with my instance(s) of VB. Does anyone know of any solutions?
I've came across this question which asks how to change the default resolution for a Windows 8 App and this question which asks why some applications appear differently on different machines, but they pose no clear solutions. I would appreciate any help, since it's holding me back from critical work I must do. Thank you in advance!
I feel a little silly now - I started carrying out a bit more research on VB forms and came came across this Microsoft documentation on form scaling. Realizing that my issue may have been caused by having this scaling automatically carried out, I then found the AutoScaleMode property of my form and changed it from Font to None, which resolved my problem.
So I have 3 split containers, with 2 panels each.
SplitContainer1 is the main container that is docked in the Form ( Parent ).
SplitContainer1.Panel1 contains SplitContainer2 which is docked.
SplitContainer1.Panel2 contains SpliContainer3 which is docked.
So far so good.
SplitContainer1 has a SplitterWidth of 3.
SplitContainer2 and SplitContainer3 has a SplitterWidth of 6.
In the Designer, you can see the SplitterWidth difference between them, but when I build the solution, the SplitterWidth of SplitContainer2 and SplitContainer3 gets reset back to 4 no matter what I do. I have changed the code in "InitializeComponent" of the form with no effect.
The only way I got this working is in the Load Event of the form, re-specify the SplitterWidths which I find completely dumb. Why won't the SplitterWidths stay at the value I specified in the Designer?
If anyone can shed some light on this, what would be awesome!!
Thanks for your time,
Peter
Just so that this isn't left unanswered for eternity -
This is an old bug that has been in Visual Basic for many versions now, and is never addressed (nor is it likely to ever be addressed).
As Hans Passant mentions, the issue is due to the ISupportInitialize implementation for the SplitContainer.
Since it's a bug, there is not definitive way of resolving the issue that makes any logical sense.
One way, which I've tested in a mock up program, is as #xfx says - Add and manipulate the controls programmatically, rather than using the toolbox.
An alternative is to reload the SplitterWidths programatically, whether that's on Form_Load, which is most likely, or anywhere else in the code that it may be required.
For some reason Intellijs text cursor keeps following my mouse and highlighting everything. Is there some setting that can do that? I can't seem to find it from searching the settings. Where else could it be?
If you have a touchscreen try touching it somewhere. It helped me to solve the issue.
Found the solution in this thread on the JB website.
I use a touch screen monitor and i deal with the same issue. my mouse cursor remained in selecting state and highlight every thing.
I touch somewhere on the my monitor screen once and solved this problem without closing app.
Other solutions are:
close and open app
/ restarting computer
I had that problem twice on two different computers in different jetbrains IDEs, gogland and pycharm.
The solution, as annoying as easy, restarting of the machine. Restarting the IDE or even up/downgrading did not help.
Solution
Go to setting
Search for mouse
In the editor action, edit the Add rectangular selection on mouse drag
I'm trying to get wxCheckBox to have sensitive label like it is in some other toolkit's.
It is often too delicate to aim on little box so whole area with label would be much convenient way to change a state.
But I can't find a way to do it.
Any help would be appreciate.
wxWidgets 2.8, Ubuntu 10.04
I can confirm this is a bug in wxWidgets GTK for wxALIGN_RIGHT check-boxes. If we take a quick look at the source code for the wxCheckBox we can see that right aligned controls are created as two seperate parts, a label and a check box and that the label is never connected to to respond to click events. If you create a ticket on the wxWidgets bug tracker then I am sure someone will fix it.