FLAT BUTTON does NOT executes its action by Pressing Alt Key

FLAT BUTTON does NOT executes its action by Pressing Alt Key

Postby shri_fwh » Mon Feb 18, 2019 9:56 am

Dear All ,

I am using FLATBTN its working only with Mouse Click and Enter Key. But Normal button work also with Hot Key as we define "&" in the button Lable e.g. "&Delete" . When user press ALT+D its execute the code block but its NOT happening with FLATBTN. How we can achieve the same with FLATBTN as well ?



Thanks
Shridhar
Thanks
Shridhar
FWH 19.12, BCC 7 32 bit, MariaDB
shri_fwh
 
Posts: 301
Joined: Mon Dec 07, 2009 2:49 pm

Re: FLAT BUTTON does NOT executes its action by Pressing Alt Key

Postby shri_fwh » Sun Feb 24, 2019 3:16 pm

Dear All ,

Flat Button and Normal Button behavior is NOT same. Please check/test below the code
1) Flat Button executes the Code Block/Action only when user PRESS ENTER Key
2) Normal Button execute the Code Block/Action when user PRESS ENTER Key , SPACE BAR and Alt+Macro(&) Char e.g. Alt+B

Can FLATBTN work as same as BUTTON ( Normal ) ? Please guide on this.

Code: Select all  Expand view

PROCEDURE TestBtns
local aoBTN := Array(5)
local oDlg

   DEFINE DIALOG oDlg FROM 0 , 0 TO 500 ,1050 PIXEL TRUEPIXEL

  @ 100, 100 FLATBTN aoBTN[1] PROMPT "&F-Quit" SIZE 100, 40 PIXEL  OF oDlg ;
      ACTION oDlg:End()


  @ 200, 100 BUTTON aoBTN[2] PROMPT "&B-Quit" SIZE 100 , 40 PIXEL OF oDlg ;
      ACTION oDlg:End()

  ACTIVATE DIALOG oDlg CENTERED

return nil

 


Thanks
shridhar
Thanks
Shridhar
FWH 19.12, BCC 7 32 bit, MariaDB
shri_fwh
 
Posts: 301
Joined: Mon Dec 07, 2009 2:49 pm

Re: FLAT BUTTON does NOT executes its action by Pressing Alt Key

Postby Otto » Sun Feb 24, 2019 8:17 pm

Hello Shridhar,
switch to
BTNBMP PROMPT "test" SIZE 80, 32 PIXEL OF oDlg FLAT COLOR CLR_WHITE,METRO_CYAN;

FLATBTN is not well supported and you get the same look with BTNBMP FLAT.
Best regards
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6255
Joined: Fri Oct 07, 2005 7:07 pm

Re: FLAT BUTTON does NOT executes its action by Pressing Alt Key

Postby shri_fwh » Mon Feb 25, 2019 5:29 am

Hi Otto ,

Thanks a lot ...! Its working as per expected.

Thanks
Shridhar
Thanks
Shridhar
FWH 19.12, BCC 7 32 bit, MariaDB
shri_fwh
 
Posts: 301
Joined: Mon Dec 07, 2009 2:49 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 55 guests