Files
MemRelay/projects/0017cd22-9dea-4f87-9595-fc050356ff3c/Checkpoint 2026-11-23 19-45-26 UTC [9678c6d3e0].md
T
memrelay 5ccba9f790 create: Checkpoint 2026-11-23 19:45:26 UTC [9678c6d3e0]
MemRelay-Operation: checkpoint-save:fluid-plus-embedded-frame-skin-cp-20261124
MemRelay-Resource: 8b295f01-0c27-4f69-92de-304cfe1ba304
2026-11-24 03:45:29 +08:00

32 lines
3.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: Checkpoint 2026-11-23 19:45:26 UTC [9678c6d3e0]
type: checkpoint
permalink: main/projects/0017cd22-9dea-4f87-9595-fc050356ff3c/checkpoint-2026-11-23-19-45-26-utc-9678c6d3e0
stable_id: 8b295f01-0c27-4f69-92de-304cfe1ba304
scope: project
memory_type: checkpoint
project_id: 0017cd22-9dea-4f87-9595-fc050356ff3c
usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998
status: active
revision: 1
request_id: fluid-plus-embedded-frame-skin-cp-20261124
created_at: '2026-11-23T19:45:26.571459+00:00'
updated_at: '2026-11-23T19:45:26.571459+00:00'
tags:
- fltk-plus
- fluid-plus
---
完成:fluid-plus 设计窗口改为“真子窗口 + 系统外框图像”。去掉了顶层设计窗口、面板弹窗、主窗口窗口过程钩子、z 序调整。
改动文件(都在 fltk-plus/fluid-plus,未提交,基于提交 b339d40fa):app/frame_skin.h、app/frame_skin.cxx(新增),app/designer_shell.cxx(重写),app/designer_shell.h,nodes/Window_Node.cxx(Esc 不再隐藏),widgets/Bin_Button.cxx(designer_drop_xy 改为 designer_drop_window),CMakeLists.txt。原版 fluid/ 和 src/ 没动。
验证(Windows 10 19045,Release 编译无警告):用窗口句柄和 PrintWindow 截图核对,输入用 PostMessage,没有动真实鼠标。设计窗口是视口的 WS_CHILD;进程里只有主窗口可见,取图窗口 cloaked;外框和系统标题栏一致;主窗口缩小后被裁在设计区内并出滚动条;拖标题栏移动、按钮区不响应、拖左/右/上边改大小、切换窗口标签各自记住位置、Ctrl+Z / Ctrl+Shift+Z 后尺寸恢复且位置保留、点选和拖动控件正常。FLUID_PLUS_FRAME=plain 和 =fltk 两条备用来源也在本机跑通。
未验证:真实鼠标手感(拖动时外框和客户区是否有可见错位、光标形状)、拖角、从控件箱拖新窗口到设计区;Windows 11 圆角;macOS、X11、Wayland 全部没运行过。
跨平台评估(读 FLTK 源码得出):嵌入、裁剪、跟随在各平台都由 FLTK 子窗口保证。外框:macOS 和 X11 能截到真实标题栏,但每次标题或大小变化停稳后会有一个临时真实窗口在外框原位出现约 0.25 秒并短暂拿走焦点;Wayland 只有 libdecor 客户端边框(GNOME)截得到,KDE 的服务端边框截不到,会用自绘外框。
下一步:等用户用真实鼠标验收。用户确认后再提交(用户的约定:不说提交就不提交,不推送)。拿到 macOS 或 Linux 机器后先看临时窗口闪动和焦点是否可接受。
给下个会话:不要用真实鼠标点界面测试,用户明确反对;用句柄、PrintWindow 和 PostMessage。cmake 不在 PATH,先 vcvars64 再用 VS 自带 cmake --build build --config Release --target fluid-plus,不要构建 fluid 目标。fluid-plus/.vs 和 fluid-plus/out 是用户用 Visual Studio 打开目录产生的,未跟踪,不要提交也不要删。设计窗口成为子窗口后键盘焦点要靠 Fl::focus 给它,改动焦点相关代码时记得复测 Ctrl+Z。