Page 1 of 1

BUTTONBAR separators

PostPosted: Thu Nov 01, 2018 11:24 pm
by TimStone
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 ?

Re: BUTTONBAR separators

PostPosted: Fri Nov 02, 2018 12:19 am
by Otto
Hello Tim,
I am working on the same problem right now.
Best regards
Otto

Image

Re: BUTTONBAR separators

PostPosted: Fri Nov 02, 2018 1:02 am
by Otto
Hello Tim
do you know if you can draw the TABs instead of diagonally also vertically.
Thank you in advance
Otto

Re: BUTTONBAR separators

PostPosted: Fri Nov 02, 2018 3:33 am
by nageswaragunupudi
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.

Re: BUTTONBAR separators

PostPosted: Fri Nov 02, 2018 4:55 am
by nageswaragunupudi
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.

Re: BUTTONBAR separators

PostPosted: Fri Nov 02, 2018 7:16 am
by TimStone
Exactly, and thank you.

Re: BUTTONBAR separators

PostPosted: Fri Nov 02, 2018 8:05 am
by Otto
Dear Mr Rao,
thank you.
What I mean with vertical is this:

Image

Best regards,
Otto

Re: BUTTONBAR separators

PostPosted: Fri Nov 02, 2018 8:33 am
by nageswaragunupudi
Mr. Otto

Sorry, that is not possible.

Re: BUTTONBAR separators

PostPosted: Fri Nov 02, 2018 10:44 am
by Otto
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

Re: BUTTONBAR separators

PostPosted: Fri Nov 02, 2018 10:45 am
by Silvio.Falconi
Otto,
do you need this ?

Image

Re: BUTTONBAR separators

PostPosted: Fri Nov 02, 2018 1:15 pm
by Otto
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

Re: BUTTONBAR separators

PostPosted: Mon Nov 05, 2018 3:53 am
by nageswaragunupudi
TimStone wrote:Exactly, and thank you.


Implemented in FWH1808
Code: Select all  Expand view
  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

Re: BUTTONBAR separators

PostPosted: Mon Nov 05, 2018 5:18 am
by richard-service
nageswaragunupudi wrote:
TimStone wrote:Exactly, and thank you.


Implemented in FWH1808
Code: Select all  Expand view
  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