Print Page | Close Window

Ribbon Minimize / Restore problem

Printed From: TMS Software
Category: FNC Components
Forum Name: FNC UI Pack
Forum Discription:
URL: http://www.tmssoftware.com/site/forum/forum_posts.asp?TID=13521
Printed Date: 23 Oct 2019 at 2:38am


Topic: Ribbon Minimize / Restore problem
Posted By: Pelletier Martin
Subject: Ribbon Minimize / Restore problem
Date 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



Replies:
Posted By: Pieter Scheldeman
Date 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. 


Posted By: Pelletier Martin
Date 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.


Posted By: Pieter Scheldeman
Date 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.


Posted By: Pelletier Martin
Date 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.


Posted By: Bruno Fierens
Date Posted: 04 Jul 2019 at 10:14pm
On what operating system are you using this?


Posted By: Pelletier Martin
Date Posted: 04 Jul 2019 at 10:49pm
Windows 10 Pro 1903


Posted By: Pieter Scheldeman
Date 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.


Posted By: Pelletier Martin
Date 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. 



Posted By: Pieter Scheldeman
Date 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.



Print Page | Close Window