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

如何定义给一个带有滚动条的 VBox #47

Closed
roc1 opened this issue Jun 13, 2019 · 1 comment
Closed

如何定义给一个带有滚动条的 VBox #47

roc1 opened this issue Jun 13, 2019 · 1 comment
Labels
question Further information is requested

Comments

@roc1
Copy link

roc1 commented Jun 13, 2019

我定义了一个带滚动条的 VBox 类,如下:
class CustomScrollVBox : public ui::ScrollableBox { public: CustomScrollVBox() : ui::ScrollableBox(new ui::VLayout()) { } };
然后CreateControl 也正确调用了。
xml 定义如下:
<CustomScrollVBox halign="center" width="350" margin="0,20,0,0" height="300" vscrollbar="true">

但是没有效果,滚动条不出现。
请问我哪里写的不对啊?

@roc1 roc1 closed this as completed Jun 13, 2019
@roc1
Copy link
Author

roc1 commented Jun 13, 2019

抱歉,滚动出现了。是我没有注意到。

@roc1 roc1 changed the title 如果定义给一个带有滚动条的 VBox 如何定义给一个带有滚动条的 VBox Jun 13, 2019
@nmgwddj nmgwddj added the question Further information is requested label Jun 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants