Previous Thread
Next Thread
Print Thread
TABX: ClientArea #36760 25 Oct 23 06:25 PM
Joined: Sep 2002
Posts: 5,450
F
Frank Online Content OP
Member
OP Online Content
Member
F
Joined: Sep 2002
Posts: 5,450
Good day Cap -

Welcome back and hope you are recovered from your jetlag! Glad the conf went well looked like a good time - hope to make it next time.

I am experimenting with the ClientArea paremeter of TABX. I am unclear exactly how to get it to work or how it works within the scheme of the entire tab. I am aware that TABSTRIP exists and i tried to compil it however it is squealing about an unmapped variable that is indeed mapped so i didnt get it running but am looking at the code.

So question - what happens to the controls within the tabx it is only a strip? Well ill tell you, they go away, presumably because the panel no longer exists. I was hoping it would "remember" that the panel is there but invisible. Which brings up question 2:

panelBorder=0/1: What is the difference b/w ClientArea and this? Now i am guessing you're going to say that panelborder KEEPS the original panel size parameter and just suppresses the border of which it does appear to do. So should I be using this instead?

Lastly: for the life of me i cannot figure out how to get either forcedSize or fixedTabs to work. What value am I supposed to use? millicols? nothing seems to corrlate. What i would like is fixed tabs of x size. What should i be using?

TIA

Re: TABX: ClientArea [Re: Frank] #36761 25 Oct 23 07:11 PM
Joined: Jun 2001
Posts: 11,645
J
Jack McGregor Online Content
Member
Online Content
Member
J
Joined: Jun 2001
Posts: 11,645
Woah Sailor! That's a lot to take in! Between the fact that I haven't looked at that code in quite awhile (TABSTRIP dates to 2012!), not being completely back up to speed, and my natural tendency towards incrementalism, I'm going to bite off one piece at a time, starting with an updated TABSTRIP.BP (which now compiles).

Re: TABX: ClientArea [Re: Frank] #36762 25 Oct 23 07:25 PM
Joined: Jun 2001
Posts: 11,645
J
Jack McGregor Online Content
Member
Online Content
Member
J
Joined: Jun 2001
Posts: 11,645
Next bite: I managed to get fixedTabs to work, but it wants to spread out all the tabs across the available space. If you want to see that in action, make this change to the TABSTRIP program:
Code
            case -405                       ! next style button
                status = 1
                do while curstyle < 200 and status # 0
                    curstyle += 1
                    ! tabdefs$ = "@style="+str(curstyle)+"~~" 
                    tabdefs$ = "@style="+str(curstyle)+"~fixedTabs=1~~"   ! fixed width (or height) tabs

Re: TABX: ClientArea [Re: Frank] #36763 25 Oct 23 07:52 PM
Joined: Jun 2001
Posts: 11,645
J
Jack McGregor Online Content
Member
Online Content
Member
J
Joined: Jun 2001
Posts: 11,645
Another bite: I cannot get the forcedSize feature to work. It appears to do something, but mostly causes the layout to blow up. The units are supposed to be millicolumns (for horizontal tabs) or millirows (for vertical tabs), or pixels (if MBF2_PIXSIZE set). But none of them seem to work as advertised. I'll see if I can get more info on that but in the meantime I advise not wasting your time.

Re: TABX: ClientArea [Re: Frank] #36764 25 Oct 23 08:04 PM
Joined: Jun 2001
Posts: 11,645
J
Jack McGregor Online Content
Member
Online Content
Member
J
Joined: Jun 2001
Posts: 11,645
The same appears to apply to the panelBorder option. The control's reference manual describes it as: "do/don't display clientarea border - select styles only" but doesn't say which styles or give any visual examples. I'll see if I can probe for more details.

Re: TABX: ClientArea [Re: Frank] #36765 25 Oct 23 08:10 PM
Joined: Sep 2002
Posts: 5,450
F
Frank Online Content OP
Member
OP Online Content
Member
F
Joined: Sep 2002
Posts: 5,450
Thanks Cap! Sorry to send you down the rabbit hole! FWIW panelborder option does appear to work on style=66 (buttons only) which coincidentally is the one i am playing with. I was just curious b/w the this and the clientarea option.

Re: TABX: ClientArea [Re: Frank] #36766 25 Oct 23 08:12 PM
Joined: Jun 2001
Posts: 11,645
J
Jack McGregor Online Content
Member
Online Content
Member
J
Joined: Jun 2001
Posts: 11,645
And finally, back to your original self-answered question: If you set ClientArea=0, then there is no client area, and thus, no controls within it. It sounds like you are trying to toggle the client area off and on? If so, I think that would have to be something managed by the app. I guess theoretically it would be possible for the control to hide the panel, but that's not something I could easily override.

Re: TABX: ClientArea [Re: Frank] #36767 25 Oct 23 09:16 PM
Joined: Sep 2002
Posts: 5,450
F
Frank Online Content OP
Member
OP Online Content
Member
F
Joined: Sep 2002
Posts: 5,450
No not really, i an actually trying to replace the panel with just a row of buttons! I understand why the client area = 0 would actually supress the panel, so yes, thanks that makes sense.

HOWEVER -

I am playing with STYLE=60 Which indeed is just a row of buttons. After pulling out whatever hair i have left i have also discovered that for some reason I cannot change the button colors or the panel color. To prove this i ran TSTTABX and lo and behold when you get to style=66 your colors disappear. Can you tell me why this would be the case? I thought i was almost there with this style but if i cannot control the color scheme i am back to the drawing board... tx

Re: TABX: ClientArea [Re: Frank] #36768 25 Oct 23 10:00 PM
Joined: Jun 2001
Posts: 11,645
J
Jack McGregor Online Content
Member
Online Content
Member
J
Joined: Jun 2001
Posts: 11,645
I'm not sure I'm seeing that. Here's TSTTABX with style 60, showing different colors for panel 1 and panel 2...

[Linked Image]
[Linked Image]

Here's a link to the latest TSTTABX

Re: TABX: ClientArea [Re: Frank] #36769 26 Oct 23 12:29 AM
Joined: Sep 2002
Posts: 5,450
F
Frank Online Content OP
Member
OP Online Content
Member
F
Joined: Sep 2002
Posts: 5,450
Shit im sorry style=66

Re: TABX: ClientArea [Re: Frank] #36770 26 Oct 23 12:56 AM
Joined: Jun 2001
Posts: 11,645
J
Jack McGregor Online Content
Member
Online Content
Member
J
Joined: Jun 2001
Posts: 11,645
How about this then:

[Linked Image]

I think the trick with Styles 66-74 is that they want to use the Windows Theme, which overrides your colors. But you can disable that by setting themes=0 ...
Code
    tabdefs$ += "themes=0~"                     ! turn off themes


I also got a clarification on the ForcedSize option. The documentation was not complete on that and it requires a minor A-Shell update to make it work, but it doesn't work the way you probably want. For horizontal tabs like in the example above, it sets the height, not the width. For vertical tabs it sets the width. (So if you wanted to have a vertical stack of tab buttons, you could control the width of them.) But there doesn't seem to be any option for setting the width of horizontal tabs other than evenly spaced across the entire width, or spaced according to their text.

Re: TABX: ClientArea [Re: Frank] #36771 26 Oct 23 04:04 PM
Joined: Sep 2002
Posts: 5,450
F
Frank Online Content OP
Member
OP Online Content
Member
F
Joined: Sep 2002
Posts: 5,450
Morning Cap,

BOOM! That was it thanks for sorting that out! I can now control the colors of style = 66. (not to be confused with Order 66 though that might be my inhouse project name! laugh )

Ok for sizing - so all i would like to do is set a fixed width of each button so it looks more uniform.. so this is not possible? (fixedTabs=1 looks like it spreads out the tabs evenly across the screen so no joy there) If not possible not the end of the world.

I can confirm that ForcedSize works with millirows.



Last edited by Frank; 26 Oct 23 04:05 PM.
Re: TABX: ClientArea [Re: Frank] #36772 26 Oct 23 07:06 PM
Joined: Jun 2001
Posts: 11,645
J
Jack McGregor Online Content
Member
Online Content
Member
J
Joined: Jun 2001
Posts: 11,645
That appears to be the case, i.e. the only two options are to spread the buttons out uniformly across the entire width of the panel, or let them size naturally (but unequally, depending on the text). I've put in an inquiry to the control developer, but can't guarantee any rapid or particular response.

Re: TABX: ClientArea [Re: Frank] #36773 26 Oct 23 07:18 PM
Joined: Sep 2002
Posts: 5,450
F
Frank Online Content OP
Member
OP Online Content
Member
F
Joined: Sep 2002
Posts: 5,450
Appreciate the response thanks!

Re: TABX: ClientArea [Re: Frank] #36774 27 Oct 23 05:40 PM
Joined: Jun 2001
Posts: 11,645
J
Jack McGregor Online Content
Member
Online Content
Member
J
Joined: Jun 2001
Posts: 11,645
Here's a possible back-end way to get fixed width tabs of a desired size. If you set fixedTabs=1 it spreads them across the entire width of the panel. But you can override the number of tabs that it bases its width on by setting rows=#. So for example, here's the default style 66 with 3 tabs ...
[Linked Image]

And here is is with:
Code
    tabdefs$ += "fixedTabs=1~"          ! fixed width tabs
    tabdefs$ += "rowTabs=7~"            ! set tab width at overall / 7
    tabdefs$ += "ForcedSize=1500~"      ! set height to 1.5 rows

[Linked Image]

Note that the ForcedSize option may require an A-Shell update; if so, just remove that for now until I can clean up the latest batch of patches.
Also note that this may only be convenient for a single row of tabs, i.e. where the actual number is less than the rowTabs value that you specify.

Re: TABX: ClientArea [Re: Frank] #36775 30 Oct 23 04:27 AM
Joined: Jun 2001
Posts: 11,645
J
Jack McGregor Online Content
Member
Online Content
Member
J
Joined: Jun 2001
Posts: 11,645
FWIW, here's the latest A-Shell/Windows in case it affects the ForcedSize calculation...

ash-7.0.1751.1-w32-upd.zip
ash70notes.txt

Re: TABX: ClientArea [Re: Frank] #36776 30 Oct 23 03:36 PM
Joined: Sep 2002
Posts: 5,450
F
Frank Online Content OP
Member
OP Online Content
Member
F
Joined: Sep 2002
Posts: 5,450
Hey that is a great hack! Not sure how you cooked that up but it works thanks!

PS: I just had to adjust the rowTabs parameter to get the buttons a bit "less wide" I went with 10 in my case.

Re: TABX: ClientArea [Re: Frank] #36811 14 Nov 23 09:43 PM
Joined: Sep 2002
Posts: 5,450
F
Frank Online Content OP
Member
OP Online Content
Member
F
Joined: Sep 2002
Posts: 5,450
Good day - I am hijacking my own thread here because i think it applies...

I am trying to change the font on the panel and get more of a BOLD look but I cannot seem to and I am not sure it is supported. There are a few font attributes in the docs but none are BOLD although there is a BOLD=0/1 but i believe it applies to just the "selected" tab.

Current setup is this:

! Preset Main Program Global Attributes
MAIN'GLOBAL'ATTR="@style=66~"
MAIN'GLOBAL'ATTR+="themes=0~"
MAIN'GLOBAL'ATTR+="Font=Arial~"
MAIN'GLOBAL'ATTR+="FontScale=90~"
MAIN'GLOBAL'ATTR+="bold=1~"
MAIN'GLOBAL'ATTR+="panelBorder=0~"

I am trying to achieve the first style and can only get the second.

Attached Files cap1.JPGcap2.JPG
Re: TABX: ClientArea [Re: Frank] #36812 14 Nov 23 09:48 PM
Joined: Jun 2001
Posts: 11,645
J
Jack McGregor Online Content
Member
Online Content
Member
J
Joined: Jun 2001
Posts: 11,645
There’s only one level of bold, but I think a font change may do it. I’m not surr what the top font is, but I don’t think it’s Arial.

Re: TABX: ClientArea [Re: Frank] #36813 14 Nov 23 09:51 PM
Joined: Sep 2002
Posts: 5,450
F
Frank Online Content OP
Member
OP Online Content
Member
F
Joined: Sep 2002
Posts: 5,450
Hmm ok suggestion?

Re: TABX: ClientArea [Re: Frank] #36814 14 Nov 23 10:38 PM
Joined: Jun 2001
Posts: 11,645
J
Jack McGregor Online Content
Member
Online Content
Member
J
Joined: Jun 2001
Posts: 11,645
I suggest going into the standard font selection dialog (from any app, including A-Shell < Settings > Font) and just looking at what seems to be more bold/compact. Arial is at the opposite extreme, tall and slender. Some stockier/bolder choices might be: Aptos, Arial Rounded MT, Franklin Gothic, Roboto, Verdana.

Obviously you want to pick something that isn't too exotic so that it is likely to exist on most target systems, but if it doesn't exist, the font mapper will revert to something else (probably Arial).

Re: TABX: ClientArea [Re: Frank] #36815 15 Nov 23 03:25 PM
Joined: Sep 2002
Posts: 5,450
F
Frank Online Content OP
Member
OP Online Content
Member
F
Joined: Sep 2002
Posts: 5,450
Ok thanks. Verdana seems to be a competent replacement.


Moderated by  Jack McGregor, Ty Griffin 

Powered by UBB.threads™ PHP Forum Software 7.7.3