Combobox in buttonbar doubt

Combobox in buttonbar doubt

Postby wartiaga » Thu Oct 10, 2024 7: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.
wartiaga
 
Posts: 212
Joined: Wed May 25, 2016 1:04 am

Re: Combobox in buttonbar doubt

Postby Antonio Linares » Fri Oct 11, 2024 4: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Combobox in buttonbar doubt

Postby wartiaga » Fri Oct 11, 2024 4: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!
wartiaga
 
Posts: 212
Joined: Wed May 25, 2016 1:04 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 54 guests