ALT key (pressed alone) on dialogs

User avatar
E. Bartzokas
Posts: 114
Joined: Tue Feb 14, 2006 8:13 am
Location: Corinth, Greece

ALT key (pressed alone) on dialogs

Post by E. Bartzokas »

Hi all,
This issue I have also posted on xHB NG, without any reply (yet)

I have noticed a strange behaviour of the ALT key if pressed alone on a dialog.
It is somehow related with the system menu (Move/Close) but then it is not pop up the system menu and still have to press SPACE key after the ALT key.
The strangest behaviour is that it makes all the TSBUTTONS in the dialog go bananas! They lose their colors and their bitmaps, and have to move the cursor over them one by one to make then reshow in normal color and redisplay their bitmaps.

I do not find this behaviour normal, and did not expect that ALT key alone would have any kind of effect, except for windows, where the menus are activated.

Any advise would be appreciated.

Kind regards to all
Evans
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: ALT key (pressed alone) on dialogs

Post by Enrico Maria Giordano »

This is the normal ALT key behavior (check with other apps).

I don't use TSButtons and never see that strange effect on the FWH standard BtnBmp. That's why I think that it might be a bug of TSButtons.

EMG
User avatar
E. Bartzokas
Posts: 114
Joined: Tue Feb 14, 2006 8:13 am
Location: Corinth, Greece

Re: ALT key (pressed alone) on dialogs

Post by E. Bartzokas »

EnricoMaria wrote:This is the normal ALT key behavior (check with other apps).

I don't use TSButtons and never see that strange effect on the FWH standard BtnBmp. That's why I think that it might be a bug of TSButtons.

EMG
It also happens to CLASS TDBtnBmp (dbutton)
Both SBUTTONs and DBUTTONs, are discolored in the dialogs
and lose their bitmaps...

Perhaps MANUEL MERCADO and SANTIAGO PEREZ MARQUEZ can help,
if the read this ...

Thanks anyway... I thought it only activated the system menu on windows, but you're right (again of course), it activates them on dialogs too.
The problem is the discoloring... and loss of the bitmaps...
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Evans,

Its fixed. Its a bug on the build that you are using. I email you the new files.
regards, saludos

Antonio Linares
www.fivetechsoft.com
Mike Buckler
Posts: 67
Joined: Thu Jan 05, 2006 10:35 pm
Location: Canada
Contact:

Please send to me also

Post by Mike Buckler »

Please send to me also.
Thanks Mike.
dpaterso
Posts: 142
Joined: Tue Jan 24, 2006 9:45 am
Location: South Africa
Contact:

Post by dpaterso »

Hello,

Listen - I'm getting a bit worried here!

There seems to be a great many message threads being started recently (since the February 2006 Build) which detail 'minor' bugs and 'fixes' for them.

I assume that all of these 'fixes' will be contained in the next release of FWH :?:

I mean - I hope that I am not making changes to the FWH source (to incorporate these 'fixes' only to find that they have dissapeared after the installation of latest version of FWH :twisted:

Regards,

Dale.
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Dale,

> I assume that all of these 'fixes' will be contained in the next release of FWH

Yes :)
regards, saludos

Antonio Linares
www.fivetechsoft.com
Frank Demont
Posts: 142
Joined: Sun Oct 09, 2005 10:59 am

Antonio

Post by Frank Demont »

I am sorry to pick in , but have you read the thread regarding xbrowse , bpasteof and using vscroll barr to append ?

I am convinced that it is a bug , very easy to see with testxbrowse as described.

Frank
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Frank,

We will review it asap,
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Richard Chidiak
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France
Contact:

Post by Richard Chidiak »

Antonio Linares wrote:Evans,

Its fixed. Its a bug on the build that you are using. I email you the new files.
Antonio

I have the same bug with Tsbutton and ALT key and i use xhb commercial. What has to be changed ?

Richard
User avatar
RuFer
Posts: 140
Joined: Sat Oct 08, 2005 5:16 pm
Location: Uruguay

Post by RuFer »

Evans:

In tsButton you must use de tsbutton.ch before Fivewin.ch and
in the resource declaration the button must be OwnerDraw.
The tsbutton.lib must be before the FWH´s libs.

Please taste and tell me if everything go ok.
Sorry for my Indian English.

Best regards

Ruben Fernandez.
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Richard,

Basically this is the missing call:

Code: Select all

METHOD HandleEvent( nMsg, nWParam, nLParam ) CLASS TButtonBmp

   local nResult

   do case
      case nMsg == WM_UPDATEUISTATE  // Buttons were erased when pressing ALT
           nResult = Super:HandleEvent( nMsg, nWParam, nLParam )       
           ::Refresh()
           return nResult
   endcase

return Super:HandleEvent( nMsg, nWParam, nLParam )           
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Richard Chidiak
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France
Contact:

Post by Richard Chidiak »

Antonio Linares wrote:Richard,

Basically this is the missing call:

Code: Select all

METHOD HandleEvent( nMsg, nWParam, nLParam ) CLASS TButtonBmp

   local nResult

   do case
      case nMsg == WM_UPDATEUISTATE  // Buttons were erased when pressing ALT
           nResult = Super:HandleEvent( nMsg, nWParam, nLParam )       
           ::Refresh()
           return nResult
   endcase

return Super:HandleEvent( nMsg, nWParam, nLParam )           
Antonio,

Thank you

It works OK now

If anyone needs to change the tsbutton class, do not forget to add the following

#define WM_UPDATEUISTATE 0x0128

Richard
User avatar
E. Bartzokas
Posts: 114
Joined: Tue Feb 14, 2006 8:13 am
Location: Corinth, Greece

Post by E. Bartzokas »

Antonio Linares wrote:Evans,

Its fixed. Its a bug on the build that you are using. I email you the new files.
Antonio
Thanks for the fix provided.
It works fine now.
Saludos,
Evans
Post Reply