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

Increase the size of an AutoComplete feature

Contributor ,
Feb 28, 2014 Feb 28, 2014

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
1.1K
Translate
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
Translate
Guru ,
Feb 28, 2014 Feb 28, 2014

In the class of the tutorial you linked change these Lines

titleFormat.size = 12;

titleFormat.font = "verdana";

to whatever you prefer

Translate
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

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

Translate
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

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);

Translate
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

Perfect ! Thanks !

But now I've got this problem

test2.png

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

Translate
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

I've tried

acList.setSize(845, 900);

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

Don't know why

Translate
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

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

Thx !

Translate
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

try

acList.rowHeight = 16;

and then for spacing between listItems:

tf.leading = 4;

Translate
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

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

Translate
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
Translate
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
LATEST

Perfect ! Thanks !!

Translate
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