Modify skin notification

POP Peeper: Tech support, suggestions, discussion, etc.
Post Reply
Aceuk007
Posts: 7
Joined: Fri Jul 12, 2024 12:59 pm

Modify skin notification

Post by Aceuk007 »

Hi
I have modifed a skin to fit in with my desktop. I need some help to get new message number to show in the right position.
In the first pic you see that they fit perfectly in the circle(Green Arrow).
In the second pic when you have one digit it does not sit in the middle of the circle as shown in pic 3. How can I get single digits to sit in the middle.
Pic 1
Image

Pic 2
Image

Pic 3
Image

Here is the code

Code: Select all

[INFO]
Skin_Name   = Simple
Skin_Info   = Simple
Skin_Author = Alpha F. Laurent
Skin_Mail   = 
Skin_Web    = http://www.poppeeper.com/
Skin_Dim    = 60 x 60

[CONSTANTS]
  _TYPE_Window  = 0
  _TYPE_Button  = 1
  _TYPE_Editbox = 2
  _TYPE_Static  = 3

  _IDOK = 1
  _IDCANCEL = 2

  _CMD_OPENPP     = 10
  _CMD_CLIENT     = 11
  _CMD_DISMISS    = 12
  _CMD_RELOADSKIN = 25

[VARIABLES]
%NumNewMsg% = number of new messages

[MAIN]
  Bitmap = bcg2.bmp
  BmpTrans = 128 0 127

  Slider_Enabled = 1
  Slider_Speed   = 3
  Slider_Timer   = 25
  Slider_Delay   = 3

# - Define some global defaults
  FontName = Arial
  FontColor = 180 150 200
  FontSize = 12

[sNewMessageNumDisplay]
  Type = _TYPE_Static
  Pos = 10 15
  Size = 150 200
  Label = %NumNewMsg%
  FontName = Arial
  FontColor = 104 104 104
  FontSize = 12
  FontBold = 1


  
Hope someone can help
Thanks
User avatar
Jeff
Admin / Developer
Posts: 9434
Joined: Sat Sep 08, 2001 9:46 pm

Re: Modify skin notification

Post by Jeff »

In the section for [sNewMessageNumDisplay], you need to include:

Code: Select all

Flags = 3
This will center-justify the text

You will also need to adjust your current "size" values so that the bounding box will use the correct position when centered. I'm guessing with the current value of 150/200 that the text for %NumNewMsg% would completely disappear.
Aceuk007
Posts: 7
Joined: Fri Jul 12, 2024 12:59 pm

Re: Modify skin notification

Post by Aceuk007 »

Jeff - Thanks for that, great level of support.
Post Reply