18611429192
18611429192
我本来是想对系统自带的标题栏进行一下格式改造来适应程序风格的。但是awtk目前不支持,只能使用自定义控件来实现拖动程序的功能。 我使用`widget_get_native_window`函数获得程序窗口左上角的坐标`native_window->rect.x` 和, `native_window->rect.y`, 通过控件的移动事件,将移动的距离加到窗口左上角的坐标上,然后使用`native_window_move `函数来移动程序窗口。 结果是在windows下移动不能太快,太快了会导致鼠标跑到了程序外面,然后程序跟不上鼠标的移动,只能慢慢移动鼠标,窗口才能跟得上移动速度。 ~~但是在linux下移动起来就没问题,很快的速度移动窗口也能跟得上。~~ linux下也有问题,我忘了我的linux awtk没有没有屏蔽系统自带的标题栏,上次拖动的是系统标题栏。 **请问有没有方法能让窗口移动速度跟得上鼠标的速度?** 详情见视频 windows: https://user-images.githubusercontent.com/49744753/156120046-9d8ea6cb-cc0f-4c50-a4d1-9b67574e4039.mp4 linux: https://user-images.githubusercontent.com/49744753/156126006-13e9b81e-a677-4b24-a609-f85be479de9a.mp4
The example is a coap-client , now i want to use lobaro-coap act a coap-server to deal with messages from a local area network。 How to implement this ?