Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2017-10

"Ambiguous unit found" message

14 messages · 10 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Werner Pamler

Trying to update my VirtualTreeViews version 4 to version 5 I ran into the problem that the registration unit seems to be duplicate now. I hope to be able to fix this, but what I want to say is that the message dialog telling me of this issue is not very helpful - the interesting parts are hidden by the "...", no way to expand the dialog:

Since all fixed-size message boxes, sooner or later, will run into this problem: Shouldn't message dialogs be resizable by default?

Werner

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20171031/c50d0731/attachment-0001.html> -------------- next part --------------
A non-text attachment was scrubbed...
Name: cdkoeolppefkaboa.png
Type: image/png
Size: 6008 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20171031/c50d0731/attachment-0001.png>

Reply by email

Alexey
to Werner Pamler
Werner Pamler wrote
the interesting parts are hidden by the "...", no way to expand the dialog:

It is caused by WinAPI truncating path. i suggested to make workaround for WinAPI, but guys declined.

Regards, Alexey

Reply by email

Michael Van Canneyt
to Mattias Gaertner
Mattias Gaertner wrote 10 lines
On Tue, 31 Oct 2017 10:01:38 +0100 Werner Pamler via Lazarus wrote: > Since all fixed-size message boxes, sooner or later, will run into this > problem: Shouldn't message dialogs be resizable by default? +1 Fixed size dialogs came from Windows and some people forced them to other platforms - sad.

Hm.
Somehow the use of the word 'sad' at the end reminds me of the tweets of the Orange Emperor...

Michael.

Reply by email

Alexey
to Michael Van Canneyt
Michael Van Canneyt wrote
Hm. Somehow the use of the word 'sad' at the end reminds me of the tweets of the Orange Emperor...

I saw such tweets from anther man. E.g. "Today we have meeting. They don't understand this and this. Sad!"

Regards, Alexey

Reply by email

Juha Manninen
to Alexey: It is caused by WinAPI truncating path. i suggested to make workaround for WinAPI, but…
Alexey wrote
It is caused by WinAPI truncating path. i suggested to make workaround for WinAPI, but guys declined.

This was the issue:
https://bugs.freepascal.org/view.php?id=31312
I was surprised that Application.MessageBox and ShowMessage behaved the same. Many apps, including the IDE, use ShowMessage. I think its behavior should be improved. Anybody who wants the widgetset behavior can still use Application.MessageBox.

Juha

Reply by email

Bart
to Juha Manninen
Juha Manninen wrote
I was surprised that Application.MessageBox and ShowMessage behaved the same. Many apps, including the IDE, use ShowMessage. I think its behavior should be improved. Anybody who wants the widgetset behavior can still use Application.MessageBox.

In the end, all these call Windows TaskDialog (IIRC). This is the widgetset standard message box function for Windows. And IMO ttherefore it should be the default "message box" for LCL (on Windows, other WS should use the default implementation of their WS).

You can always use the CreateMessageDialog function, this will give you a plain old TForm with your message and buttons.

PS. How does Delphi do with these kind of long messages?

Bart

Reply by email

Ondrej Pokorny
to Werner Pamler: Trying to update my VirtualTreeViews version 4 to version 5 I ran into the problem that…
Werner Pamler wrote 10 lines
Trying to update my VirtualTreeViews version 4 to version 5 I ran into the problem that the registration unit seems to be duplicate now. I hope to be able to fix this, but what I want to say is that the message dialog telling me of this issue is not very helpful - the interesting parts are hidden by the "...", no way to expand the dialog: Since all fixed-size message boxes, sooner or later, will run into this problem: Shouldn't message dialogs be resizable by default?

A secret insider tip: use Ctrl+C to copy the full text into clipboard.

Ondrej

Reply by email

Sven Barth
to Ondrej Pokorny

Am 06.11.2017 13:48 schrieb "Ondrej Pokorny via Lazarus" <

:
Werner Pamler wrote 11 lines
Trying to update my VirtualTreeViews version 4 to version 5 I ran into the problem that the registration unit seems to be duplicate now. I hope to be able to fix this, but what I want to say is that the message dialog telling me of this issue is not very helpful - the interesting parts are hidden by the "...", no way to expand the dialog: Since all fixed-size message boxes, sooner or later, will run into this problem: Shouldn't message dialogs be resizable by default?

A secret insider tip: use Ctrl+C to copy the full text into clipboard.

Does this work on all widgetsets? I know that Windows and Qt support this by themselves, but not whether the others or the LCL itself do.

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20171106/1c78a326/attachment.html>

Reply by email

Ondrej Pokorny
to Sven Barth
Sven Barth wrote 8 lines
Am 06.11.2017 13:48 schrieb "Ondrej Pokorny via Lazarus" < <mailto:>>: A secret insider tip: use Ctrl+C to copy the full text into clipboard. Does this work on all widgetsets? I know that Windows and Qt support this by themselves, but not whether the others or the LCL itself do.

I remember I implemented it for emulated dialogs (if I am not mistaken all but win32 are emulated). So yes, it should work on all widgetsets. If not, fill a bug report.

Ondrej
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20171106/db8bfffb/attachment.html>

Reply by email

zeljko
to Ondrej Pokorny
Ondrej Pokorny wrote 13 lines
On 06.11.2017 17:11, Sven Barth via Lazarus wrote: > Am 06.11.2017 13:48 schrieb "Ondrej Pokorny via Lazarus" > < <mailto:>>: > > A secret insider tip: use Ctrl+C to copy the full text into clipboard. > > > Does this work on all widgetsets? I know that Windows and Qt support > this by themselves, but not whether the others or the LCL itself do. I remember I implemented it for emulated dialogs (if I am not mistaken all but win32 are emulated). So yes, it should work on all widgetsets. If not, fill a bug report.

Qt dialogs supports selection of dialog text and copying (QTextEdit is text control, so you can even use html text in Qt dialogs).

zeljko

Reply by email