Web forum is in read-only mode. Login as active registered customer for write access
  Forum Search   New Posts New Posts

TFormSize: Problem Saving Form Size

 Post Reply Post Reply
Author
Maughan Steve View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 Sep 2011
Posts: 137
Post Options Post Options   Quote Maughan Steve Quote  Post ReplyReply Direct Link To This Post Topic: TFormSize: Problem Saving Form Size
    Posted: 03 Sep 2019 at 9:20pm
Hi Bruno,

I'm having problems saving a form's size using TFormSize. Note: I use the component to save the size but not the position. Here's a video that explains:


And here's a link to the the test project:


It worked wonderfully in the past. It's something to do with the latest changes in the VCL UI Pack. I'm using the latest (10.0.4.0).

Hope it can be fixed soon!

Thanks,

Steve
Back to Top
Maughan Steve View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 Sep 2011
Posts: 137
Post Options Post Options   Quote Maughan Steve Quote  Post ReplyReply Direct Link To This Post Posted: 05 Sep 2019 at 3:52pm
HI Bruno - are you able to replicate the problem?

Thanks,

Steve
Back to Top
Bruno Fierens View Drop Down
TMS Support
TMS Support
Avatar

Joined: 11 May 2010
Posts: 8398
Post Options Post Options   Quote Bruno Fierens Quote  Post ReplyReply Direct Link To This Post Posted: 05 Sep 2019 at 4:00pm
I could run & see that when the Load*/Save* methods are not used, it doesn't persist the size.
I could not yet allocate sufficient time to investigate more deeply what is causing this and how to solve this. I'd suggest for now, as a workaround to call the Load*/Save* methods.
Back to Top
Maughan Steve View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 Sep 2011
Posts: 137
Post Options Post Options   Quote Maughan Steve Quote  Post ReplyReply Direct Link To This Post Posted: 05 Sep 2019 at 5:55pm
Hi Bruno,

Sorry, I mustn't have been clear. It's not saving the size when the Load / Save methods are called. Or if it is, the size is not correct. In this case, calling the Load / Save methods isn't a workaround.

Best regards,

Steve 
Back to Top
Maughan Steve View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 Sep 2011
Posts: 137
Post Options Post Options   Quote Maughan Steve Quote  Post ReplyReply Direct Link To This Post Posted: 16 Oct 2019 at 3:58pm
Hi Bruno,

Any news? Has this bug been fixed? As it stands, the component is unusable for saving a form's size and I'll need to remove the component from my project.

Thanks,

Steve
Back to Top
Bruno Fierens View Drop Down
TMS Support
TMS Support
Avatar

Joined: 11 May 2010
Posts: 8398
Post Options Post Options   Quote Bruno Fierens Quote  Post ReplyReply Direct Link To This Post Posted: 18 Oct 2019 at 4:00pm
We have fixed an issue with TFormSize.
At the same time, when you adapt the TFormSize settings from the form's OnCreate event , this is too late for the TFormSize to automatically pickup the form settings. If you want it to pickup the form settings from the form's OnCreate event , you will need to call LoadFormSettings.
But if you do all TFormSize settings at design-time, it will work.
The next TMS VCL UI Pack release with contain this updated TFormSize.
Back to Top
Maughan Steve View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 Sep 2011
Posts: 137
Post Options Post Options   Quote Maughan Steve Quote  Post ReplyReply Direct Link To This Post Posted: 21 Oct 2019 at 3:52pm
Wonderful - thanks Bruno!
Back to Top
Maughan Steve View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 Sep 2011
Posts: 137
Post Options Post Options   Quote Maughan Steve Quote  Post ReplyReply Direct Link To This Post Posted: 06 Nov 2019 at 4:39pm
HI Bruno - do you have an ETA for the next release of the VCL UI Pack? If it's not imminent could you send me the fixed files for TFormSize?

Thanks,

Steve
Back to Top
Bruno Fierens View Drop Down
TMS Support
TMS Support
Avatar

Joined: 11 May 2010
Posts: 8398
Post Options Post Options   Quote Bruno Fierens Quote  Post ReplyReply Direct Link To This Post Posted: 06 Nov 2019 at 5:23pm
The release will be at earliest after our TMS Training days (Nov 14,15,18)
If you need an incremental update faster, please contact us by email.
Back to Top
Maughan Steve View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 Sep 2011
Posts: 137
Post Options Post Options   Quote Maughan Steve Quote  Post ReplyReply Direct Link To This Post Posted: 06 Nov 2019 at 5:26pm
Thanks!
Back to Top
Jaschke Matthias View Drop Down
New Member
New Member
Avatar

Joined: 13 Jan 2013
Posts: 34
Post Options Post Options   Quote Jaschke Matthias Quote  Post ReplyReply Direct Link To This Post Posted: 16 Nov 2019 at 8:29pm
I have similar problem. Sometimes after starting program, form starts at top left position.
I hope, that update is coming soon.
Back to Top
Bruno Fierens View Drop Down
TMS Support
TMS Support
Avatar

Joined: 11 May 2010
Posts: 8398
Post Options Post Options   Quote Bruno Fierens Quote  Post ReplyReply Direct Link To This Post Posted: 17 Nov 2019 at 8:45am
We are working hard to have the next major release in the week of Nov 25.
If you prefer an urgent incremental source update, please contact us by email.


Edited by Bruno Fierens - 17 Nov 2019 at 8:45am
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down