运行时按钮的位置 [英] button location at run time

查看:64
本文介绍了运行时按钮的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!

我有一个包含十个按钮的应用程序

并且它们的可见性默认情况下为false

当user1加载表单时可以访问三个按钮

并且用户2具有五个按钮访问权限

user3具有一个按钮访问权限

user4具有所有按钮访问权限

我设置了他们对用户的可见性

但是这里的问题是我想将每个用户的按钮位置设置到屏幕中间

hi to all!

i have an application consist of ten buttons

and their visibility is false by default

when form load by user1 has access for three buttons

and user 2 has five buttons access

user3 has one button access

user4 has all button access

i set their visibility regarding user

but the problem here is i want to set location of buttons for each user to middle of screen

推荐答案

所以,您遍历它们并设置它们的位置.遍历所有按钮,并一次放置一个按钮(如果它们可见).你被困在哪里?
So, you iterate over them and set their position. Iterate over all your buttons and position them one at a time, if they are visible. Where are you stuck ?


这篇关于运行时按钮的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆