Ribbon bar set focus on a tab

Ribbon bar set focus on a tab

Postby Richard Chidiak » 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
User avatar
Richard Chidiak
 
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France

Re: Ribbon bar set focus on a tab

Postby Richard Chidiak » Thu Apr 15, 2010 10:40 am

Solved

oRbar:setoption(1)
http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
User avatar
Richard Chidiak
 
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 90 guests