127 Nextion Combo Box the attributes and press events

Поділитися
Вставка
  • Опубліковано 2 лют 2025

КОМЕНТАРІ • 40

  • @swiftcoool19
    @swiftcoool19 4 роки тому +2

    I have learnt a lot from you . Keep posting such videos ...!!! Great job !

  • @josvannut8268
    @josvannut8268 4 роки тому +2

    just what i needed. clearly explained,
    thanks

  • @sanduc7757
    @sanduc7757 4 роки тому +1

    Thank you for the videos

  • @ElectroCoderEC
    @ElectroCoderEC 2 роки тому +1

    Is it posible use picture, or images insted of text?

    • @CheapControls
      @CheapControls  2 роки тому +1

      I don't believe you can populate a combo box with images. But, just because I have not seen it does not mean it can't be done.

  • @daryl7237
    @daryl7237 2 роки тому

    Hi possible to make more combobox video? Example can it like record multiple value then choose the value?

    • @CheapControls
      @CheapControls  2 роки тому +1

      In my next video I am going to populate a combo box with values. Please watch next week and comment if it helps or if it does not. I will try to make one that works for you. You are a loyal follower and I appreciate it.

    • @daryl7237
      @daryl7237 2 роки тому

      @@CheapControls that’s great

  • @levelmastersystems117
    @levelmastersystems117 4 роки тому +1

    Thanks .

  • @shsh8553
    @shsh8553 3 роки тому

    How can I change the content of .path through serial using multi-lined text?
    Let's say I'm going to send the following multi-lined text to the Combobox from my MCU:
    PAT1
    PAT2
    PAT3
    if I use cb0.path="PAT1
    PAT2
    PAT3" it works but the array of my buffer is limited. So, I'd like to send PAT1, PAT2, PAT3 in a separated messages.
    Thank you

    • @CheapControls
      @CheapControls  3 роки тому

      Did you try pat1
      then pat2
      in separate sends?

    • @shsh8553
      @shsh8553 3 роки тому

      @@CheapControls Thanks for your reply. Yes I tried but it only shows the last word only (pat2)

    • @CheapControls
      @CheapControls  3 роки тому +1

      I wonder if you could send your string to a string variable then have a timer check that variable. If the variable contains text then write it to the list. You may have to collect the list into a variable then append it and then reload it. I hope that made sense

    • @shsh8553
      @shsh8553 3 роки тому

      @@CheapControls I'll try that.
      Thanks so much

    • @ElectroCoderEC
      @ElectroCoderEC 2 роки тому

      Yes you can, for example: c0.path+="PAT1" after other event c0.path+="
      PAT2", you can add new lines you want

  • @ElectroCoderEC
    @ElectroCoderEC 2 роки тому +1

    How can i switch with images?

    • @CheapControls
      @CheapControls  2 роки тому +1

      If the object you want to change allows an image, you need to add the image to the HMI on compile. Then when you press or release you can change the image id you are point to.

    • @ElectroCoderEC
      @ElectroCoderEC 2 роки тому

      @@CheapControls I need make a dynamic menu with an esp32 I don't know if I can upload a image from an esp32 and set it on a combobox and the user can choose the picture he wants something like that

    • @CheapControls
      @CheapControls  2 роки тому +1

      What type of display are you using? intelligent,basic,enhanced?

    • @ElectroCoderEC
      @ElectroCoderEC 2 роки тому

      @@CheapControls Intelligent 7 inch

    • @CheapControls
      @CheapControls  2 роки тому

      I know that with the intelligent display you can send files(images) to the SD card. But, the intelligent display has memory to store images. If you have a few static images that they user is selecting through then I would recommend you load them into the Nextion at compile time and select them as you need. If you want the user to be able to add pictures after compile then you will need to use the twfile command to transfer them to the SD card or RAM. I am unsure how to display the image in a combo box. I would like to investigate this option but I think it will take me awhile to get to it.

  • @BrainTrance
    @BrainTrance 2 роки тому

    is it possible to use multiline text PER cell?

    • @CheapControls
      @CheapControls  2 роки тому

      after some quick testing I do not believe it is possible. I tried backslashes and forward slashes and the 0x0D 0x0A escape codes in the path. Whenever you enter a new line it adds a new selection. I believe anything is possible but this one would take some research. If you figure it out please come back and enter a reply. If I figure it out I will make a video. I do have to ask. What is the purpose of this request. I am sincerely interested. I like to hear what others are working on.

    • @BrainTrance
      @BrainTrance 2 роки тому

      @@CheapControls firstly, thanks for your content, it helped me tremendously in our project which is an important one.
      Secondly, I have to create a selection system which has 50 different selections. I can either use a combobox with 50 selections or create almost 6 pages of 9 buttons (with labels) each, which is a solution but a tedious one.
      The problem is that some labels are almost 20 characters long and they have to fit in the cell and all the cells have to be the same size, thus all my cells are huge. If I could have multiline text in some cells I would be able to shrink down all cells and make my interface more practical.

    • @CheapControls
      @CheapControls  2 роки тому

      @@BrainTrance That is an interesting problem. I will think about it for a while and see if I can think of an alternative. Is your project connected to an Arduino? Could you auto populate a field based on a button push? Do you mind letting me know the model of Nextion you are using and the model of arduino?

    • @BrainTrance
      @BrainTrance 2 роки тому

      @@CheapControls there is no Arduino. The model is NX4827P043_011.
      By the way, is it possible to use the Tx pin of the display as a regular output pin and set it high or low?
      Thanks for your time.

    • @CheapControls
      @CheapControls  2 роки тому

      Are the 50 entries ever changed or are the permanent? I. Not sure about the serial port pins but if one can be used the. I bet rx and tx can be used as signal pins. I never thought about that. I know most little processors can dual purpose the io pins. That will take a little more research.

  • @khushhalkachhawaha4983
    @khushhalkachhawaha4983 Рік тому

    Can i overlap combo box on text toolbox. ?

    • @CheapControls
      @CheapControls  Рік тому

      You can layer objects. You can also copy data between objects. I am not sure what you are asking. Please comment again and I will try to answer your question better.

    • @khushhalkachhawaha4983
      @khushhalkachhawaha4983 Рік тому

      @@CheapControls can you share your mail id .?
      I will mail you my problem with pics..so that you can understand easily..

    • @CheapControls
      @CheapControls  Рік тому

      @@khushhalkachhawaha4983 submit a comment over at www.cheapcontrols.com. I will reply and then we can exchange emails. Or use the email associated with this channel

  • @chjj8869
    @chjj8869 9 місяців тому +1

    This device does not support this component.

    • @CheapControls
      @CheapControls  9 місяців тому

      That is too bad. I thought it did.