FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Ribbon bar set focus on a tab
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
Ribbon bar set focus on a tab
Posted: Thu Apr 15, 2010 10:30 AM

Hello

How can we set the focus on a particular tab of a ribbonbar

I define my ribbon bar this way

DEFINE RIBBONBAR oRBar WINDOW wndrib PROMPT "aaa", "bbb", "ccc" HEIGHT 150 TOPMARGIN 25

ADD GROUP TGR[1] RIBBON oRBar TO OPTION 1 PROMPT "...." width 110
ADD GROUP ....

@ 5,2 ADD BUTTON TBtn[1] GROUP TGR[1] BITMAP .............;
SIZE 50, 50 PROMPT "F2 &Texte" first round PIXEL ;
ACTION (.............)

other buttons also

When i click on a button in tab 3 "ccc" i want to set back the focus to the first tab
I tried TGR[1]:SETFOCUS() DOES NOT WORK
TBTN[01]:SETFOCUS() DOES NOT WORK ALSO

What is the appropriate syntax to have the focus set on a particular tab, in my case first one

Thanks for the help

Richard

http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
Re: Ribbon bar set focus on a tab
Posted: Thu Apr 15, 2010 10:40 AM

Solved

oRbar:setoption(1)

http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013

Continue the discussion