| View previous topic :: View next topic |
| Author |
Message |
Flint Power Member


Joined: 27 Oct 2003 Posts: 2867 Location: Moscow, Russia
|
Posted: Wed Nov 07, 2007 3:58 pm Post subject: [REQ] Replace MessageBox'es with usual dialogs |
|
|
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, other stuff!
Using TC 8.01 / Win7 x64 SP1 |
|
| Back to top |
|
 |
Clo Moderator


Joined: 02 Dec 2003 Posts: 5737 Location: Bordeaux, France
|
Posted: Wed Nov 07, 2007 4:56 pm Post subject: Support 1,000 times ! |
|
|
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 !
| Quote: | …(and at least some of the TC translators would be very happy to see such an improvement )… | • Count me in that herd !
FR
Claude
Clo _________________ #31505 Traducteur Français de T•C French translator Aide en Français Tutoriels Français English Tutorials |
|
| Back to top |
|
 |
petermad Power Member


Joined: 05 Feb 2003 Posts: 5350 Location: Valsted, Denmark
|
Posted: Thu Nov 08, 2007 2:42 am Post subject: |
|
|
Count me in too  _________________ #524
Danish Total Commander Translator
Windows XP Home 32bit SP3 & Windows 7 Home Premium 64bit SP1 and Windows 8. TC 8.01 32 + 64bit
Get Extended Total Commander Menus |
|
| Back to top |
|
 |
Alextp Power Member


Joined: 16 Aug 2004 Posts: 2248 Location: Russian Federation
|
|
| Back to top |
|
 |
ghisler(Author) Site Admin


Joined: 04 Feb 2003 Posts: 24602 Location: Switzerland
|
Posted: Thu Nov 08, 2007 11:29 am Post subject: |
|
|
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
http://www.ghisler.com |
|
| Back to top |
|
 |
Alextp Power Member


Joined: 16 Aug 2004 Posts: 2248 Location: Russian Federation
|
Posted: Thu Nov 08, 2007 11:44 am Post subject: |
|
|
2ghisler(Author)
No problem to draw standard icons in your own programs.
See how I do it in TC Plugins Manager:
| Code: | 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; |
_________________ Universal Viewer - Log Viewer - SynWrite |
|
| Back to top |
|
 |
Flint Power Member


Joined: 27 Oct 2003 Posts: 2867 Location: Moscow, Russia
|
Posted: Thu Nov 08, 2007 3:04 pm Post subject: |
|
|
| 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, other stuff!
Using TC 8.01 / Win7 x64 SP1 |
|
| Back to top |
|
 |
Clo Moderator


Joined: 02 Dec 2003 Posts: 5737 Location: Bordeaux, France
|
Posted: Thu Nov 08, 2007 7:10 pm Post subject: An example |
|
|
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 | Quote: | | 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…
- 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.
FR
Claude
Clo _________________ #31505 Traducteur Français de T•C French translator Aide en Français Tutoriels Français English Tutorials |
|
| Back to top |
|
 |
Vansumsen Power Member


Joined: 09 Nov 2003 Posts: 761 Location: Belgique
|
Posted: Fri Nov 09, 2007 3:35 pm Post subject: |
|
|
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... • |
|
| Back to top |
|
 |
Alextp Power Member


Joined: 16 Aug 2004 Posts: 2248 Location: Russian Federation
|
Posted: Fri Nov 09, 2007 4:58 pm Post subject: Re: An example |
|
|
| 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... _________________ Universal Viewer - Log Viewer - SynWrite |
|
| Back to top |
|
 |
Sosna Member


Joined: 24 Oct 2006 Posts: 143
|
Posted: Sat Nov 10, 2007 2:32 am Post subject: |
|
|
support ++ _________________ Ave Caesar Imperator,
moritari te salutant! |
|
| Back to top |
|
 |
Motorocker Member


Joined: 19 Jul 2006 Posts: 105 Location: Perm, Russia
|
Posted: Wed Nov 21, 2007 3:11 am Post subject: |
|
|
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 |
|
| Back to top |
|
 |
Flint Power Member


Joined: 27 Oct 2003 Posts: 2867 Location: Moscow, Russia
|
Posted: Wed Nov 21, 2007 3:39 am Post subject: |
|
|
| 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, other stuff!
Using TC 8.01 / Win7 x64 SP1 |
|
| Back to top |
|
 |
D1P Senior Member


Joined: 28 Feb 2005 Posts: 222 Location: Samara
|
Posted: Wed Nov 21, 2007 4:33 pm Post subject: |
|
|
Support Flint suggestion. _________________ #102081 Personal license.
ICQ UIN 215168320 |
|
| Back to top |
|
 |
CoolWater Power Member

Joined: 27 Mar 2003 Posts: 574
|
|
| Back to top |
|
 |
|