Hi Jeff, Just to show off the value of the code in "the Book", one of the demos uses exactly the code snippet you need. Staz did the original and Andy Pritchard modified it and I am using it in "the Book". myPicture& = GETPICTURE(pictID%) itsHeight% = myPicture&..picFrame.bottom% - myPicture&..picFrame.top% itsWidth% = myPicture&..picFrame.right% - myPicture&..picFrame.left% This gives you the picture's size. HTH, Joe Wilkins "Jeffrey Schwartz @ AT&T" wrote: > I want to display a PICT resource in a window using PICTURE FIELD. I'd > like the PICT centered in my window but I'd like the PICTURE FIELD to > only be as large as necessary (rather than taking up more than necessary > and using the _centerjust modifier). > > Given a handle to a PICT resource, how can I get the dimensions of the > PICT resource so that I can then calculate where I should place my > PICTURE FIELD? > > Thanks in advance for any advice. > > Jeff Schwartz > > -- > To unsubscribe, send ANY message to <futurebasic-unsubscribe@...>