ehanan
asked on
Properties for DataWindow controls
Hello,
I have a datawindow, in which i created dynamic a few button controls
The problem is that I want to bring to top one of the buttons with and the other buttons will be in the back
how cand i send the bringtotop property to that button?
I'm using powerbuilder 7, and in some parts of the manual does not says the bring to top property but in the "Properties for DataWindow controls" says that i can use this property
Does anyone have any idea how to do that?
Thanks, in advance...
I have a datawindow, in which i created dynamic a few button controls
The problem is that I want to bring to top one of the buttons with and the other buttons will be in the back
how cand i send the bringtotop property to that button?
I'm using powerbuilder 7, and in some parts of the manual does not says the bring to top property but in the "Properties for DataWindow controls" says that i can use this property
Does anyone have any idea how to do that?
Thanks, in advance...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
The SetPosition method can be used to alter the front to back order of objects within a datawindow.
dw_1.SetPosition("b_MyButt on", "detail", True) // Move b_MyButton to the front
Pass False as the 3rd argument to send an object to the back.
dw_1.SetPosition("b_MyButt
Pass False as the 3rd argument to send an object to the back.
completely agree with vipulunadkat ...
dynamically change captions by having a single button...
add code using If statements or case...(can help u with this...)
or the other option that he has given...
u can play around with making the buttons visible and invisible as per ur requirements...
lastly what i can suggest is that if u still wanna go in for those many button controls and try the bringtoTop property u need to paste ur code here so i can make my additions to it and give u a solution...
Let me know for more assistance...
Cheers,
Rosh