rejetto forum

Close bug

Guest · 15 · 5747

0 Members and 1 Guest are viewing this topic.

MasterP

  • Guest
i use minimize and close to tray, which do work if i press the 2 buttons.
but if i use Ctrl-F4 or the close-button on my mouse the programm is closed.
this is the only programm on my pc, which really closes the programm if i use Ctrl-F4 or the close-button...

Can you please look at it and change it?

thx
« Last Edit: November 16, 2008, 12:35:36 PM by rejetto »


Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 2059
    • View Profile
The use of ALT-F4 (or still CLOSED by a right-click) is sent to the administrator of programs ( TaskMananger) and is not intercepted by hfs, contrary to a click on the cross of the mainform, so that hfs seem not to contain it correctly even if the option to minimize in start-exit is checked.

Thus this is not absolutely a bug, but a normal use of Microsoft Windows, and regrettably for you, there is nothing to change in the programming of hfs for landing that.

The question had its answer ;)


MasterP

  • Guest
everytime i accidentally close hfs, because i press my leftest mouse button
some other programms i use, can do that... my list:
(µtorrent, anydvd, styler, speedfan, ati tray tools, sandboxie, taskbar shuffle, antivir, and realvnc)
it seems, that you can change it, somehow (i have no prgramming skills)

« Last Edit: November 16, 2008, 12:36:06 PM by rejetto »


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
i use minimize and close to tray, which do work if i press the 2 buttons.

what buttons?

Quote
but if i use Ctrl-F4 or the close-button on my mouse the programm is closed.
this is the only programm on my pc, which really closes the programm if i use Ctrl-F4 or the close-button...

yes, alt+f4 (you meant ALT, didn't you?) actually quits the program. if this is not the standard practice i will try to change it. anyone can confirm?

everytime i accidentally close hfs, because i press my leftest mouse button

isn't your "leftest" just the left mouse button?
because the left mouse button works to me (it sends to tray).
« Last Edit: November 15, 2008, 03:23:50 PM by rejetto »


Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 2059
    • View Profile
I looked for a solution, but I did not find. >:(

He can be interressant to spread the 'minimize to tray...'  to the use of ALT-F4 ???


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
maybe he has an extra mouse button with just sends the ALT+F4, that would explain it all...

anyway, if other programs do it, it can be done, although i don't know how hard it is having not even tried that


MasterP

  • Guest
i use minimize and close to tray, which do work if i press the 2 buttons. --> on every window in the upper right corner...

yes, i mean ALT+F4, sorry (you can look at my said programms)

i have 2 Thumb-buttons (thanks google for the word ;)) --> one is for closing the active window form everywhere on the screen (logitech-driver)

Do you understand what i mean, its a little problem for me, to write understandable :)
« Last Edit: November 16, 2008, 12:36:00 PM by rejetto »


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
yes, that's exactly what i supposed in my last post ;)
i'll put your request in my to-do list.
can't grant for it anyway.

anyway, it's not a bug since the feature is named "Minimize to tray clicking the close button [ X ]"
that clearly doesn't ALT+F4  ;)
« Last Edit: November 15, 2008, 03:42:49 PM by rejetto »


Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 2059
    • View Profile
I managed so-so to find the solution:

main.pas

Quote
.....
IMPLEMENTATION
...
// global variables
var
  allowedExit:boolean; 

......

procedure TmainFrm.Exit1Click(Sender: TObject);
begin
allowedExit:=true;
close()
end;

......

procedure TmainFrm.FormCloseQuery(Sender: TObject; var CanClose: Boolean);
begin
if not allowedExit and trayInsteadOfQuitChk.checked then
  begin
  canclose:=false;
  minimizetotray();
  exit;
  end;

queryingClose:=TRUE;
...

......
INITIALIZATION
allowedExit:=false;    //This line by security measure only
......

Here is for you, Rejetto, a little of work less. In the buid 215? ;)

It will be in the next French versions, there is not to doubt it :D :D
« Last Edit: November 15, 2008, 04:11:22 PM by mars »


MasterP

  • Guest
a big thanks for you 2 !!!
i'm on now 2.2d, so i'll update to the next beta

big big thanks :) :) :)

(but i wonder, that i'm the only person, who uses such mouse-functions)
« Last Edit: November 16, 2008, 12:35:55 PM by rejetto »


MasterP

  • Guest
Quote
anyway, it's not a bug since the feature is named "Minimize to tray clicking the close button [ X ]"
that clearly doesn't ALT+F4
sorry, for its the same thing
« Last Edit: November 16, 2008, 12:35:48 PM by rejetto »


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile

MasterP

  • Guest
can you please delete my email-adress from my mails? these are shown directly, i hate spam
« Last Edit: November 16, 2008, 12:34:49 PM by rejetto »


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
ok, but i had to edit all your messages.
next time use a fake address.
(or use gmail ;) )


Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 2059
    • View Profile
Best is that he joins the forum and that he masks email in his configuration.


Two or three a little bit binding pages of pub or then a passage inescapable by one charter of manners for guests, would oblige them to join for an access without pub when they want to make posts. That would dissuade some of spammer on the forum

I do not speak here about MasterP, but about the other already met cases.

Here is it is everything, I think that that deserved to be evoked at least once. :)
« Last Edit: November 16, 2008, 02:02:24 PM by mars »