Iamdan Posted October 27, 2007 Share Posted October 27, 2007 Basically I have some pictures in a folder, which is in the folder with the rest of the programs files. \PSR(I have all the files for the program here)\Pictures\rock up.bmp " "\paper up.bmp " "\scissors up.bmp " " \rock down.bmp etc I have If paperradiobtn.Checked = True then P_Choice := 1; (here I want to load a picture in the image called playerpic) I have been searching for a while and I can't figure out how to do this. All I found was playerpic.Picture.LoadFromFile(Pictures\paper up.bmp); Which doesn't compile, and I don't know if it's the right method anyway. Link to comment Share on other sites More sharing options...
dsavi Posted October 27, 2007 Share Posted October 27, 2007 Wrong forum, belongs in Tech and Computers. Link to comment Share on other sites More sharing options...
Veiva Posted October 27, 2007 Share Posted October 27, 2007 Are you putting the: Pictures\paper up.bmp part of playerpic.Picture.LoadFromFile(Pictures\paper up.bmp); in quotes? It should be: playerpic.Picture.LoadFromFile('Pictures\paper up.bmp'); { ... or (if the first doesn't work?)... } playerpic.Picture.LoadFromFile("Pictures\paper up.bmp"); I don't remember much Pascal, but I think that'll fix your problem. Link to comment Share on other sites More sharing options...
Iamdan Posted October 27, 2007 Author Share Posted October 27, 2007 playerpic.Picture.LoadFromFile('Pictures\paper up.bmp'); Worked. I'm almost certain that was one of the first things I tried :-k Anyway thanks for your help. :) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now