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

Ribbon Minimize / Restore problem

 Post Reply Post Reply
Author
Pelletier Martin View Drop Down
New Member
New Member
Avatar

Joined: 10 Aug 2018
Posts: 19
Post Options Post Options   Quote Pelletier Martin Quote  Post ReplyReply Direct Link To This Post Topic: Ribbon Minimize / Restore problem
    Posted: 11 Jun 2019 at 11:30pm
Hello,

I think I have found a problem with the FNC Ribbon. Seems when using the minimize button and try to click on the application icon on the task bar, the application does not always restore. It's even worse if you click on the application icon from the task bar to minimize it and then you use the same action to restore the application.

I tried the demo application and a new application using the FNC Ribbon Template. This does not happen if application is TForm based.  

I am using Windows 10 Pro 1903 and Delphi Rio 13.3.1

Martin
Back to Top
Pieter Scheldeman View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 3259
Post Options Post Options   Quote Pieter Scheldeman Quote  Post ReplyReply Direct Link To This Post Posted: 17 Jun 2019 at 12:32pm
Assuming you are using FMX, it is an issue in using a form with disabled border. We have tested this here and this issue is also reproducible with a default TForm in FMX, with a BorderStyle property of None. As this is an underlying FMX framework issue, there is little that we can do on our side to fix the issue. Please report this issue to Embarcadero. 
Back to Top
Pelletier Martin View Drop Down
New Member
New Member
Avatar

Joined: 10 Aug 2018
Posts: 19
Post Options Post Options   Quote Pelletier Martin Quote  Post ReplyReply Direct Link To This Post Posted: 18 Jun 2019 at 12:23am
I am not using FMX at the moment. It's a VCL project. The problem is easily on my side reproductible.

The way I do it is :

1. Create a new FNC VCL ribbon project. 
2. Start the application.
3. Press the minizine icon
4. Click on the application Icon on the task bar.

The application on my end doesn't restore to its original state.
Back to Top
Pieter Scheldeman View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 3259
Post Options Post Options   Quote Pieter Scheldeman Quote  Post ReplyReply Direct Link To This Post Posted: 18 Jun 2019 at 4:56pm
Unfortunately even in VCL this is behaving differently with a borderless window. We'll investigate what exactly is going wrong with this. To fix this issue, you need to leave out the TTMSFNCRibbonForm and inherit from TForm again.
Back to Top
Pelletier Martin View Drop Down
New Member
New Member
Avatar

Joined: 10 Aug 2018
Posts: 19
Post Options Post Options   Quote Pelletier Martin Quote  Post ReplyReply Direct Link To This Post Posted: 03 Jul 2019 at 5:23am
Hello,

I tried the FNC Ribbon with the latest version of Lazarus and found out that it also has problem with the minimize / restore. And I also found out that moving the windows is very sluggish compared to Delphi.
Back to Top
Bruno Fierens View Drop Down
TMS Support
TMS Support
Avatar

Joined: 11 May 2010
Posts: 7895
Post Options Post Options   Quote Bruno Fierens Quote  Post ReplyReply Direct Link To This Post Posted: 04 Jul 2019 at 10:14pm
On what operating system are you using this?
Back to Top
Pelletier Martin View Drop Down
New Member
New Member
Avatar

Joined: 10 Aug 2018
Posts: 19
Post Options Post Options   Quote Pelletier Martin Quote  Post ReplyReply Direct Link To This Post Posted: 04 Jul 2019 at 10:49pm
Windows 10 Pro 1903
Back to Top
Pieter Scheldeman View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 3259
Post Options Post Options   Quote Pieter Scheldeman Quote  Post ReplyReply Direct Link To This Post Posted: 08 Jul 2019 at 8:49am
hi,

The minimize/restore issue is something that can be reproduced in a Windows application that has no border. This is unfortunately a framework issue, not an issue that can be fixed here. We suggest to remove the TTMSFNCRibbonForm dependency, and switch to TForm instead, then the minimize/restore functionality will work as expected.
Back to Top
Pelletier Martin View Drop Down
New Member
New Member
Avatar

Joined: 10 Aug 2018
Posts: 19
Post Options Post Options   Quote Pelletier Martin Quote  Post ReplyReply Direct Link To This Post Posted: 17 Jul 2019 at 6:13am
Originally posted by Pieter Scheldeman

hi,

The minimize/restore issue is something that can be reproduced in a Windows application that has no border. This is unfortunately a framework issue, not an issue that can be fixed here. We suggest to remove the TTMSFNCRibbonForm dependency, and switch to TForm instead, then the minimize/restore functionality will work as expected.
 

So you say it's a VLC framework problem? Or FNC? Showing a borderless TForm and trying to minimize it from by clicking the app icon on the task bar doesn't minimize as you say. But putting a button on the form that change the WindowState to wsMinimized and then click on the app icon on the task bar does restore the form to it's original states.

This is strange that this simple behavior doesn't work with TTMSFNCRibbonForm. Because FNC really appeal to me. If this cannot be fixed, than what is the use of a ribbon in the FNC framework? 

The Ribbon from the VCL pack works well, so I will use the VCL pack for my project.

P.S. I am a novice with your tools, so I mean no disrespect in any way. 

Martin. 

Back to Top
Pieter Scheldeman View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 3259
Post Options Post Options   Quote Pieter Scheldeman Quote  Post ReplyReply Direct Link To This Post Posted: 17 Jul 2019 at 8:37am
We'll investigate what exactly is going wrong and see if there is a workaround, what I was trying to explain is that the issue is reproducible without our components, when using a borderless window. So the issue is only partially due to the TTMSFNCRibbon. It's also technically challenging to fix these kind of issues. We have added this on our todolist.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down