Background Image In Ui

I successfully setup a gui with a background image using a formlayout with controls on top.
But when I try to setup a gui with frames, and the same code that worked before is now nested in one of the frames, everything works, but no background image.
The pseudo code is like this:

create window
create column layout
create frameLayout
create fowmlayout
create buttons - image is declared last
set parent
set parent
edit form layout and position buttons - image is positioned first (I've tried making it last, but no difference)
create second frame layout
create grid layout
create buttons
set parent
set parent
set parent
edit grid layout.

So is there anything wrong with the order of this?
I assumed that because it worked alone, it would work nested.
Any comments or suggestions would be greatly appreciated!

Well its not designed to work, so its a sort of thing that as a hack it eemingly works out somewhat but in reality it bugs out quite phenomenally.

So is there a way to use multiple frames and have a background picture with controls on top?

If you split up the picture.

But as i said the fact that it works is more of a coincidence than anything you should rely on.

Thanks Joojaa,

When you say split the picture up, does that mean to cover both frames?
I only want a bg picture in the top frame, and the second frame just for slider controls, etc, but with no background.

That's too bad that it's not a consistent thing you can depend on.
So I guess it would be a waste of time to try to find a "hack" or workaround to get it working?

thanks so much for your input! You might have saved me a lot of grief!

Here's a link to Advanced Skeleton Pro: ClickME!

In this package, there is a script that will let you create a graphic gui for your characters. You may be able to locate and dissect it. See if it helps....

Thanks so much!
I'll take a look at it and see what I can do!

Cheers

One more question:

which directory should the image be in, and how do you type in the location to it?
The only one that works for me so far is if I put it in my root folder, C:\ and then address it like this:
string $image_location = "\image.jpg";

I've tried other directories, ie icons, scripts etc. and all sorts of locations but can't get it to find the image.

Any suggestions?

Thanks in advance

in any of the images folders may has. But yes you can also use full pathnames just turn backlashes into division marks