There is a vb6 built desktop application EXE running in Windows environment. Sometimes, when the prompt window loads it is all scrambled. When I minimize the window and then re-open, it is fixed. Any idea what could be the root cause?
Is this a code issue? Memory issue? Graphic Card?
This I suspect is to do with the property of the command window on that particular machine.
Open cmd.exe, click on the icon, go to the property, go to the layout tab and check if it has got enough buffer size. Try to match with the machine on with its working.
Related
I installed and ran Steam inside Weston, when I enter Steam classic layout (not big screen), the mouse position is off where Steam thinks it's pointing at.
For example:
Here my cursor is not pointing at LIBRARY tab on the upper taskbar, however LIBRARY tab is highlighted, so Steam thinks my mouse is on LIBRARY:
enter image description here
And in settings window, it's the same, I am not pointing at the "Change" button but it is highlighted:
enter image description here
However, this problem only exists in upper taskbar, lower taskbar, and independently opened window like settings, in the middle part of Steam layout, including game list on the left, and details page of the game, cursor offset does not appear. In this picture, it shows the game name is highlighted correctly when my cursor is on it.
enter image description here
And if I open it in Big Screen mode, the problem does not appear:
enter image description here
Sorry for taking pictures from display directly because it's in a docker container and I can't correctly screenshot for many reasons. But I guarantee it's not the docker container's problem because if I ran weston&steam in a docker or directly in my local host, the same problem happened. So it should be the problem of whether weston or steam.
The cursor position is correct in the shell of and other apps running in the weston, so I think it's some wrong matching between Steam and weston, the problem is that I can't find why and where things go wrong.
I tried:
Inside Steam:
Running Steam without using weston, both in docker and out docker, it works fine.
Changing resolution (video dimensions) of Steam layout, turning off and on "Enlarge text and icons based on monitor size", "Enable smooth scrolling in web views", "Enable GPU accelerated rending in web views", "Enable hardware video decoding, if supported" in the Interface tab of settings. But it does not work.
Changing the display size for library user interface elements, it does not work.
Reading log:
Read kernel log, found no problem.
Read weston log, found some errors but running on local host also has same errors.
Read command line log, found no specific errors regarding steam layout.
Steam might not find or output cursor offset to log.
For weston:
I checked the log while starting to run weston, the resolution setting is the same as my desktop screen setting and steam setting, all are 1920x1080p. So should not be the problem of weston resolution.
I tried to add a weston.ini file to change the resolution, but failed due to seatd crash and then I felt no need for that because resolution is checked to be matched.
Inside .steam directory:
Checked same files between local host Steam folder and Steam folder in docker, either they are 100% the same, or the difference is just about timestamp. There are few files existing in docker but not on local host, I removed them and ran Steam, problem persists.
I also tried to locate the exact file where Steam layout is coded, but I didn't manage to find it.
I download the Stack Windows Manager from Microsoft store. Someone introduced it to me and said it is a great program.
Oddly, after installing it and setting it up, I cannot find out how to start using it? There is no instruction to show me how to at least organize my desktop into this "layout tool". Is there a video anywhere?
At the first launch on each screen it shows you a few layouts to select from.
After you made the selection, either use Win+Arrow keys to move windows around, or drag windows between areas with middle mouse button (usually it is also the scroll button).
Within the IDE, when F12 toggles between code and form,
the forms are displayed outside the monitor borders,
and therefore not visible.
This happens after a multi monitor setup has changed,
and the forms no longer open within the available new monitor screen areas.
One way to resolve this is to use the property inspector and
set the Top/Left properties to 4 to make the forms visible.
This is however a lot of work,
especially if many forms and possibly many projects are involved.
Is there a better way to reset the form locations once and for all,
so they are all visible with the new monitor setup?
There is nothing (AFAIK) in Delphi 6 IDE that would help. But assuming you are using Windows, the help is near, (tested on Windows 7):
Right-click on taskbar and select 'Cascade windows', this affects all windows in one go.
or
Alt-Tab to the window, press Alt-Space and then M (for move). Move the window with the arrow keys. This you would have to do seperately for each window.
Close your Delphi IDE. Then, if your current project group file is xyz.groupproj, open the file xyz.dsk with an text editor. Look for section [UndockedDesigner] entry "Count" and change its value to zero.
[UndockedDesigner]
Count=0
That will force all design window positions to 0,0 on your main monitor.
I am facing a strange problem, when I click to see SQL of TFIBDataset component, then the window seems to be open but not visible, coz once it is open i can't click in Delphi until I press Esc key. I tried pressing Alt + Tab key, but no use. then I right click on that component is chose SQL Generator option, but then also I couldn't see the SQL window.
Any clue?
I got the solution.
I was using a laptop, and a monitor was also connected to it. I made screen resolution setting on Windows 8 as "Show Desktop Only on 2".
When I was clicking on SQLs property TFIBDataset component, then the window was displaying on Laptop screen and not on Monitor screen.
Because of "Show Desktop Only on 2" setting, laptop screen was in switched off mode, so I couldn't able to notice this change.
Finally, I made the screen resolution settings as "Duplicate These Displays" and now able to see the SQL window on both the screes.
Happy At The End :)
With Best Regards.
Vishal
I noticed that if I set the Delphi 2010 IDE window to be something other than maximized it automatically maximizes when I run an application friom inside the IDE. When the program is closed, the IDE window resizes back to the size it was prior to running the program.
Is there anyway to turn off this annoying behavior?
This happens because you have defined a Debug Desktop. You can either switch off the Debug Desktop feature, or define a different desktop view to be your Debug Desktop.
The settings are under the View | Desktops menu if I recall correctly.
I find this feature very powerful, especially combined with my multiple monitors. The debug desktop lives on a separate monitor so it doesn't overlap with my app window. And I can also configure the layout of call stack, watches, locals windows that I don't show in my standard desktop.