BUTTONBAR separators

BUTTONBAR separators

Postby TimStone » Thu Nov 01, 2018 11:24 pm

I have a dialog with a button bar built in. ( using tBar control in the resource file ).

I DEFINE BUTTONBAR ...no problem
I DEFINE BUTTON ... no problem

Add in GROUP LABEL "xyz" to some buttons ... works fine.

My last two buttons are a help button and an exit button. BTNRIGHT and they go to where they are placed.

So here is the issue. On the last GROUP LABEL, I would like to put a separator since there is a lot of space to the right on the label line. It would allow better centering of the label on the item(s) in that group.

Also, I use no label on the last two buttons, with BTNRIGHT, but a separator appears on the label line between them. I would love to not have that separator.

Any thoughts ?
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2946
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: BUTTONBAR separators

Postby Otto » Fri Nov 02, 2018 12:19 am

Hello Tim,
I am working on the same problem right now.
Best regards
Otto

Image
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6346
Joined: Fri Oct 07, 2005 7:07 pm

Re: BUTTONBAR separators

Postby Otto » Fri Nov 02, 2018 1:02 am

Hello Tim
do you know if you can draw the TABs instead of diagonally also vertically.
Thank you in advance
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6346
Joined: Fri Oct 07, 2005 7:07 pm

Re: BUTTONBAR separators

Postby nageswaragunupudi » Fri Nov 02, 2018 3:33 am

Otto wrote:Hello Tim
do you know if you can draw the TABs instead of diagonally also vertically.
Thank you in advance
Otto

Please try setting oTabs:nOrientation to 1,2,3,4 for top, bottom, left, right.
Text will be automatically rotated based on orientation.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10662
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: BUTTONBAR separators

Postby nageswaragunupudi » Fri Nov 02, 2018 4:55 am

Mr. Tim and Mr. Otto

This is the present behavior.
Image
If I understood you correctly, you would like to have a separator after button "five" of group "SECOND" and removal of short vertical separator between "Help" and "Exit" buttons.

We will be attending to the issues raised by you asap.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10662
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: BUTTONBAR separators

Postby TimStone » Fri Nov 02, 2018 7:16 am

Exactly, and thank you.
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2946
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: BUTTONBAR separators

Postby Otto » Fri Nov 02, 2018 8:05 am

Dear Mr Rao,
thank you.
What I mean with vertical is this:

Image

Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6346
Joined: Fri Oct 07, 2005 7:07 pm

Re: BUTTONBAR separators

Postby nageswaragunupudi » Fri Nov 02, 2018 8:33 am

Mr. Otto

Sorry, that is not possible.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10662
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: BUTTONBAR separators

Postby Otto » Fri Nov 02, 2018 10:44 am

Dear Mr Rao

What is the advantage of TAB Class over a line with added buttons.
Do you think I can get problems doing this.

Thank you in advance
Otto


Image
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6346
Joined: Fri Oct 07, 2005 7:07 pm

Re: BUTTONBAR separators

Postby Silvio.Falconi » Fri Nov 02, 2018 10:45 am

Otto,
do you need this ?

Image
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7076
Joined: Thu Oct 18, 2012 7:17 pm

Re: BUTTONBAR separators

Postby Otto » Fri Nov 02, 2018 1:15 pm

Hello Silvio,

yes this is what I would like to have.
But maybe I can use buttons to achieve the goal.
Thank you and best regards
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6346
Joined: Fri Oct 07, 2005 7:07 pm

Re: BUTTONBAR separators

Postby nageswaragunupudi » Mon Nov 05, 2018 3:53 am

TimStone wrote:Exactly, and thank you.


Implemented in FWH1808
Code: Select all  Expand view  RUN
  DEFINE BUTTONBAR oBar OF oWnd SIZE 48,64 2007  HEIGHT 90
   DEFINE BUTTON OF oBar PROMPT "One"  GROUP LABEL "FIRST" COLORS CLR_WHITE,CLR_GREEN
   DEFINE BUTTON OF oBar PROMPT "Two"
   DEFINE BUTTON OF oBar PROMPT "Three"
   DEFINE BUTTON OF oBar PROMPT "Four" GROUP LABEL "SECOND" COLORS CLR_WHITE,CLR_BLUE
   DEFINE BUTTON OF oBar PROMPT "Five"

   DEFINE BUTTON OF oBar PROMPT "Info" BTNRIGHT GROUP LABEL "INFO" COLORS CLR_WHITE,CLR_BLUE
   DEFINE BUTTON OF oBar PROMPT "Help" BTNRIGHT GROUP LABEL "LAST" COLORS CLR_WHITE,CLR_GREEN
   DEFINE BUTTON OF oBar PROMPT "Exit" BTNRIGHT
 


Image
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10662
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: BUTTONBAR separators

Postby richard-service » Mon Nov 05, 2018 5:18 am

nageswaragunupudi wrote:
TimStone wrote:Exactly, and thank you.


Implemented in FWH1808
Code: Select all  Expand view  RUN
  DEFINE BUTTONBAR oBar OF oWnd SIZE 48,64 2007  HEIGHT 90
   DEFINE BUTTON OF oBar PROMPT "One"  GROUP LABEL "FIRST" COLORS CLR_WHITE,CLR_GREEN
   DEFINE BUTTON OF oBar PROMPT "Two"
   DEFINE BUTTON OF oBar PROMPT "Three"
   DEFINE BUTTON OF oBar PROMPT "Four" GROUP LABEL "SECOND" COLORS CLR_WHITE,CLR_BLUE
   DEFINE BUTTON OF oBar PROMPT "Five"

   DEFINE BUTTON OF oBar PROMPT "Info" BTNRIGHT GROUP LABEL "INFO" COLORS CLR_WHITE,CLR_BLUE
   DEFINE BUTTON OF oBar PROMPT "Help" BTNRIGHT GROUP LABEL "LAST" COLORS CLR_WHITE,CLR_GREEN
   DEFINE BUTTON OF oBar PROMPT "Exit" BTNRIGHT
 


Image


Hi Mr.Rao
How about modify FWH ButtonBar source code? Look it

I mean Button add MENU function. Button only show arrow not FWH arrow+line when mouse not touch button

Image
Best Regards,

Richard

Harbour 3.2.0dev (r2402101027) => Borland C++ v7.7 32bit
MySQL v8.0 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
User avatar
richard-service
 
Posts: 804
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 50 guests