Lazarus

Miscellaneous => Suggestions => Topic started by: speter on October 09, 2020, 02:10:44 am

Title: project > publish
Post by: speter on October 09, 2020, 02:10:44 am
G'Day Folks,

I was going to post a question about a problem with some code; but I solved my problem. :)

While in the process, I 'published' my project ("Project" > "Publish Project").
I specified a folder to place the zip file and received the msg dialog in the attached image.

In the dialog box, the path doesn't fit (the end of the path is therefore hidden).

I'd like to suggest that this dialog either be resizable or that it gets resized to fit the string.

cheers
S.

Title: Re: project > publish
Post by: BrunoK on October 09, 2020, 10:38:57 am
Try Control-C (copy) and paste the result in a text editor. That should show the complete message.
Title: Re: project > publish
Post by: Martin_fr on October 09, 2020, 04:24:09 pm
I am not sure if this is a "feature" by the OS/Windows dialogue.

In any case, you might want to report it on the bugtracker.
Title: Re: project > publish
Post by: JuhaManninen on October 09, 2020, 06:10:14 pm
I am not sure if this is a "feature" by the OS/Windows dialogue.
IDEMessageDialog is used. It is implemented as a fixed size dialog for some reason. I know that MessageBox in Windows in fixed size but this one is fixed also with QT5 bindings.
I also don't like such dialogs. Modern desktop systems like KDE Plasma have resizable dialogs everywhere.
IDEMessageDialog implementation should be changed IMO.

This is from line 433 in unit PublishModuleDlg :
Code: Pascal  [Select][+][-]
  1.     // ask user, if destination can be deleted
  2.     if IDEMessageDialog(lisClearDirectory,
  3.       Format(lisInOrderToCreateACleanCopyOfTheProjectPackageAllFil,
  4.              [LineEnding+LineEnding, FDestDir]),
  5.       mtConfirmation, [mbYes,mbNo])<>mrYes
  6.     then
  7.       exit;
  8.  
Title: Re: project > publish
Post by: Sieben on October 09, 2020, 06:21:03 pm
And what method is used to shorten FDestDir for display? Cutting on the last part(s) seems not very instructive.
Title: Re: project > publish
Post by: speter on October 11, 2020, 09:40:58 am
And what method is used to shorten FDestDir for display? Cutting on the last part(s) seems not very instructive.

Yes; particularly when the dialog is basically saying:

 "Hey, I'm going to delete everything in this (unspecified) folder; is that ok?"  :) ;-)

What could possibly go wrong!

cheers
S.
Title: Re: project > publish
Post by: MarkMLl on October 11, 2020, 11:19:58 am
IDEMessageDialog is used. It is implemented as a fixed size dialog for some reason. I know that MessageBox in Windows in fixed size but this one is fixed also with QT5 bindings.
I also don't like such dialogs. Modern desktop systems like KDE Plasma have resizable dialogs everywhere.

Seconded. And I'd add that in my own code I use a custom dialogue which positions itself halfway between the parent form and the screen(s) centre.

MarkMLl
TinyPortal © 2005-2018