Total Commander Forum Index Total Commander
Forum - Public Discussion and Support
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[REQ] Replace MessageBox'es with usual dialogs
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Total Commander Forum Index -> TC suggestions (English) Printable version
View previous topic :: View next topic  
Author Message
Flint
Power Member
Power Member


Joined: 27 Oct 2003
Posts: 2867
Location: Moscow, Russia

PostPosted: Wed Nov 07, 2007 3:58 pm    Post subject: [REQ] Replace MessageBox'es with usual dialogs Reply with quote

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 Wink ).
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
View user's profile Send private message Send e-mail Visit poster's website
Clo
Moderator
Moderator


Joined: 02 Dec 2003
Posts: 5737
Location: Bordeaux, France

PostPosted: Wed Nov 07, 2007 4:56 pm    Post subject: Support 1,000 times ! Reply with quote

2Flint

Smile 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 Wink )…
• Count me in that herd !

Mr. Green FR
Claude
Clo
_________________
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
petermad
Power Member
Power Member


Joined: 05 Feb 2003
Posts: 5350
Location: Valsted, Denmark

PostPosted: Thu Nov 08, 2007 2:42 am    Post subject: Reply with quote

Count me in too Wink
_________________
#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
View user's profile Send private message Send e-mail Visit poster's website
Alextp
Power Member
Power Member


Joined: 16 Aug 2004
Posts: 2248
Location: Russian Federation

PostPosted: Thu Nov 08, 2007 5:57 am    Post subject: Reply with quote

Support, it will be useful.
_________________
Universal Viewer - Log Viewer - SynWrite
Back to top
View user's profile Send private message Visit poster's website
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 24602
Location: Switzerland

PostPosted: Thu Nov 08, 2007 11:29 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Alextp
Power Member
Power Member


Joined: 16 Aug 2004
Posts: 2248
Location: Russian Federation

PostPosted: Thu Nov 08, 2007 11:44 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Flint
Power Member
Power Member


Joined: 27 Oct 2003
Posts: 2867
Location: Moscow, Russia

PostPosted: Thu Nov 08, 2007 3:04 pm    Post subject: Reply with quote

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. Smile
_________________
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, other stuff!
 
Using TC 8.01 / Win7 x64 SP1
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Clo
Moderator
Moderator


Joined: 02 Dec 2003
Posts: 5737
Location: Bordeaux, France

PostPosted: Thu Nov 08, 2007 7:10 pm    Post subject: An example Reply with quote

2Flint

Smile 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… Razz
- 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.

Mr. Green FR
Claude
Clo
_________________
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Vansumsen
Power Member
Power Member


Joined: 09 Nov 2003
Posts: 761
Location: Belgique

PostPosted: Fri Nov 09, 2007 3:35 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Alextp
Power Member
Power Member


Joined: 16 Aug 2004
Posts: 2248
Location: Russian Federation

PostPosted: Fri Nov 09, 2007 4:58 pm    Post subject: Re: An example Reply with quote

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
View user's profile Send private message Visit poster's website
Sosna
Member
Member


Joined: 24 Oct 2006
Posts: 143

PostPosted: Sat Nov 10, 2007 2:32 am    Post subject: Reply with quote

support ++
_________________
Ave Caesar Imperator,
moritari te salutant!
Back to top
View user's profile Send private message
Motorocker
Member
Member


Joined: 19 Jul 2006
Posts: 105
Location: Perm, Russia

PostPosted: Wed Nov 21, 2007 3:11 am    Post subject: Reply with quote

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

P.S. I can't use Total without KillOK Smile Click, click, click, again click, click... ufff!
_________________
Graphics Converter – images conversion
KillOK – Cease to press OK!
NSCopy – copy unreadable
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Flint
Power Member
Power Member


Joined: 27 Oct 2003
Posts: 2867
Location: Moscow, Russia

PostPosted: Wed Nov 21, 2007 3:39 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
D1P
Senior Member
Senior Member


Joined: 28 Feb 2005
Posts: 222
Location: Samara

PostPosted: Wed Nov 21, 2007 4:33 pm    Post subject: Reply with quote

Support Flint suggestion.
_________________
#102081 Personal license.
ICQ UIN 215168320
Back to top
View user's profile Send private message Visit poster's website
CoolWater
Power Member
Power Member


Joined: 27 Mar 2003
Posts: 574

PostPosted: Thu Nov 22, 2007 6:23 am    Post subject: Reply with quote

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

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

Regards,
CoolWater
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> TC suggestions (English) All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Impressum: This site is maintained by Ghisler Software GmbH

Using phpBB © 2001-2005 phpBB Group