Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

生成名称属性已更改的控件时出错 #188

Open
WillyAguilera1977 opened this issue Jan 23, 2024 · 2 comments
Open

生成名称属性已更改的控件时出错 #188

WillyAguilera1977 opened this issue Jan 23, 2024 · 2 comments

Comments

@WillyAguilera1977
Copy link

WillyAguilera1977 commented Jan 23, 2024

当您更改控件的名称属性时,该控件不会出现在结构的字段列表中。
我展示下面的代码:

type TForm1 struct {
*vcl.TForm
//已在 name 属性中命名的控件不会出现

// ::private::
TForm1Fields

}

如果我使用 Lazarus IDE,也会发生同样的情况

这里我传递了一个包含 GoVCLDesigner 生成的项目的 zip 文件。

等待您的回复,我真诚地向您问好。

抱歉我不会说中文,我正在使用谷歌翻译

GoVCLDesigner项目.zip

@ying32
Copy link
Owner

ying32 commented Jan 24, 2024

The first letter of the control name needs to be uppercase, and those starting with lowercase will be filtered. Because only the first letters in go are defined as public members or methods, Rtti requires public members/methods. (控件名首字母需要大写,小写开头的会被过滤。因为go中首字母大写的才会被定义为公开的成员或者方法,Rtti需要公开的成员/方法。 )

@skyqvn
Copy link

skyqvn commented Jan 25, 2024

The name 'lblName','edName' and 'btnRun' is not valid.
You can name it 'LblName','EdName' and 'BtnRun'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants