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

how to design combobox

New Here ,
Jul 29, 2019 Jul 29, 2019

Helo

as the title says -

im looking for a way to design the plain combobox in my Adobe animate cc 2018.

so far i managed to give it colors and some shape using CSS, but my issue starts when i try to design the items.

i have no clue how to change their shape - from square shape into rounded corners or lets say circle.

please help me out here

2.0K
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

LEGEND , Jul 31, 2019 Jul 31, 2019

After searching everywhere, I could not find a way to access to parts of the components. I would assume there are classes defined that could be styled. But you are right, I cannot even find the way to center the text in the items.

Apparently centering text in the option/item section seems to be a no-no. Not sure why but everything that I saw was that it is not an option )(no -pun intented) for combox boxes n CSS, JQuery, winforms, etc...

Maybe someone know here. I will keep looking and hopefully g

...
Translate
LEGEND ,
Jul 29, 2019 Jul 29, 2019

Wait, do you mean style a combo box? Are you just using the HTML5 Canvas combo box component?

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
New Here ,
Jul 30, 2019 Jul 30, 2019

im using HTML5 canvas.

i added css page to it to design

#comboBox{

font-size:50px;

border-radius: 25px;

background: red;

text-align: center;  - doesnt work

}

#comboBox option{

text-align-last: center; - doesnt work

border-radius: 25px; - doesnt work

background:yellow;

}

i know html and css, but most of them wont work

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
LEGEND ,
Jul 29, 2019 Jul 29, 2019

YOu can either design your own or use a component and style it. I depends what you want and whether you are using AS3 or HTML5.

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
New Here ,
Jul 30, 2019 Jul 30, 2019

i use html 5 canvas and i know its possible somehow to design it, but the question is how as half of my css commands wont work

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
LEGEND ,
Jul 30, 2019 Jul 30, 2019

Here is an example I made using movieclips

combobox MC.zip - Box

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
New Here ,
Jul 30, 2019 Jul 30, 2019

this one looks amazing!

but im trying to do CSS design with components like this:

and for some reason i cant put my finger on how to change the shape of the yellow colored options.

the text align doesnt work either... they stay always on the left side

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
LEGEND ,
Jul 31, 2019 Jul 31, 2019

Besides the stylesheet you can add code in the first frame:

combobox-component.zip - Box

Example:

setTimeout(function () {

    // combobox

    $(".ui-combobox").css({

        "color": "teal",

        "font-size": 24,

        "background-color": "pink",

        "text-align": "center",

        "height": 40,

        "widht":160

    });

     $(".ui-combobox option").css({

        "background-color": "red",

        "font-size": 20,

        "color" : "white"

    });


}, 10);

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
LEGEND ,
Jul 31, 2019 Jul 31, 2019

After searching everywhere, I could not find a way to access to parts of the components. I would assume there are classes defined that could be styled. But you are right, I cannot even find the way to center the text in the items.

Apparently centering text in the option/item section seems to be a no-no. Not sure why but everything that I saw was that it is not an option )(no -pun intented) for combox boxes n CSS, JQuery, winforms, etc...

Maybe someone know here. I will keep looking and hopefully get there.

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
Community Expert ,
Aug 01, 2019 Aug 01, 2019
LATEST

Have you looked at this tutorial on how to use HTML5 components?

Using HTML5 components |

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