热点新闻
New task continued
2024-10-24 02:48  浏览:4040  搜索引擎搜索“手机速企网”
温馨提示:为防找不到此信息,请务必收藏信息以备急用! 联系我时,请说明是在手机速企网看到的信息,谢谢。
展会发布 展会网站大全 办理VIP 软文发布

Today I moved on to the next task of the "self-help printer" project, today's task is to let the elements of the user interface, the forms and the visual controls of the program scale automatically according to the screen resolution of the PC running the program.

I spent the whole afternoon thinking about the algorithm and writing code to try to implement the work, but by the time I got off, it hadn't be done yet.

In the evening, as I was running on the treadmill at the gym, still thinking about the problem, I thought that the requirement was a common problem, so it must have been done by other programmers, or even that it was an internal function that I could just call it to implement the requirement.

Yes it was, I just wrote a line of code to call a function to do it. The resizing of forms and visual controls is done internally at a ratio calculated by comparing the screen resolution of the development computer to the user computer running the "self-help printer".

What a waste of an afternoon!

发布人:1247****    IP:124.223.189***     举报/删稿
展会推荐
  • 麻雀
  • 2024-10-24浏览:2207
  • 305天
  • 2024-10-24浏览:2621
让朕来说2句
评论
收藏
点赞
转发