Panel Image

BlitzPlus Forums/BlitzPlus Programming/Panel Image

gellyware(Posted 2004) [#1]
Hi, I cant seem to get this to work. How do I request an image from the user and use it as a panel image? Here is what I have done:

panelImage = RequestFile ("Select a background image", "bmp, jpg, png")

SetPanelImage windowPanel,panelImage



gellyware(Posted 2004) [#2]
problem solved sorry it should have been this:

panelImage$ = RequestFile ("Select a background image", "bmp, jpg, png")

SetPanelImage windowPanel,panelImage


seems you must declare the "panelImage" as a string such as panelImage$


gellyware(Posted 2004) [#3]
Is there a way to force a path to open up when using requestFile? such as c:\images\


VIP3R(Posted 2004) [#4]
Yep, but only in Blitz+ V1.39 (latest)...

RequestFile$(title$,exts$[,save][,directory$])

...set the last parameter 'directory$' to the initial path you want the requester to open up.


gellyware(Posted 2004) [#5]
ok thank you :)