问题描述
如何编写允许用户添加标签和按钮链接的应用程序。
我希望应用程序在每个新标签中最多包含15个按钮。我们的想法是第一个选项卡中有一个默认按钮,您可以右键单击并编辑或删除 - 编辑将允许您添加或更改按钮的链接 - 添加一些文本(例如谷歌) - 并更改图像。一旦完成更改,应用程序就会将更改保存到按钮。
然后,为了在选项卡窗口中添加另一个按钮,您可以右键单击空白窗口的一部分,然后选择添加新按钮。然后,您可以按照与第一个相同的方式编辑新按钮。
我还希望能够添加新标签,让最终用户重命名,并在需要时删除标签。
我希望任何更改都能自动保存并在程序运行时自动加载。
想法是有一个应用程序可以通过其中的按钮午餐其他应用程序 - 有点像可编程遥控器。
我有限制知识,如果有人知道,我会喜欢这方面的一些工作示例怎么做。
问候
David
How do I write a application that lets the user add tabs and button links.
I want the application to have a max of 15 buttons in each new tab. The idea is that the first tab has one default button in it that you can right click on and edit or delete - the edit will let you add or change the link for the button - add some text (example google) - and change the image. Once the changes have been made the application will save the changed to the button.
Then in order to add another button within the tabs window you would right click on a blank part of the window and select add new button. Then you can edit the new button in the same way as the first.
I would also like to be able to add new tabs and let the end user rename them and also delete a tab if needed.
I would like any changed to be saved automatically and load automatically when the program is run.
The idea is to have a application that can lunch other apps via the buttons within it - a bit like having a programable remote control.
I have limit knowledge and would love some work examples of this if anyone knows how to do it.
Regards
David
这篇关于如何编写允许用户添加选项卡和按钮链接的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!