FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour ButtonBar / Toolbar + Combobox ?
Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM
ButtonBar / Toolbar + Combobox ?
Posted: Sun Apr 09, 2023 06:04 AM
hi,

is it possible to add Combobox into ButtonBar / Toolbar under Fivewin :-)

if yes how :-)
greeting,

Jimmy
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: ButtonBar / Toolbar + Combobox ?
Posted: Sun Apr 09, 2023 06:23 AM

Buttonbar is FWH's own control and we can, for sure, have other controls like combobox within buttonbar.

Regards



G. N. Rao.

Hyderabad, India
Posts: 400
Joined: Tue Oct 16, 2007 05:51 PM
Re: ButtonBar / Toolbar + Combobox ?
Posted: Sun Apr 09, 2023 07:07 PM

Mr. Rao

Is it possible to also add a GET control to BUTTONBAR ?

Can you give an example please.

Saludos,
Regards,

Albeiro Valencia
www.avcsistemas.com
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: ButtonBar / Toolbar + Combobox ?
Posted: Tue Apr 11, 2023 05:18 PM
albeiroval wrote:Mr. Rao

Is it possible to also add a GET control to BUTTONBAR ?
Can you give an example please.
Sample:
Code (fw): Select all Collapse
#include "fivewin.ch"

function Main()

   local oWnd, oBar, oGet, oCbx
   local nVar  := 900
   local cVar  := "Three"

   SetGetColorFocus()

   DEFINE WINDOW oWnd
   DEFINE BUTTONBAR oBar OF oWnd SIZE 70,40 2010
   DEFINE BUTTON OF oBar PROMPT "One" CENTER
   DEFINE BUTTON OF oBar PROMPT "Two" CENTER

   @ 10,160 GET oGet VAR nVar PICTURE "999" SIZE 50,20 PIXEL RIGHT OF oBar ;
      VALID ( MsgInfo( nVar ), .t. )
   @ 10,240 COMBOBOX oCbx VAR cVar ITEMS { "One","Two","Three" } ;
      SIZE 90,200 PIXEL OF oBar

   DEFINE BUTTON OF oBar PROMPT "Exit"  CENTER GROUP BTNRIGHT ;
      ACTION oWnd:End()

   oWnd:nWidth := 700

   ACTIVATE WINDOW oWnd CENTERED

   ? nVar, cVar

return nil
Regards



G. N. Rao.

Hyderabad, India
Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM
Re: ButtonBar / Toolbar + Combobox ?
Posted: Tue Apr 11, 2023 07:32 PM

GREAT

thx for Sample

greeting,

Jimmy
Posts: 400
Joined: Tue Oct 16, 2007 05:51 PM
Re: ButtonBar / Toolbar + Combobox ?
Posted: Wed Apr 12, 2023 02:01 PM

Fine, thanks

Saludos,
Regards,

Albeiro Valencia
www.avcsistemas.com
Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM
Re: ButtonBar / Toolbar + Combobox ?
Posted: Wed Apr 12, 2023 07:45 PM
hi,

i have a Problem when place "only" 1 x GET into ButtonBar

as it can not "change" to other Control it does not "lostFocus" -> no VALID -> no GOTO :(

any Idea for a Workaround :?:
greeting,

Jimmy
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: ButtonBar / Toolbar + Combobox ?
Posted: Thu Apr 13, 2023 01:26 AM

Example?

Regards.

João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: ButtonBar / Toolbar + Combobox ?
Posted: Thu Apr 13, 2023 02:01 AM
Jimmy wrote:hi,

i have a Problem when place "only" 1 x GET into ButtonBar

as it can not "change" to other Control it does not "lostFocus" -> no VALID -> no GOTO :(

any Idea for a Workaround :?:
Yes.
We need to have atleast 2 controls.
Regards



G. N. Rao.

Hyderabad, India
Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM
Re: ButtonBar / Toolbar + Combobox ?
Posted: Thu Apr 13, 2023 06:00 AM
hi,
nageswaragunupudi wrote:We need to have atleast 2 controls.
thx for Answer

i will include a 2nd Control
greeting,

Jimmy
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: ButtonBar / Toolbar + Combobox ?
Posted: Thu Apr 13, 2023 10:44 AM

In fact, it is the same situation when we have only one Get control on a dialog/window.

Regards



G. N. Rao.

Hyderabad, India

Continue the discussion