Recent

Author Topic: project > publish  (Read 3854 times)

speter

  • Sr. Member
  • ****
  • Posts: 345
project > publish
« 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.

« Last Edit: October 09, 2020, 02:13:16 am by speter »
I climbed mighty mountains, and saw that they were actually tiny foothills. :)

BrunoK

  • Sr. Member
  • ****
  • Posts: 452
  • Retired programmer
Re: project > publish
« Reply #1 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.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9794
  • Debugger - SynEdit - and more
    • wiki
Re: project > publish
« Reply #2 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.

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4460
  • I like bugs.
Re: project > publish
« Reply #3 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.  
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

Sieben

  • Sr. Member
  • ****
  • Posts: 310
Re: project > publish
« Reply #4 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.
Lazarus 2.2.0, FPC 3.2.2, .deb install on Ubuntu Xenial 32 / Gtk2 / Unity7

speter

  • Sr. Member
  • ****
  • Posts: 345
Re: project > publish
« Reply #5 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.
I climbed mighty mountains, and saw that they were actually tiny foothills. :)

MarkMLl

  • Hero Member
  • *****
  • Posts: 6676
Re: project > publish
« Reply #6 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
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

 

TinyPortal © 2005-2018