create: Checkpoint 2026-11-24 03:14:33 UTC [5e419dfd87]
MemRelay-Operation: checkpoint-save:uiframe-stray-button-20261124 MemRelay-Resource: b045fbcb-a8f7-4334-a254-eade1d7451ce
This commit is contained in:
+33
@@ -0,0 +1,33 @@
|
|||||||
|
---
|
||||||
|
title: Checkpoint 2026-11-24 03:14:33 UTC [5e419dfd87]
|
||||||
|
type: checkpoint
|
||||||
|
permalink: main/projects/0017cd22-9dea-4f87-9595-fc050356ff3c/checkpoint-2026-11-24-03-14-33-utc-5e419dfd87
|
||||||
|
stable_id: b045fbcb-a8f7-4334-a254-eade1d7451ce
|
||||||
|
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: uiframe-stray-button-20261124
|
||||||
|
created_at: '2026-11-24T03:14:33.924747+00:00'
|
||||||
|
updated_at: '2026-11-24T03:14:33.924747+00:00'
|
||||||
|
tags:
|
||||||
|
- fltk-plus
|
||||||
|
- fluid-plus
|
||||||
|
---
|
||||||
|
|
||||||
|
完成:查清属性面板左上角那个英文 Button 是怎么来的,并改了代码。
|
||||||
|
|
||||||
|
原因:它不是属性页的控件,也不在工程树里。新建 Fl_Button 时,工厂会先造一个不该显示的样例控件,位置 0,0,大小 100×100,标签写死为 Button。FLTK 的 Fl_Group::end() 会把“当前组”设成父组。属性页每次重建(property_sheet.cxx 的 clear_body/load)调完 end() 后,当前组停在属性滚动区上。接下来第一次 new Fl_Button 就被自动加进这个滚动区,样例按钮一直留在那里,压住属性页左侧。右边红框是选中设计窗口时画的选中框(Window_Node::draw_overlay 里 fl_color(FL_RED) 后 fl_rect)。属性里的 24,24 和 480×320 是新建窗口的默认值。
|
||||||
|
|
||||||
|
改动(未提交):
|
||||||
|
nodes/Widget_Node.cxx:造样例和新建控件时先把当前组清掉,造完如果已经被加进某个组就移出。
|
||||||
|
app/property_sheet.cxx:clear_body 和 load 在 begin/end 后恢复原来的当前组。
|
||||||
|
app/designer_shell.cxx:重建窗口标签时同样恢复当前组。
|
||||||
|
|
||||||
|
验证:Release 编译这三个源文件通过,没有警告。链接失败 LNK1104,因为用户正在跑的 fluid-plus.exe 占着文件。没有结束该进程。新程序还没生成。
|
||||||
|
|
||||||
|
下一步:用户关掉正在跐的 fluid-plus 后,再链接 Release 的 fluid-plus,然后打开新程序。旧进程里左边那个 Button 关掉就没了,它不在工程里,删不掉。重开后再新建按钮,应该只出现在设计窗口里。
|
||||||
|
|
||||||
|
给下个会话:不要用真实鼠标点界面。不要杀用户正在用的 fluid-plus,除非用户说可以关。cmake 不在 PATH,先 vcvars64,再用 VS 自带 cmake --build build --config Release --target fluid-plus。不要构建 fluid 目标。没说提交就不提交、不推送。
|
||||||
Reference in New Issue
Block a user