HTML representation of 'less than or equal to' - not cross-platform?
Bob Sneidar
bobsneidar at iotecdigital.com
Fri Oct 31 18:26:30 EDT 2014
Okay, so to follow through with this, I first took a screen shot of a bullet character, opened it in Preview, erased the white space (making it transparent) and saving it as bullet.png.
Next I imported the bullet as an image, and set the source of the imported image to the file “bullet.png” (so I could edit it and see the changes in Livecode without reimporting).
Then I put several lines into a scrolling field where each line starts with a space and a tab. I set the first tabstop to enough pixels to fit the bullet mark. I had to play around a bit but I got it close.
Finally I have this in the script of the scrolling field:
on mouseUp
put the hilitedLine of me into theHilitedLine
set the itemDelimiter to tab
put the vscroll of me into theVScroll
if the imageSource of char 1 of line theHilitedLine of me is "bullet.png" then
set the imageSource of char 1 of line theHilitedLine of me to empty
else
set the imageSource of char 1 of line theHilitedLine of me to "bullet.png"
end if
set the itemDelimiter to comma
set the vScroll of me to theVScroll
end mouseUp
Presto! Voila! Good looking bulleted list that will look the same in Windows and Mac, or any OS!
Bob S
> On Oct 31, 2014, at 14:01 , Bob Sneidar <bobsneidar at iotecdigital.com> wrote:
>
> Cool thanks!
>
>> On Oct 31, 2014, at 13:47 , Peter Haworth <pete at lcsql.com> wrote:
>>
>> You can - the imageSource
>>
>> Pete
>> lcSQL Software <http://www.lcsql.com>
>> Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and
>> SQLiteAdmin <http://www.lcsql.com/sqliteadmin.html>
>>
>> On Fri, Oct 31, 2014 at 12:46 PM, Bob Sneidar <bobsneidar at iotecdigital.com>
>> wrote:
>>
>>> Which brings up a point that seems to be the 800 pound gorilla in the
>>> room. Bulleted lists, Special characters, seems like there ought to be a
>>> way to set the Icon of a character to something. Problem solved. Buuuuut…
>>> it only works with stacks, apps and buttons.
>>>
>>> Bob S
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list