2019-05-13 03:38 AM
Hi Martin,
I started to create a basic window with a background bitmap and some widgets, buttons and sliders but found I could not resize the widgets. I am missing something basic. In response to my last post you mentioned stickies, what are they?
Kind Regards
MikeZ
Solved! Go to Solution.
2019-05-13 04:10 AM
hi @kweisi50,
Good question. In TouchGFX, the size of some widgets are governed by the assets associated with them. E.g. for Buttons, the size is fixed to the pressed and released images. Boxes are resizable. We have chosen to let the designer of the graphic be supreme in this case, because resizing images should be a graphics artists job and not the job of some approximating algorithm. It may not end up looking like you want it to. The Slider is also ruled by the size of its background and indicator images.
Does that make sense?
Best regards,
Martin
2019-05-13 04:10 AM
hi @kweisi50,
Good question. In TouchGFX, the size of some widgets are governed by the assets associated with them. E.g. for Buttons, the size is fixed to the pressed and released images. Boxes are resizable. We have chosen to let the designer of the graphic be supreme in this case, because resizing images should be a graphics artists job and not the job of some approximating algorithm. It may not end up looking like you want it to. The Slider is also ruled by the size of its background and indicator images.
Does that make sense?
Best regards,
Martin
2019-05-13 05:43 AM
I forgot to mention stickies. At the top of this list you'll find two pinned posts one of which has information on integrating hardware with TouchGFX:
2019-05-17 04:16 AM
Hi Martin,
I thought about your answer to my scalable widgets question, I do not understand it. Do you think you could elaborate further please.
Kind Regards
MikeZ
2019-05-20 12:12 AM
Hi Mike, sure.
Imagine that you're supplying an image to the designer which means the image has fixed dimensions. If you want to be able to resize the image in the designer we can do one of two things:
Neither of those options are very good in our eyes. Maybe for very simple images. But in the end you're altering the work of your graphics artist who most definitely designer the image to be exactly the dimensions it was supposed to be.
Does that make sense?
/Martin
2019-05-20 12:23 AM
Hi Martin,
So what you saying is that I can supply the precise graphics for a widget and I using. Then the question is, what is the process of replacing the standard graphics of a widget? The steps for replacing the default graphics of a slider for example.
Kind Regards
MikeZ
2019-05-20 12:39 AM
Hi Mike,
In the properties area (right hand side of designer) you should see properties for slider and knob. Just pick new ones - Add new graphics to the project if you wish, and use those. Depending on the size of the knob for the slider, you can adjust it also using properties. These size of these assets will define the new size of the slider.
/Martin
2019-05-20 12:58 AM
Hi Martin,
I will check it out, thanks.
Kind Regards
MikeZ
2019-05-20 01:03 AM
Okay, great. Let me know if you have any more doubts!
/Martin