Antonio: CLASS TRBtn

Post Reply
User avatar
byte-one
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria
Contact:

Antonio: CLASS TRBtn

Post by byte-one »

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

I have changed the calls ::nStyle := ...... to

Code: Select all | Expand

  ::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
Antonio Linares
Site Admin
Posts: 42832
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 156 times
Been thanked: 120 times
Contact:

Re: Antonio: CLASS TRBtn

Post by Antonio Linares »

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: 42832
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 156 times
Been thanked: 120 times
Contact:

Re: Antonio: CLASS TRBtn

Post by Antonio Linares »

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
Post Reply