2844 views|1 replies

381

Posts

9

Resources
The OP
 

TouchGFX Design + Make a Rubik's Cube (5) [Copy link]

Use TouchGFX to make a Rubik's Cube (Day 5) I have mastered control arrays and transparency, but I still have a hard time grasping the scroll bar. Last time I mentioned control arrays. It is true that they cannot be achieved by dragging the interface, but they can be written in the code. Add array definition to Screen1view.hpp410358 and use it directly in Screen1view.cpp. If you define it directly in Screen1view.cpp, you will be prompted 410359 during simulation, but it can still be executed. I don't know what will happen if it is burned in. I think I have a good chance of getting one in this event, so you can try it. The stacking order of the added pictures is determined by the execution order of the add statement, and the ones added later are on top. 410360 In order to make room for the 3d animation, I put this block in the upper left corner.
In addition, the scroll bar control is mentioned. I don't know how to use the scroll bar events. If I drag the scroll bar directly, it seems that "slider adjustment confirmed", "slider adjustment initiated", "slider value changed" will not be triggered. The reason is unknown. . .
So I added two buttons to control addition and subtraction.
Considering the continuity of the value, 15 is used as the value for addition and subtraction.
By adding and subtracting, I set the alpha value (transparency) of the left, front and top surfaces. I found a small bug:
If I use the dragging method to change the value of the slider, the increase function will be invalid in some value ranges (30, 60), add print debugging information
The result is really strange
Only 30 and 60 are abnormal. . .
Okay, I will continue to study,
The code to achieve the effect of a push button switch
The effect is
This content is created by EEWORLD forum user tobot. If you need to reprint or use it for commercial purposes, you must obtain the author's consent and indicate the source

定义数组.png (14.47 KB, downloads: 0)

定义数组.png

告警.png (36.01 KB, downloads: 0)

告警.png

图层.png (13.8 KB, downloads: 0)

图层.png
This post is from stm32/stm8

Latest reply

You did a great job.  Details Published on 2019-4-20 00:29
 

6

Posts

0

Resources
2
 
You did a great job.
This post is from stm32/stm8
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list