Jump to content


Photo

Frame border width


Best Answer crowmag , 19 September 2017 - 03:28 PM

No, not really.

Several elements in the style file come into play for the titlebar height. Reducing them all to "1" is the best your going to do:

window.title.focus.borderWidth:        1
window.title.unfocus.borderWidth:      1

window.label.focus.borderWidth:        1
window.label.unfocus.borderWidth:      1

! space around and between buttons and labels
window.title.marginWidth:              1

! space around text in labels
window.label.marginWidth:              1

! space around bitmaps in buttons
window.button.marginWidth:             1

Other factors are the font, font height and font weight:

window.font:                           ???
window.fontHeight:                     ???
window.fontWeight:                     normal
Go to the full post


  • Please log in to reply
6 replies to this topic

#1 opal

opal

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 04 August 2017 - 02:38 PM

How can I add to the frame border width without it also appearing beneath the titlebar?

Spoiler

Or is there a way to add a border around the entire window?

 

EDIT: Figured out how to add a border~



#2 crowmag

crowmag

    bbDinosaur

  • VIP Member
  • 80 posts

Posted 16 September 2017 - 12:48 PM

I usually set a wildcard border width for all borders with:

*.borderWidth:                         1

However, individual style elements can have different border widths. For example:

window.title.focus.borderWidth:        2
window.title.unfocus.borderWidth:      1

window.label.focus.borderWidth:        2
window.label.unfocus.borderWidth:      1

window.handle.focus.borderWidth:       2
window.handle.unfocus.borderWidth:     1

window.grip.focus.borderWidth:         2
window.grip.unfocus.borderWidth:       1

! these are the left and right borders of the window frame
window.frame.borderWidth:              1

Hope this helps.
 
  • Paz likes this

#3 opal

opal

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 18 September 2017 - 06:29 PM

 

I usually set a wildcard border width for all borders with:
 

*.borderWidth:                         1

How exactly do I add this? I am still quite new to blackbox.

 

The way I ended up adding a border all around a window was to decrease the title height down to 2 and increase the frame width to match that.

Anyway to decrease the titlebar height to 1px?



#4 crowmag

crowmag

    bbDinosaur

  • VIP Member
  • 80 posts

Posted 19 September 2017 - 03:28 PM   Best Answer

No, not really.

Several elements in the style file come into play for the titlebar height. Reducing them all to "1" is the best your going to do:

window.title.focus.borderWidth:        1
window.title.unfocus.borderWidth:      1

window.label.focus.borderWidth:        1
window.label.unfocus.borderWidth:      1

! space around and between buttons and labels
window.title.marginWidth:              1

! space around text in labels
window.label.marginWidth:              1

! space around bitmaps in buttons
window.button.marginWidth:             1

Other factors are the font, font height and font weight:

window.font:                           ???
window.fontHeight:                     ???
window.fontWeight:                     normal

  • Paz and opal like this

#5 opal

opal

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 19 September 2017 - 04:37 PM

Thanks for the help. I'll play around with those elements. :)



#6 crowmag

crowmag

    bbDinosaur

  • VIP Member
  • 80 posts

Posted 19 September 2017 - 04:59 PM

One other thing you can do is to make/choose a smaller bitmap glyph used by the bbLeanSkin plugin for the buttons. I am not certain as to the smallest size you can use but I believe it is "9x9" pixels. It could be 7x7 I don't know... you'll just have to experiment.

I've attached a sample 9x9 bitmap that you can use/edit. Drop it in ..\plugins\bbLeanSkin and then edit the following line in bbLeanSkin.rc found in the plugin's directory:
 

# -----------------------------------------------
# - Titlebar Button Glyphs
# - May be a bitmap file or "default"

bbleanskin.titlebar.glyphs: buttons_9x9.bmp

Attached Files


  • Paz likes this

#7 opal

opal

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 19 September 2017 - 06:28 PM


Other factors are the font, font height and font weight:

window.font:                           ???
window.fontHeight:                     ???
window.fontWeight:                     normal

The font I had chosen was the reason I could not decrease its height down to 1px. Changed it and now the titlebar decreases down to a 1px line, finally.

Thanks for all the help!


  • Paz likes this




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users