Deactivation of main or context menu

Moderator: Rathinagiri

User avatar
Roberto Lopez
HMG Founder
Posts: 4004
Joined: Wed Jul 30, 2008 6:43 pm

Re: Deactivation of main or context menu

Post by Roberto Lopez »

Czarny_Pijar wrote: Imagine this situation: The seller counted the whole shopping cart, now he wants to print the bill, therefore he has moved to the menu. Suddenly the customer wants one more chewing gum for the child ... Do you start with the whole bill from the beginning?
I never define <Esc> key to close a window without a conformation from the user part. That is a (IMHO) terrible practice.
Czarny_Pijar wrote: PS
Hurray! The post number 10.000 is mine! :lol:
Ouch!... I've was waiting for it :)
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
Roberto Lopez
HMG Founder
Posts: 4004
Joined: Wed Jul 30, 2008 6:43 pm

Re: Deactivation of main or context menu

Post by Roberto Lopez »

Roberto Lopez wrote:
Czarny_Pijar wrote: PS
Hurray! The post number 10.000 is mine! :lol:
Ouch!... I've was waiting for it :)
And... today was the most successful day (user count online) from the forum start!
Most users ever online was 38 on Thu Apr 29, 2010 9:27 pm
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
Roberto Lopez
HMG Founder
Posts: 4004
Joined: Wed Jul 30, 2008 6:43 pm

Re: Deactivation of main or context menu

Post by Roberto Lopez »

Roberto Lopez wrote: Grigory,

Not all MessageBox styles process Esc key.

According MSDN Esc key should be functional only when the MessageBox window has a <cancel> button, but this is not true.

The bottom line is that MessageBoxes processing Esc key will make SC_CLOSE (WM_SYSCOMMAND) message useless to close a window.

Have you any clue about this?

I'll still researching...
I've just fixed this too.

The problem comes from an old fix (SplitBox Child EditBox) in the WM_CLOSE message processing.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
Roberto Lopez
HMG Founder
Posts: 4004
Joined: Wed Jul 30, 2008 6:43 pm

Re: Deactivation of main or context menu

Post by Roberto Lopez »

Roberto Lopez wrote: The problem comes from an old fix (SplitBox Child EditBox) in the WM_CLOSE message processing.
The cause for the original problem is the following:
Whenever you press Escape in a multiline edit control it sends a WM_CLOSE message to its parent. Both the regular edit control and the rich edit control have this problem. This is by Microsoft design.
Anyway, I'll must work it a little more to assure that two fixes be able to coexists...
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
Alex Gustow
Posts: 290
Joined: Thu Dec 04, 2008 1:05 pm
Location: Yekaterinburg, Russia
Contact:

Re: Deactivation of main or context menu

Post by Alex Gustow »

10 000 posts!!! Congratulations, HMG-brothers! We did it! :o :lol:

And the winner iiiiiisss... Czarny_Pijar !!! :D
User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Deactivation of main or context menu

Post by Rathinagiri »

Alex Gustow wrote:10 000 posts!!! Congratulations, HMG-brothers! We did it! :o :lol:

And the winner iiiiiisss... Czarny_Pijar !!! :D
YES!
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
mol
Posts: 3718
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: Deactivation of main or context menu

Post by mol »

Hi guys!
This is my first post from a week.
I want to thank all of you working about problem posted by me...
I'm glad to see how our forum grows!
Post Reply