Scrolling List Field

Jim Ault JimAultWins at yahoo.com
Tue Aug 15 15:12:56 EDT 2006


On 8/15/06 10:59 AM, "John Baxter" <mandozine at gmail.com> wrote:
> What I'm trying to do is mix font styles in the mainstack field when I do
> the mouseUp from each Palette. I experimented with different code, but can't
> get the inserted characters to display in the proper font.

Be careful of the mixed fonts, scrolling position, and formatted height.
search the archives for a discussion about this about 6-8 weeks ago

http://www.mail-archive.com/use-revolution@lists.runrev.com/

Jim Ault
Las Vegas



> Thanks for the help. You guys are great. I've got most everything working
> except for the font issue. I have a mainstack with a "TabField". I use this
> code:
> 
> on openStack
>     put empty into field "TabField"
> end openStack
> 
> I have two palettes, each one uses a different font.
> 
> Palette1 - buttons use this code:
> 
> on mouseUp
>     put "A" after field "TabField" of stack "UkeTab"
> end mouseUp
> 
> Palette2 - scrolling list and insert button. Button uses this code:
> 
> on mouseUp
>     global chord
>     put value(the selectedLine of fld "ChordList") into chord
>     placechord
> end mouseUp
> 
> on placechord
>     global chord
>     if chord is "A" then
>     put "A" after field "TabField" of stack "UkeTab"
> end placechord
> 
> 
> What I'm trying to do is mix font styles in the mainstack field when I do
> the mouseUp from each Palette. I experimented with different code, but can't
> get the inserted characters to display in the proper font.
> 
> [set text font of "A" to "ukefont"]  -- when I click a button on Palette1
> [set textfont of "A" to "ukechord"]  -- which I click Insert button on
> Palette2
> 
> Thanks for any help or advise you have.





More information about the use-livecode mailing list