[REQ] Replace MessageBox'es with usual dialogs

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

User avatar
Flint
Power Member
Power Member
Posts: 3501
Joined: 2003-10-27, 09:25 UTC
Location: Belgrade, Serbia
Contact:

[REQ] Replace MessageBox'es with usual dialogs

Post by *Flint »

I have an idea: why should TC use standard Windows MessageBox if there are so many problems with it? Why not create usual dialog resources and use them instead? There's not so much work, but it would fix the following problems:
1. Non-working Enter and Tab in main window when a message box is shown in Lister or CbC.
2. Non-translatable OK/Cancel/etc buttons (and at least some of the TC translators would be very happy to see such an improvement ;) ).
3. Non-working Esc key in message boxes of Yes/No type.
4. It will be easy to add new controls into these dialogs (like e.g. a checkbox "Do not show this dialog again").
5. The font in these message boxes will become TC-controllable instead of Win-controllable.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 11.03 / Win10 x64
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

Support 1,000 times !

Post by *Clo »

2Flint

:) Hello K. !

• Indeed I support strongly that suggestion and agree all points, since I expressed the same n… times,
specially in the beta-test forum, like you know certainly !
…(and at least some of the TC translators would be very happy to see such an improvement ;) )…
• Count me in that herd !

:mrgreen: FR
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
User avatar
petermad
Power Member
Power Member
Posts: 16027
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Count me in too ;-)
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

Support, it will be useful.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50475
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

TC uses the standard MessageBox wherever possible because it uses the standard icons of the underlying system, so the user sees what he is used to see. There is no problem with MessageBoxes as long as you don't keep them open too long and try to do other things while they are open.
Author of Total Commander
https://www.ghisler.com
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

2ghisler(Author)
No problem to draw standard icons in your own programs.
See how I do it in TC Plugins Manager:

Code: Select all

  TFormInstallLog = class(TForm)
  ...
    ImageInfo: TImage;
    ImageErr: TImage;
  ..

procedure TFormInstallLog.FormShow(Sender: TObject);
begin
  ImageInfo.Picture.Icon.Handle:= LoadIcon(0, IDI_ASTERISK);
  ImageErr.Picture.Icon.Handle:= LoadIcon(0, IDI_EXCLAMATION);
end;
User avatar
Flint
Power Member
Power Member
Posts: 3501
Joined: 2003-10-27, 09:25 UTC
Location: Belgrade, Serbia
Contact:

Post by *Flint »

ghisler(Author) wrote:There is no problem with MessageBoxes as long as you don't keep them open too long and try to do other things while they are open.
To the contrary, see pp.2-5 from the first post - they are always problems, no matter how long the message box is open. :)
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 11.03 / Win10 x64
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

An example

Post by *Clo »

2Flint

:) Hello K. !

• Naturally… With a simple "Warning", see an old EXAMPLE about the fonts… and the awful [OK] not translatable.
- The blue word "Erreur" shows the real expected painting, the lower image shows how it might look for the whole.
- Dated May, 5th. 2006 from a thread I started in the beta-forum (quickly buried).

ghisler(Author) wrote
TC uses the standard MessageBox wherever possible because…
… that saved a few bytes in the old versions, in the goal : 
"Fit in the Holy Diskette", it's just a remnant of that era, IMHO… :P
- There are a few types of such messages, so I assume it's not a big deal to add them in the resources.
- A similar one is only a ten-line script in C++ (including a tick-box "Don't display anymore…").
Delphi is more verbose, but not a lot for that.

:mrgreen: FR
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
User avatar
Vansumsen
Power Member
Power Member
Posts: 761
Joined: 2003-11-09, 08:16 UTC
Location: Belgique
Contact:

Post by *Vansumsen »

Hello !

- Also, I would prefer that TC uses its own messages, so I support the Flint's proposal !

Friendly

Paul
Ouistiti, #11943

L'important n'est pas de convaincre, mais de donner à réfléchir.
The important thing is not to convince, but to incite to think.

1,77245385090552...
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Re: An example

Post by *Alextp »

Clo wrote:- A similar one is only a ten-line script in C++
Delphi is more verbose, but not a lot for that
Yes, Delphi resource would be larger, but not too large. Maybe 1-2K,
not larger imho...
User avatar
Sosna
Member
Member
Posts: 143
Joined: 2006-10-24, 10:52 UTC

Post by *Sosna »

support ++
Ave Caesar Imperator,
moritari te salutant!
User avatar
Motorocker
Member
Member
Posts: 105
Joined: 2006-07-19, 10:52 UTC
Location: Perm, Russia
Contact:

Post by *Motorocker »

Support.
Maybe Total can show simple MessageBox[OK] dialogs in tray like SM2BT or KillOK?

P.S. I can't use Total without KillOK :) Click, click, click, again click, click... ufff!
Graphics Converter – images conversion
KillOK – Cease to press OK!
NSCopy – copy unreadable
User avatar
Flint
Power Member
Power Member
Posts: 3501
Joined: 2003-10-27, 09:25 UTC
Location: Belgrade, Serbia
Contact:

Post by *Flint »

Motorocker wrote:Maybe Total can show simple MessageBox[OK] dialogs in tray like SM2BT or KillOK?
Oh, no! Anywhere, but not in tray!!!
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 11.03 / Win10 x64
User avatar
D1P
Senior Member
Senior Member
Posts: 233
Joined: 2005-02-28, 18:29 UTC
Location: Moscow
Contact:

Post by *D1P »

Support Flint suggestion.
CoolWater
Power Member
Power Member
Posts: 744
Joined: 2003-03-27, 16:33 UTC

Post by *CoolWater »

Isn't Alextp's suggestion a good alternative??

http://ghisler.ch/board/viewtopic.php?t=17593

Regards,
CoolWater
Post Reply