Antonio: CLASS TRBtn

Antonio: CLASS TRBtn

Postby byte-one » Thu Dec 25, 2014 1:49 pm

Antonio, in this class the buttons are not declared with style WS_TABSTOP!?

I have changed the calls ::nStyle := ...... to
Code: Select all  Expand view
  ::nStyle    = nOR( WS_CHILD, WS_VISIBLE, if(oWnd:IsKindOf( "TDIALOG" ), WS_TABSTOP, 0 ) )
 

Is this right?
Regards,
Günther
---------------------------------
office@byte-one.com
User avatar
byte-one
 
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria

Re: Antonio: CLASS TRBtn

Postby Antonio Linares » Thu Dec 25, 2014 6:58 pm

Günther,

Yes, it is right and it makes pefect sense

Included for next FWH build, many thanks! :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42078
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Antonio: CLASS TRBtn

Postby Antonio Linares » Thu Dec 25, 2014 7:10 pm

Günther,

I think a better implementation would be:

::nStyle = nOR( WS_CHILD, WS_VISIBLE, If( ! oWnd:IsKindOf( "TRBGROUP" ), WS_TABSTOP, 0 ) )

So the control may be placed any where and only on a RibbonBar would not need the focus.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42078
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 19 guests