当前位置: 首页 > news >正文

网站制作一般收费电子商务平台经营者不能是

网站制作一般收费,电子商务平台经营者不能是,网络舆情分析报告范文,怎样浏览被国内封禁的网站LVGL 日历组件 calendar 添加到默认组中 lvgl的 calendar 组件会默认添加到旋钮按键组中#xff0c;需要手动将其删除#xff0c;否则会聚焦到不可见的控件上。 lv_obj_set_style_pad_all(calendar, 8, LV_STATE_DEFAULT); lv_group_remove_obj(calendar);修改时间范围 年…LVGL 日历组件 calendar 添加到默认组中 lvgl的 calendar 组件会默认添加到旋钮按键组中需要手动将其删除否则会聚焦到不可见的控件上。 lv_obj_set_style_pad_all(calendar, 8, LV_STATE_DEFAULT); lv_group_remove_obj(calendar);修改时间范围 年时间范围需要手动修改源码下面就是将年信息修改到2023-2099年 /*** file lv_calendar_obj_dropdown.c**//********************** INCLUDES*********************/ #include lv_calendar_header_dropdown.h #if LV_USE_CALENDAR_HEADER_DROPDOWN#include lv_calendar.h #include ../../../widgets/lv_dropdown.h #include ../../layouts/flex/lv_flex.h/********************** DEFINES*********************//*********************** TYPEDEFS**********************//*********************** STATIC PROTOTYPES**********************/ static void my_constructor(const lv_obj_class_t* class_p, lv_obj_t* obj); static void year_event_cb(lv_event_t* e); static void month_event_cb(lv_event_t* e); static void value_changed_event_cb(lv_event_t* e);/*********************** STATIC VARIABLES**********************/ const lv_obj_class_t lv_calendar_header_dropdown_class {.base_class lv_obj_class,.width_def LV_PCT(100),.height_def LV_SIZE_CONTENT,.constructor_cb my_constructor };static const char* month_list 01\n02\n03\n04\n05\n06\n07\n08\n09\n10\n11\n12; static const char* year_list {2023\n2024\n2025\n2026\n2027\n2028\n2029\n2030\n2031\n2032\n2033\n2034\n2035\n2036\n2037\n2038\n2039\n2040\n2041\n2042\n2043\n2044\n2045\n2046\n2047\n2048\n2049\n2050\n2051\n2052\n2053\n2054\n2055\n2056\n2057\n2058\n2059\n2060\n2061\n2062\n2063\n2064\n2065\n2066\n2067\n2068\n2069\n2070\n2071\n2072\n2073\n2074\n2075\n2076\n2077\n2078\n2079\n2080\n2081\n2082\n2083\n2084\n2085\n2086\n2087\n2088\n2089\n2090\n2091\n2092\n2093\n2094\n2095\n2096\n2097\n2098\n2099};/*********************** MACROS**********************//*********************** GLOBAL FUNCTIONS**********************/lv_obj_t* lv_calendar_header_dropdown_create(lv_obj_t* parent) {lv_obj_t* obj lv_obj_class_create_obj(lv_calendar_header_dropdown_class, parent);lv_obj_class_init_obj(obj);return obj; }/*********************** STATIC FUNCTIONS**********************/static void my_constructor(const lv_obj_class_t* class_p, lv_obj_t* obj) {LV_TRACE_OBJ_CREATE(begin);LV_UNUSED(class_p);lv_obj_t* calendar lv_obj_get_parent(obj);lv_obj_move_to_index(obj, 0);lv_obj_set_flex_flow(obj, LV_FLEX_FLOW_ROW);lv_obj_t* year_dd lv_dropdown_create(obj);lv_dropdown_set_options(year_dd, year_list);lv_obj_add_event_cb(year_dd, year_event_cb, LV_EVENT_VALUE_CHANGED, calendar);lv_obj_set_flex_grow(year_dd, 1);lv_obj_t* month_dd lv_dropdown_create(obj);lv_dropdown_set_options(month_dd, month_list);lv_obj_add_event_cb(month_dd, month_event_cb, LV_EVENT_VALUE_CHANGED, calendar);lv_obj_set_flex_grow(month_dd, 1);lv_obj_add_event_cb(obj, value_changed_event_cb, LV_EVENT_VALUE_CHANGED, NULL);/*Refresh the drop downs*/lv_event_send(obj, LV_EVENT_VALUE_CHANGED, NULL); }static void month_event_cb(lv_event_t* e) {lv_obj_t* dropdown lv_event_get_target(e);lv_obj_t* calendar lv_event_get_user_data(e);uint16_t sel lv_dropdown_get_selected(dropdown);const lv_calendar_date_t* d;d lv_calendar_get_showed_date(calendar);lv_calendar_date_t newd *d;newd.month sel 1;newd.day 1;lv_calendar_set_showed_date(calendar, newd.year, newd.month);lv_calendar_set_today_date(calendar, newd.year, newd.month, newd.day);/*Refresh the drop downs*/lv_event_send(calendar, LV_EVENT_VALUE_CHANGED, NULL); }static void year_event_cb(lv_event_t* e) {lv_obj_t* dropdown lv_event_get_target(e);lv_obj_t* calendar lv_event_get_user_data(e);uint16_t sel lv_dropdown_get_selected(dropdown);const lv_calendar_date_t* d;d lv_calendar_get_showed_date(calendar);lv_calendar_date_t newd *d;newd.year 2023 sel;newd.day 1;lv_calendar_set_showed_date(calendar, newd.year, newd.month);lv_calendar_set_today_date(calendar, newd.year, newd.month, newd.day);/*Refresh the drop downs*/lv_event_send(calendar, LV_EVENT_VALUE_CHANGED, NULL); }static void value_changed_event_cb(lv_event_t* e) {lv_obj_t* header lv_event_get_target(e);lv_obj_t* calendar lv_obj_get_parent(header);const lv_calendar_date_t* cur_date lv_calendar_get_showed_date(calendar);lv_obj_t* year_dd lv_obj_get_child(header, 0);lv_dropdown_set_selected(year_dd, cur_date-year - 2023);lv_obj_t* month_dd lv_obj_get_child(header, 1);lv_dropdown_set_selected(month_dd, cur_date-month - 1); }#endif /*LV_USE_CALENDAR_HEADER_ARROW*/
http://wiki.neutronadmin.com/news/351488/

相关文章:

  • 网站建设项目报告总结单屏网站设计
  • 给个网站免费的做网站订阅号
  • 文化传媒公司网站模板海淀网站建设联系方式
  • 怎么介绍做网站技术深圳华强北手机城
  • 挂机宝可以做网站吗源代码管理网站
  • 江苏城乡建设教育网站正常做一个网站多少钱
  • wordpress源码网站主题模板在线设计制作
  • 帮人做ppt的网站wordpress数据库设置
  • 个人网站开发多少钱门户网站管理系统
  • 当今做哪个网站能致富小红书推广文案
  • 商城网站 报价 方案湖南微网站开发
  • 石家庄做网站公司汉狮价格房产信息查询
  • 重庆企业网站备案要多久时间北京的公司有哪些
  • 做网站建设找哪家好网站策划论坛
  • aje网站润色织梦 手机网站
  • 免费的公众号排版工具如何做网络推广优化
  • 宁波高新区建设局网站wordpress登录可见代码
  • 房屋建筑设计网站网站通栏是什么
  • 静态网站开发基础宠物用品技术支持 东莞网站建设
  • 众筹平台网站建设wordpress右侧空白
  • 北京网站优化哪家公司好安徽安庆
  • 河源市东源县建设局网站钉钉企业邮箱收费标准
  • 网站开发需要有什么证书网站与云平台区别
  • 网站登录系统网站上的图片做多大
  • 临沂网站设计建设阿里云 企业 网站
  • 能不能模仿百度一样做搜索引擎网站网站ping值
  • 陕西渭南住房和城乡建设厅网站海淀网站建设电话
  • 新乡彩票网站建设衡水网站建设服务商
  • 新浪博客怎么做网站济南建设信用网网站
  • 网站的整体结构免费小程序平台