-
如果需要显示文件系统中的JPG图片,应该采取哪种方法? 我在API中并没有发现显示本地图片相关的办法.
-
1.更新到最新awtk源码(2019/07/03), 编辑器有时候键盘的删除还是删不了文字。
2.
单行编辑器设置为
edit_set_input_type(edit, INPUT_UINT);
edit_set_int_limit(edit, 8, 200, 1);
设置范围为[8, 20], 但实际编辑还是可以输入低于8或超过200的数。
-
[LWN.net Weekly Edition for July 18, 2019](https://lwn.net/Articles/793455/)
- [What's coming in Python 3.8](https://lwn.net/Articles/793818/): a look at the new features in the Python release comi…
-
1、slider在前几天,min、max、value、step的值改成了可以设置double了,但仍然不能是负数?
widget_set_value(slider,-10);会使得slider滑块跑到滑条最右端(即最大值处)
2、操作spin_box可以改变spin_box的值,显示也正确,但是,如果调用edit_set_int(spin_box,value);当value是两位数时,个位数不…
-
window_create动态创建2个窗口,如何实现2个窗口相互切换界面?
1.查看了pdf文档里面4.3节有个window_manager 但只是列了几个函数 具体怎么使用未知。
2.下载了awtk-c-demos例程,里面有个multi_windows.c例子 中 :widget_on(wm, EVT_KEY_DOWN, on_key_back_or_back_to_home, …
-
在awtk_config.py里面把-DWITH_STB_FONT修改为-DWITH_BITMAP_FONT,fontgen编译会出错。
如果先用原始代码,编译出fontgen,然后去掉fontgen的编译,修改宏定义为WITH_BITMAP_FONT,编译通过后,demoui不能显示文字。
要用bitmap font还需要做其他设置吗?
-
见 types_def.h
```
#if defined(WITH_DOUBLE_FLOAT)
typedef long double float_t;
#else
typedef float float_t;
#endif /*WITH_DOUBLE_FLOAT*/
```
通常情况下 float_t 是4字节
在定义 WITH_DOUBLE_FLOAT 的情况下,float…
-
widget_set_prop_str的第三个参数每个属性该怎么输入,哪里有文档说明吗?比如我设置一个widget窗口动画属性为向下滑出widget_set_prop_str(win, WIDGET_PROP_ANIM_HINT, WINDOW_ANIMATOR_SLIDE_DOWN); 那如果去除这个属性,第三个参数是写""吗? 还比如
-
awtk中加载了完整的default.ttf资源 用widget_set_text显示中文, 那么字体大小该怎么改?试了lcd_set_font_size不行
-
1.
```
initialization from incompatible pointer type [-Wincompatible-pointer-types] object_default.c /m1052_awtk/awtk/awtk/src/tkc line 263 C/C++ Problem
```
static int32_t object_default_compar…