03-31-2008 10:36 AM
Luis,
I have tried all your suggestions and everything has worked. Thank You.
I do have another question.
Now that I have everything working in different resolutions. Meaning, that nothing is on top of each other and everything works as expected, I did discover one last issue. There are a couple of places in the code that makes the height of a decoration smaller or bigger(with SetCtrlAttribute). The height adjustment occurs at startup when I am loading the panels and can occur various times during run time. The decoration is set up to line up with other decorations around it. However, this only works nicely when I have saved the .uir file in the same resolution as the target computer's resolution. If I build in a resolution that is not 1024 x 768, the height adjustment is incorrect when I load the program onto the target that has a resolution of 1024 x 768. The requirement is to use a default resolution of 1024 x 768 but we need to allow the user to change to other resolutions.
1.) Is this expected behavior?
2.) What do you recommend as a fix for this? I have thought about completely getting rid of re-adjusting the decoration heights during run time, since it's only in a couple of places. I also have a quick fix in which I take the height of the decoration next to it and set the height to this value. This works but it doesn't seem like a good solution since I am building a dependency on another decoration. I have a few other clugy ideas. But all of them don't seem like a long term solution. Can you please advise.
Please let me know.
Thanks, Letty
04-03-2008 02:37 PM
04-09-2008 11:44 AM
LuisG wrote:
Hi Letty,
I'm not sure that I completely understand the problem you're describing. It sounds to me as if first you are loading the panel, then you are explicitly resizing one of the controls, at which point the UI no longer looks good -- if the resolution is different from the original resolution of the panel.
Is this correct?
My question is what exactly is happening with this decoration? Is it too big, or too small? And at point does it start looking bad? Is it right after you resize the decoration? Does the resize operation not do exactly what it's supposed to do? Can you provide a couple of screenshots of what you would like it to look like, versus what it really looks like when it doesn't work?
Finally, keep in mind that the "resolution adjustment" option only has an effect in the LoadPanel call. Once the panel is loaded it has no lasting effect.
Luis
04-09-2008 12:19 PM
Luis,
I just ran a test to print out the height of the decoration un different resolutions. The height value does indeed vary. Am I to assume that resizing is not a good idea when the app is supposed to work under different resolutions?
04-10-2008 02:36 PM