Page 1 of 1

Combobox in toolbar

Posted: Fri May 25, 2007 8:55 am
by Pier Luigi
I would want to insert a combobox in the toolbar between the buttons.
How I can make?

Thanks in advance.
Pier Luigi

Re: Combobox in toolbar

Posted: Fri May 25, 2007 10:45 am
by Enrico Maria Giordano
Try

Code: Select all

@ row, col COMBOBOX ... OF oBar
EMG

Re: Combobox in toolbar

Posted: Fri May 25, 2007 2:43 pm
by Pier Luigi
I write

Code: Select all

...

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

Re: Combobox in toolbar

Posted: Fri May 25, 2007 4:05 pm
by Enrico Maria Giordano
You may try using oBtn:Move() method.

EMG