Hi,
I have this code:
REDEFINE BUTTONBAR oBar ID 100 OF oDlg 2007
DEFINE BUTTON OF oBar PROMPT "Gerar" FILE "B_SAVE" ACTION PreBol()
DEFINE BUTTON OF oBar PROMPT "Sair" FILE "B_EXIT" GROUP ACTION oDlg:End()
How I can put a combobox next of last button in this oBar?
I tried @x,y and DEFINE/REDEFINE, not work!
Thanks in advance.
Combobox in buttonbar doubt
- Antonio Linares
- Site Admin
- Posts: 42259
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Combobox in buttonbar doubt
It seems as you are creating a dialog from resources. If so, then create it from:
ACTIVATE DIALOG oDlg ON INIT BuildYourCombobox( oDlg )
then
function BuildYourCombobox( oDlg )
@ ..., ... COMBOBOX ... OF oDlg:oBar
return .T. // to give focus to default first control
ACTIVATE DIALOG oDlg ON INIT BuildYourCombobox( oDlg )
then
function BuildYourCombobox( oDlg )
@ ..., ... COMBOBOX ... OF oDlg:oBar
return .T. // to give focus to default first control
Re: Combobox in buttonbar doubt
Thank You Antonio!Antonio Linares wrote:It seems as you are creating a dialog from resources. If so, then create it from:
ACTIVATE DIALOG oDlg ON INIT BuildYourCombobox( oDlg )
then
function BuildYourCombobox( oDlg )
@ ..., ... COMBOBOX ... OF oDlg:oBar
return .T. // to give focus to default first control