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.

CODECOMPOSER: GUI Composer v2 issues

I am using GC V2. However I am not connecting it to a particular device. I am building a boundary plot calculator and a component I need to use is a graph. I have had difficulty using the GC components directly so I have been trying to implement an application by brute forcing with traditional html/css/js.

This following is my index.gui file



I get this output through GUI composer.

 
However through a non GUI Composer and executing the html directly I get a correct output

I've noticed that GUI composer doesn't enjoy any sort of graphical component that's not a native GC component. For example, when i try to use a standard <img> tag in html, it doesn't load up in GC. Help me understand why and the work around for this?

  • Hi Justin,

    I split this question off your original thread. I will bring this thread to the attention of a GC expert to comment further. Also, please note that GCV2 has been deprecated in favor of GCv3.

    Thanks

    ki

  • HI Justin, 

    GUI Composer Designer is the tool to create GUIs, we have been referring to is in general as v2. However, it probably would be better to separate the tool from component library used to build apps. Both v2 and v3 component libraries can be used within same GC Designer tool (e.g. on dev.ti.com/gc). As Ki mentioned v2 component library is not really actively developed, but it is available for legacy projects. We recommend using v3 component library as it is actively maintained. When you create a new project you choose a project template, first two options (with v3 in project teamplate) are configured to use v3 component library. 

    Which template are you using? If you are completely replacing contents of index.gui file with your own custom code then it most likely will not work as rest of the infrastructure adds content when a .html file is generated from index.gui when you preview an application.  if you wanted to do that then I would suggest that you leave the boilerplate from project template and focus on removing elements that you do not care about(e.g. tab container and all it's child elements) and maybe add a container (which is really a GC component for a div). You should be able to then have your own custom content. 

    Are you getting any errors/messages when you open browser dev tools that might shed light? 

    Martin