• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Increase the size of an AutoComplete feature

Contributor ,
Feb 28, 2014 Feb 28, 2014

Copy link to clipboard

Copied

I've found this tutorial (really well done) in the internet : http://www.xtydigitaldesign.ca/autoComplete.php

I've started to use it and change it a little. But I can't find a way to increase the size font of the text of the list. (when you type "P" you get a list with four fruits that start with the letter P.) I've found how to increase the font size of everything, EXCEPT the font siez of the list..

Do you know how can I increase the font size of this list ?

Thank you very much !

I think it is in this part of the code, but I'm not sure :

    acList = new List();

    acList.x = 0;

    acList.y = acTxt.y + acTxt.height;

    acList.setSize(_txtWidth, listHeight);

    acList.visible = false;

    acList.addEventListener(Event.CHANGE, listHandler);

    addChild(acList);

TOPICS
ActionScript

Views

884

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Guru , Mar 03, 2014 Mar 03, 2014

Votes

Translate

Translate
Guru ,
Feb 28, 2014 Feb 28, 2014

Copy link to clipboard

Copied

In the class of the tutorial you linked change these Lines

titleFormat.size = 12;

titleFormat.font = "verdana";

to whatever you prefer

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Feb 28, 2014 Feb 28, 2014

Copy link to clipboard

Copied

I've tried. It's changing the font of the description, not the list...printScreen.png

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Feb 28, 2014 Feb 28, 2014

Copy link to clipboard

Copied

Try adding this code:

import fl.managers.StyleManager;

import fl.controls.List;

// Set a global textFormat for every List Component

var tf:TextFormat= new TextFormat();

tf.size = 16;

StyleManager.setComponentStyle(List, "textFormat", tf);

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Feb 28, 2014 Feb 28, 2014

Copy link to clipboard

Copied

Perfect ! Thanks !

But now I've got this problem

test2.png

Do you know how I can increase the size of each cells ?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Feb 28, 2014 Feb 28, 2014

Copy link to clipboard

Copied

I've tried

acList.setSize(845, 900);

But it raises the length not the height....

Don't know why

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Mar 01, 2014 Mar 01, 2014

Copy link to clipboard

Copied

No one ? I'm really really stuck here.... If someone could help it'll mean a lot.

Thx !

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Mar 02, 2014 Mar 02, 2014

Copy link to clipboard

Copied

try

acList.rowHeight = 16;

and then for spacing between listItems:

tf.leading = 4;

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Mar 02, 2014 Mar 02, 2014

Copy link to clipboard

Copied

Great ! Thank you.

Last thing (sorry, for that), it seems that the size of the scroll bar can't be increase directly in its Movieclip.. Do you know a way to increase it ? Thank you again !

bug.png

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Mar 03, 2014 Mar 03, 2014

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Mar 03, 2014 Mar 03, 2014

Copy link to clipboard

Copied

LATEST

Perfect ! Thanks !!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines