Recent

Author Topic: project > publish  (Read 1695 times)

speter

  • Full Member
  • ***
  • Posts: 161
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. :)

Laz 2.0.10 / FPC 3.2.0 / Windows 10 (64bit)

BrunoK

  • Sr. Member
  • ****
  • Posts: 269
  • 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: 6902
  • 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: 3973
  • 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

  • Full Member
  • ***
  • Posts: 206
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.0.10, FPC 3.2.0, .deb install on Ubuntu Xenial 32 / Gtk2 / Unity7

speter

  • Full Member
  • ***
  • Posts: 161
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. :)

Laz 2.0.10 / FPC 3.2.0 / Windows 10 (64bit)

MarkMLl

  • Hero Member
  • *****
  • Posts: 2073
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
Turbo Pascal v1 on CCP/M-86, multitasking with LAN and graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.

 

TinyPortal © 2005-2018