This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

GUI Composer Feedback, Questions and Bug Report

I have spent the last few days playing with GUI Composer, and let me begin by saying it is an amazing tool and I really look forward to further development with it. I do have a few questions about some of the functionality that I was hoping you might be able to address.

In the events tab on all the widgets, you bring out almost all of the events such as onclick and onmouseover, however why don’t you bring out onchange?  I feel like this would be the most useful and powerful event in gui composer.   For example in one project I wrote, I used a textarea and bound it to the value of the ambient light sensor on my TMS470M HDK.  I then went into the html and added an onchange event so that it would change the opacity of a TI logo located on the UI.

Another question of mine is how are you setting the value of the widgets that you do with a canvas, such as the Digital Meter?  I want to be able to also change the fill using the same onchange method as previously explained however the value property isn’t valid in html5 on the canvas tag thus I am unable to change it with javascript.

Are there any plans to implement copy and paste in the html editor? Being able to change the source from inside GUI Composer is great, however the editor is lacking a lot of functionality such as copy and paste.  Most of the time when I want to change anything manually, I am forced to do it in notepad instead.

Lastly, is there any way to override the reprogramming of the device every time?  In our previous demo software we programmed in a software id at a specific location, and before we programmed the device we would check to make sure that ID was the same on the device as the current project.  If it was, we would skip programming.

Also I wanted to bring up a very strange bug that I found while using the HTML editor.  Sometimes whenever I was adding in custom code for like div tags etc, the editor would begin to freak out and start escaping everything.  So typing “div" would become “\d\i\v\” and then I would be unable to delete it using back space.  I had to open the code in notepad and delete it from there.  I know that it is a strange bug, and unfortunately I am unable to reproduce it at this time, however it happened to me at least 4 times.  If it happens again I will try and record a video of the occurrence.

  • Hi Michael,

    Thanks for the feedback and spending time with GUI Composer.

    Michael Sherman said:

    In the events tab on all the widgets, you bring out almost all of the events such as onclick and onmouseover, however why don’t you bring out onchange?  I feel like this would be the most useful and powerful event in gui composer.   For example in one project I wrote, I used a textarea and bound it to the value of the ambient light sensor on my TMS470M HDK.  I then went into the html and added an onchange event so that it would change the opacity of a TI logo located on the UI.

    onchange is not supported for all widget, it needs to be exposed as widget specific event if we ever going to expose this event in the GUI designer. We can definitely implement event callback with dojo watch mechanism and you can defined the exact property change that you are interested without type dojo code. i.e value, size, visibility, etc... 

    Michael Sherman said:

    Another question of mine is how are you setting the value of the widgets that you do with a canvas, such as the Digital Meter?  I want to be able to also change the fill using the same onchange method as previously explained however the value property isn’t valid in html5 on the canvas tag thus I am unable to change it with javascript.

    To change the value of the meter and gauge, you can use dojo set method. For example: dijit.byId('myMeterId').set('value', theValue);

    Michael Sherman said:

    Are there any plans to implement copy and paste in the html editor? Being able to change the source from inside GUI Composer is great, however the editor is lacking a lot of functionality such as copy and paste.  Most of the time when I want to change anything manually, I am forced to do it in notepad instead.

    Copy and past is already supported in the GUI designer, it isn't integrated with the rest of CCS yet. The cut/copy/paste actions are available in the toolbar above the html page.

    Michael Sherman said:

    Lastly, is there any way to override the reprogramming of the device every time?  In our previous demo software we programmed in a software id at a specific location, and before we programmed the device we would check to make sure that ID was the same on the device as the current project.  If it was, we would skip programming.

    Right now, no. We have plan to expose this option through the UI when the application is run as a standalone RPC application. If you know DSS, then you can open the initScript.js file in the application folder and change the load program line to load symbol to prevent flashing the device everytime.

    Michael Sherman said:

    Also I wanted to bring up a very strange bug that I found while using the HTML editor.  Sometimes whenever I was adding in custom code for like div tags etc, the editor would begin to freak out and start escaping everything.  So typing “div" would become “\d\i\v\” and then I would be unable to delete it using back space.  I had to open the code in notepad and delete it from there.  I know that it is a strange bug, and unfortunately I am unable to reproduce it at this time, however it happened to me at least 4 times.  If it happens again I will try and record a video of the occurrence.

    The HTML source editor isn't the best choice to use to modify code, it is still very buggy. I recommend that you modify code using an external text editor if you want to add custom code.
    Regards,
    Patrick 
  • Patrick said:

    Copy and past is already supported in the GUI designer, it isn't integrated with the rest of CCS yet. The cut/copy/paste actions are available in the toolbar above the html page.

    My comment was that these copy and paste functions don't work in the HTML Editor

  • Thanks for the clarification. I see what you mean.

    Regards,
    Patrick