FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Combobox in buttonbar doubt
Posts: 253
Joined: Wed May 25, 2016 01:04 AM
Combobox in buttonbar doubt
Posted: Thu Oct 10, 2024 07:26 PM

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.

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Combobox in buttonbar doubt
Posted: Fri Oct 11, 2024 04:53 AM
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
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 253
Joined: Wed May 25, 2016 01:04 AM
Re: Combobox in buttonbar doubt
Posted: Fri Oct 11, 2024 04:45 PM
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
Thank You Antonio!

Continue the discussion