ValiantCuriosity wrote: ↑Mon Feb 11, 2019 12:00 am
I've spent the day trying to get the imageSource script to work. Blah... nope!
Hmm, not sure why it wouldn't work, but I can take some guesses !
First, though, I really don't think image source is going to do what (I think) your looking to do. In this example, the image is set to 100 x 100. This is what the text would look like without a LOT more work.
- The high and mighty!
For the above picture, the actual code used in the openCard script was -
Code: Select all
set the imageSource of char 1 of line 2 of field 1 to 1005 // the cute penguin...
Things I had to know in advance were -
Where line 2 was going to be (not as simple as it always sounds)
The id of the image (1005 in this case)
As you can see, though, it isn't exactly 'beauty on the roll' going about it this way.
ValiantCuriosity wrote: ↑Mon Feb 11, 2019 12:00 am
Bogs solution may be what I need. Though, I'm nervous about trying it since he isn't recommending it for real world use.
Aside from learning this language, you will (at some point) learn Bogs is a wise guy who thinks he is funny, in a goofy corny type of way. You'll also find out he talks about himself in the third person a lot
Mostly the target of the previous 'joking around' wasn't you, it was Klaus. While I have nothing but the utmost respect for Klaus and his abilities in many areas, not to mention how he has made my own (and MANY OTHERS) introduction to this language much easier than it might have been otherwise, for some reason he always makes me want to make him chuckle, so I tend to 'poke' him a bit
In this case, the line -
there is no build-in and/or easy way to have "flowing text" around images.
did the trick
To sort of 'make up' for my previous attempt at joking (which obviously failed), I'll show you yet another way to get the magical 'text flowing around an image' using only 1 field and 1 image!
- It is MAGIC!
Now, in the above picture, you can see I used the underscore ( _ ) character to make it really obvious what is going on in the contents pane. The setup was as simple as -
drag a field onto the stack
drag an image onto the field
set the size of the image to whatever you find appropriate
lock the images size so it doesn't do something you don't expect, like take up 50 rows/columns
format your text ( in this case using underscores ) so that it flows around the image.
Now, of the 2 methods I've shown here, my preference tends to lean towards the first method for a couple of reasons.
- When you enter text in the 'contents' pane of the property inspector, you have to keep clicking out of it to see the results, which gets tedious.
- With the 1st method (positioning text fields), you can simply hit the 'Run' (browse tool) and click on each field and enter what you want.
- After the field(s) are filled with your text, simply size them so you don't have any cut off text (usually [g] or [q]
Hope that straightens everything out