How to change a line style of one line of a field

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
anttoo
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 6
Joined: Tue Oct 13, 2009 4:38 pm
Location: Finland

How to change a line style of one line of a field

Post by anttoo » Mon Jan 03, 2011 10:55 am

I have a list field, which I want to change a style of selected line different as other lines. Is this possible or am I optimist :? .

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2718
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: How to change a line style of one line of a field

Post by jmburnod » Mon Jan 03, 2011 11:41 am

Hi Anttoo,

Try this. Only for one line with a list fld mutiLine = false

Code: Select all

on mouseup
   set the textstyle of char 1 to -1 of me to plain
   set the textstyle of line(the hilitedlines of me) of me to bold
end mouseup

Hope this help

Best regards

Jean-Marc
https://alternatic.ch

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”