Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » CExtDynamicBarSite restoring Problem Collapse All
Subject Author Date
Timo Stripf Dec 28, 2009 - 7:11 AM

The SDI_DynamicBars sample and the code himself has an bug.

Its not restoring sizes correct after restart. The size is ever the half of both controls.

Here are an example. You can test it with your own SDI_DynamicBars sample.


Before close the application

http://clip2net.com/clip/m7085/1262009330-clip-10kb.png#@lt;br />


After restart the application

http://clip2net.com/clip/m7085/1262009383-clip-10kb.png#@lt;/p>

Please release a fix for it. Its with 2.88, 2.87 and i thing with 2.85 too.

Technical Support Jan 3, 2010 - 9:48 AM

The resizable control bars docked into one column store information about their height in pixels. They do not store any floating point values describing percent of column height occupied by each bar. The same about widths of resizable control bars docked into one row. If the column height is too small for the main frame in restored state, and you have two resizable bars occupying 25 percent and 75 percent of height in maximized state, then restoring main frame and maximizing them again can change 25/75 proportion to something closer to 50/50 proportion. This is design of current control bar positioning algorithm implemented in Prof-UIS. It’s not critical in the most of cases because applications with many bars are usually limiting the minimal size of main frame window via handling the standard WM_GETMINMAXINFO message.

Timo Stripf Dec 28, 2009 - 4:58 PM

Thanks for your anwser, but the problem exist and i think other user have the same problem. This is a thread from the support forum has similiar results (50:50) after changes. I have create a small video to demonstrate the problem. The problem is, the state of bars is not saved every time. Sometimes works, sometimes not. You can see it in the video clip. I hope you can now reproduce the problem. Some others infos are. The sample app is 32bit directly loaded from the prof-uis page. I use a windows 7 64bit version and visual studio 2008 with prof-uis 2.88, but this info is not necessary, because it doesnt worked on the sample too. I known, the app is not unpacked in this movie but its the same, when it is.


Thanks for your help


http://www.youtube.com/watch?v=bfK6SB0t4wI#@lt;/p>

http://www.prof-uis.com/prof-uis/tech-support/support-forum/dont-restoring-control-bars-layout-when-switching-main-frame-state-66451.aspx#@lt;/p>

Technical Support Dec 28, 2009 - 1:12 PM

We cannot reproduce this issue using the SDI_DynamicBars sample application and Prof-UIS 2.88. We suspect we should do some specific actions, some specific bar redocking sequence to reproduce it. Please provide us with additional information.

Timo Stripf Dec 28, 2009 - 4:59 PM

Thanks for your anwser, but the problem exist and i think other user have the same problem. This is a thread from the support forum has similiar results (50:50) after changes. I have create a small video to demonstrate the problem. The problem is, the state of bars is not saved every time. Sometimes works, sometimes not. You can see it in the video clip. I hope you can now reproduce the problem. Some others infos are. The sample app is 32bit directly loaded from the prof-uis page. I use a windows 7 64bit version and visual studio 2008 with prof-uis 2.88, but this info is not necessary, because it doesnt worked on the sample too. I known, the app is not unpacked in this movie but its the same, when it is.


 


Thanks for your help


 


http://www.youtube.com/watch?v=bfK6SB0t4wI#@lt;/p>


http://www.prof-uis.com/prof-uis/tech-support/support-forum/dont-restoring-control-bars-layout-when-switching-main-frame-state-66451.aspx#@lt;/p>

Timo Stripf Dec 30, 2009 - 1:00 PM

No support? Why we pay for it :)