Properties for DataWindow controls

Posted on 2005-04-05
Last Modified: 2013-12-26

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...
Question by:ehanan
    LVL 1

    Accepted Solution

    Instead of keeping one button on other button why dont you keep a single button and dynamically change caption of the button as required.

    Still if you want to keep two button one above the other use visible property and make only one visible at a time. I hope this will solve your problem.
    LVL 18

    Expert Comment


    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...

    LVL 1

    Expert Comment

    The SetPosition method can be used to alter the front to back order of objects within a datawindow.

    dw_1.SetPosition("b_MyButton", "detail", True)  // Move b_MyButton to the front

    Pass False as the 3rd argument to send an object to the back.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Suggested Solutions

    Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deletiā€¦
    Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
    This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
    The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now