• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 635
  • Last Modified:

Change Display Resolution without screwing up Desktop Icon positions

The application I am developing depends on a consistent screen presentation, and is rather form-intensive.  These forms do not contain "white-space" so therefore cannot be simply maximized to fill the screen.  I have been tinkering with changing screen resolution when my app runs.  The only problem I am having is my desktop icons all get re-arranged, and I am as of yet unable to return them to their proper positions.  Can anyone give me any advice, some example code, or a link to documentation someplace to help me accomplish this task.  I have found several 3rd party programs that manage desktop icon position, but I do not want to use a 3rd party exe to accomplish something that my application should be able to handle itself.
0
steinonline
Asked:
steinonline
  • 4
  • 3
1 Solution
 
steinonlineAuthor Commented:
For Clarification Purposes.....
The software I am writing is an accounting system which was originally developed at a screen resolution of 800 X 600.  The user interface is comprised of full screen forms.  However, the program is finding itself now running on machines with the resolution set much higher.  My full screen forms look like little dialog boxes when run with normal window state, or completely absurd in a maximized state.  I have tinkered with scaling everything on the screen, but ran into several unpleasant issues with that.  My latest attempt at a solution involves setting the screen resolution where I want it to be when my program is active, and setting it back to what it was normally when my program terminates, or deactivates.  When setting the resolution to a smaller size, the desktop icons get moved to fit in the available space.  When switching back to the former original resolution, the icons stay in the wrong spots.  This is very annoying to me, and unacceptable for commercial grade software.  I would greatly appreciate any insight into this area as it is not one of my stronger knowledge areas.
0
 
xr1140Commented:

well, first of all i`ll be VERY upset if a software application change my resolution without my permission, now, beyond my personal preferences:

- every you time your app start you will have to make a "snapshot" of the current screen configuration ( resolution & icons position) and restore it when your application quit.
0
 
steinonlineAuthor Commented:
Additional Clarification
Running the application "Full Screen" is a user preference.  My program does not force this to occur. It is by choice of the user.  I would like to know how to make this "snapshot" and also how to use this "snapshot" to restore things to their previous state.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
steinonlineAuthor Commented:
Or perhaps, is there a way that I can keep windows from re-drawing the desktop when screen resizing occurs...... in other words just leave the icons out there in never never land off the side and bottom of the viewable area?
0
 
xr1140Commented:

TconDesktop Class v1.2 from http://www.paranoia.clara.net/software/index.html is what you need. It provide a list of desktop icon names and positions which you can use.

[quote]
procedure GetIcons = gets names + positions of desktop icons in IconList
procedure RestoreIcons = restores positions of desktop icons from IconList
[/quote]
0
 
steinonlineAuthor Commented:
Thank you very much.... this was exactly the type of solution I was looking for.... now my program seamlessly switches in and out of the desired display resolution with no apparent side effects at all.
ENJOY THOSE POINTS!
0
 
xr1140Commented:

I`m glad I could helped you.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now