Combobox in toolbar

Combobox in toolbar

Postby Pier Luigi » Fri May 25, 2007 8:55 am

I would want to insert a combobox in the toolbar between the buttons.
How I can make?

Thanks in advance.
Pier Luigi
User avatar
Pier Luigi
 
Posts: 58
Joined: Fri Oct 07, 2005 6:30 am
Location: Rome - Italy

Re: Combobox in toolbar

Postby Enrico Maria Giordano » Fri May 25, 2007 10:45 am

Try

Code: Select all  Expand view  RUN
@ row, col COMBOBOX ... OF oBar


EMG
User avatar
Enrico Maria Giordano
 
Posts: 8715
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Combobox in toolbar

Postby Pier Luigi » Fri May 25, 2007 2:43 pm

I write

Code: Select all  Expand view  RUN
...

oToolBar:AddButton( { || MsgInfo() }, nil, nil )   // 1
oToolBar:AddButton( { || MsgInfo() }, nil, nil )   // 2

@ row, col COMBOBOX ... OF oToolBar

oToolBar:AddButton( { || MsgInfo() }, nil, nil )  // 3
oToolBar:AddButton( { || MsgInfo() }, nil, nil )  // 4

...


The combobox is inserted at row/col, but over the buttons 3 and 4.
How I can distance the buttons?

Pier Luigi
User avatar
Pier Luigi
 
Posts: 58
Joined: Fri Oct 07, 2005 6:30 am
Location: Rome - Italy

Re: Combobox in toolbar

Postby Enrico Maria Giordano » Fri May 25, 2007 4:05 pm

You may try using oBtn:Move() method.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8715
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 80 guests