bump!
I found your solution. The key is in the .INI file of the foreground example.
Here it is:
[Info]
Name = Foreground Example
[Background]
Image = background.png
LeftWidth = 2
TopHeight = 2
RightWidth = 2
BottomHeight = 1
[Foreground]
Image = foreground.png
[ForegroundTop]
Image = foregroundtop.png
[ForegroundLeft]
Image = foregroundleft.png
[ForegroundRight]
Image = foregroundright.png
[Separator]
Image = separator.png
TopHeight = 0
BottomHeight = 0
LeftWidth = 0
RightWidth = 0
So, just make the foreground normally and code it in as such. Obviously, u have to have the foreground wrap around itself, or it won't work. Hope that helps!