How to hide a rectangle graphic in a canvas ?

Hi all,
As we know we can draw rectangles from the tool pallette on a canvas. And I want to hide this rectangle under condition in my forms application. How can I achieve this ?
Thank you very much indeed.

<p>If your purpose is to have some "framed" text area, then you could find solutions in this article</p>
Francois

Similar Messages

  • How to hide a tabpages in a  tab canvas

    Hi All,
    I am using oracle Apps R12.2 and forms 10g version
    I have Tab canvas in my page and it contain two page.
    My requirement is when the user is "PROC HEAD" means the Tab_page2 is Visible and able to acces.When other user logged means the tab should be grade out.
    I have tried so for is i have written my code in When New form Instance trigger
    And this is my code.
    declare
    tp_id TAB_PAGE;
    v_user_id number;
    begin
    select user_id into v_user_id from fnd_user where user_name='PROC HEAD';
    if fnd_global.user_id= v_user_id then
    tp_id :=FIND_TAB_PAGE('EXPEDITOR');
    SET_TAB_PAGE_PROPERTY(tp_id, visible, property_true);
    else
    SET_TAB_PAGE_PROPERTY(tp_id, visible, property_false);
    end if;
    Can any pls correct me where i went wrong.
    Thanks & Regards
    Srikkanth
    end;

    Please post your solution so others can benefit from your solution!
    Thanks,
    Craig...

  • How to display graphics larger than canvas size?

    How do I display graphics larger than canvas size in Java AWT?
    I tried setting the canvas size() to a value larger than my monitor size, and then adding scroll bars to the canvas, but the scroll bars and the canvas won't go beyond the monitor size in pixels, which is only 800, so the large graphic I try to display gets cut off at the bottom.
    How can I overcome this problem? Has anybody encounter a similar dilemma before?

    import java.awt.*;
    import java.awt.event.*;
    import java.awt.geom.*;
    public class AWTSizing
        public static void main(String[] args)
            LargeCanvas canvas = new LargeCanvas();
            ScrollPane scrollPane = new ScrollPane();
            scrollPane.add(canvas);
            Frame f = new Frame();
            f.addWindowListener(new WindowAdapter()
                public void windowClosing(WindowEvent e)
                    System.exit(0);
            f.add(scrollPane);
            f.setSize(400,400);
            f.setLocation(200,200);
            f.setVisible(true);
    class LargeCanvas extends Canvas
        int w, h;
        final int PAD = 10;
        Rectangle r1, r2, r3;
        Rectangle[] rects;
        boolean firstTime;
        public LargeCanvas()
            w = 360;
            h = 360;
            firstTime = true;
        public void paint(Graphics g)
            super.paint(g);
            Graphics2D g2 = (Graphics2D)g;
            g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                                RenderingHints.VALUE_ANTIALIAS_ON);
            if(firstTime)
                initShapes();
            g2.setPaint(Color.red);
            g2.draw(r1);
            g2.draw(r2);
            g2.draw(r3);
        private void initShapes()
            r1 = new Rectangle(w/4, h/4, w/2, h*3/4);
            r2 = new Rectangle(w/2, h/2, w/2, h/2);
            r3 = new Rectangle(w*5/8, h/6, w*3/5, h*2/3);
            rects = new Rectangle[] { r1, r2, r3 };
            firstTime = false;
            invalidate();
            getScrollPane().validate();
        private ScrollPane getScrollPane()
            ScrollPane scrollPane = null;
            Component c = this;
            while((c = c.getParent()) != null)
                if(c instanceof ScrollPane)
                    scrollPane = (ScrollPane)c;
                    break;
            return scrollPane;
        public Dimension getPreferredSize()
            Dimension d = new Dimension(w, h);
            if(rects == null)                   // before calling initShapes
                return d;
            Rectangle r;
            for(int j = 0; j < rects.length; j++)
                r = rects[j];
                if(r.x + r.width + PAD > w)
                    d.width += r.x + r.width + PAD - w;
                if(r.y + r.height + PAD > h)
                    d.height += r.y + r.height + PAD - h;
            return d;
    }

  • Confused about how to display a rectangle on JFrame

    i'm a little confused about how to display a rectangle on a jframe.
    I know there is a class called Rectangle. is there a way to use it to display a rectangle on a JFrame? i couldn't find a way to do that.
    i found a way to display a rectangle in the internet:
    CODE:
    public class RectangleFrame extends JFrame {
        public RectangleFrame() {
            super("My Rectangle");
            setSize(300,400);
            setLocation(300,300);
            setDefaultCloseOperation(EXIT_ON_CLOSE);
            JButton button = new JButton("Button");
            JPanel panel = new JPanel();
            panel.add(button);
            getContentPane().setLayout(new BorderLayout());
            getContentPane().add(new Rect(), BorderLayout.CENTER);
            getContentPane().add(panel, BorderLayout.SOUTH);       
            setVisible(true);
        public static void main(String[] args) {
            new RectangleFrame();
    public class Rect extends JComponent {
        public void paint(Graphics g) {
            g.drawRect(50,50,200,200);
    }is this the only way to do that? isn't there an easier way? do i have to write this new class Rect i wrote?
    i don't really know how this Rect class i wrote works. could someone explain?
    then another question: can i put a rectangle on a JPanel or do i have to add it directly onto the ContentPane as i did above?
    i hope everything i asked is clear enough.
    thanks for your effort.

    Take a look at the 2D graphics tutorial:
    http://java.sun.com/docs/books/tutorial/2d/index.html

  • How to hide the pricing conditions specified in pricing procedure of sd.

    dear friends,
    my situation is to hide the conditions specified in the pricing procedure. so that it is not viewed by the some users.can you please tell me how to hide the conditions. so some of the persons, who are having authorization to see the conditions , will be able to see the pricing conditions.
    can you please suggest me how to do this.
    regards,
    g.v.shivakkumar

    Authorisation  issues viz. Role Impementations
    Hide Condition Records Line Item & Header Wise from all the transactions QK / So /  P.I. / Enquiry / Invoice etc. for specific user grps. - in CRETATE / AMEND / DISPLAY / REPORTS all
    Only Display the fields
    regards,
    g.v.shivakkumar

  • How to hide some select-option of Logical Database in report?

    How to hide select-option of  Logical Database in report?eg . In Logical Database 'PNP' , my code is 'GET  PERNR' , excute the report , select-screen is displayed . I want to hide some select-options , such as PNPPERNR-LOW .
    Edited by: rongrong wang  on Mar 26, 2008 9:31 AM

    U need to write code in initialization as
    initialization.
    loop at screen.
    if screen-name = 'PNPPERNR-LOW'.
    screen-active = '0'.
    modify screen.
    endif.
    if screen-name = 'PNPPERNR-HIGH'.
    screen-active = '0'.
    modify screen.
    endif.
    endloop.

  • How to hide dynamic parameters values in the URL with Reports 6i

    Hi,
    I want to know a way of hiding the parameters values when asking for a report through the web.
    Now I'm using the Reports 3.0.5.8 with a Cartridge defined in the Oracle Web Application Server 3.0.1.0.1. When you ask for a report with the parameters DESTYPE = cache and DESFORMAT = pdf, it is fully generated and in the Address or Location box of the browser, you can see http://webserver/cache/report.pdf (where cache is the virtual directory defined in the OWAS in which the .pdfs are cached). So, users cant see the Url used to generate the report.
    Im trying to upgrade this configuration to Reports 6i with Cgi in a web server. I generate reports with no problems. The problem I have is I cant find how to hide the parameters values as before. I mean, when I ask for a report, once its generated I can see http://webserver/cgi-bin/rwcgi60.exe?server=ServerName&report=report.rdf&userid=user/pass@connection&destype=cache&desformat=pdf&P1=value1&P2=value2 in the Location box. It allows user to ask for another report changing the values of the parameters. I use these parameters to execute some query written in the Data Model. For example, imagine that the P1 represents the company id, the user (that is supposed to see only data of its company) can change this id, ask for a new report and see data of another company.
    Ive already tried to use the key mapping option, but its not useful to me because the parameters values are dynamic and its impossible to define different entries in the cgicmd.dat for each possible value. The option of loading the parameter form before running a report is not useful to me either, because there exists specific screens for this purpose.
    Is there any solution?
    Thank you.
    Marma Bonfiglio.

    Hi Rakesh,
      I am using BI  7.0
    The last option I have is 'Hide' for 'Calculate single values as' .
    I have the below options  for 'Calculate single values as'
    1. Normalise  according to Next group  level  Resul.
    2. Normalize according to  Overall Result
    3. Rank number
    4.Olympic Rank Number
    5.Maximum
    6. Minimum
    7.Counter for all detailed values
    8.Counter for all detailed values that are non zero
    9.Moving average
    10.Moving average  That is  Not zero ,null or Error
    11. Hide.
    So could you please tell me where i can find 'suppress result' option for the keyfigure .
    Many thanks

  • How to hide a list from SharePoint tree view pro grammatically.

    Hi,
    I have enabled tree view for a SharePoint 2013 site pro grammatically. 
    I want hide some specific lists from that tree view like Documents, Workflow, Task List, Calender
    Lists which are created default when we create a site.
    How could i do that?

    I know how to hide Quick launch and Enable Tree view with properties in C#.
    My question is 
    hide some specific lists from that tree view like Documents,
    Workflow, Task List, Calender
    Lists which are created default when we create a site.

  • Question on how to Hide the User Name, Password, and Domain fields in the MDT Wizard

    MDT 2012 U1
    Deploying Windows 7 via Offline Media (ISO) to MS Virtual PC's
    I am looking on how to Hide the User Name, Password, and Domain fields which are prepopulated in the MDT wizard via the CS.ini (Not so concerned about the Domain field as I am User Name and Password)
    We do need the Computer Name and OU fields to be seen, so skipping the wizard is not a option
    The client just does not want these fields to be seen by the end users, they dont want them to even know the account name used for adding the machine to the domain, of course the password is not displayed but it must not be displayed either.
    But since we use the fields they must still  be fuctional just not seen.
    Thanks.....
    If this post is helpful please click "Mark for answer", thanks! Kind regards

    You shouldn't have to edit DeployWiz_Definition_ENU.xml. You should only need to add "SkipAdminPassword=YES" to the CS.ini file and your authentication information.
    Example:
    [Settings]
    Priority=Default
    Properties=MyCustomProperty
    [Default]
    OSInstall=Y
    SkipCapture=NO
    SkipAdminPassword=YES
    UserID=<MyUserID>
    UserPassword=<MyPassword>
    UserDomain=<MyDomain.com>
    SkipProductKey=NO
    SkipComputerBackup=YES
    SkipBitLocker=NO
    -Nick O.
    Nick,
    SkipAdminPassword=YES is for:
    You can skip the Administrator Password wizard page by using this property in the
    customsettings.ini.
    I am hidding the Username/Password/and domain field in the computer name Wizard pane which is read from the cs.iniDomainAdmin=xxxxx
    DomainAdminPassword=xxxxx
    DomainAdminDomain=xxxxxx
    JoinDomain=xxxxxx
    If this post is helpful please click "Mark for answer", thanks! Kind regards

  • How to hide only pause button on toolbar in run time

    hello,
    I had hide all the buttons like run, run continuous, abort vi and others by navigating to VI Properties and unchecking the corresponding options.
    when i run the vi, all becomes hide except pause button and i didn't find any option for hiding it manually as well as programatically.
    can any one tell me how to hide pause button. i have an urgent requirement for same.
    Thanks & Regards,
    Samriddh Sarbalhi
    Solved!
    Go to Solution.

    wprice wrote:
    I just found that the option called "Show Toolbar When Running" is located under VI Properties > Windows Appearance > Customize. I disabled it and it worked. Thanks!
    So, the option I mentioned is still available, but only at a different place.
    I was shocked on seeing your earlier reply, "There is no such option in LabVIEW 9.0 or higher.". 
    - Partha
    LabVIEW - Wires that catch bugs!

  • How to hide Compounding object in report

    Hi friends
    We want to display region in our reports , But when I execute the query region is coming along with county (eg: US/TX , US/CA etc..) ...this is because of country is a compunding object of region...Can any body let me know how to hide country ...We just want to show TX,CA etc..
    regards

    Please search...this has been answered many times here.

  • How to hide Bottom Line in Report ?

    Hi everyone,
    We are working on Reports 11gr2 64-bit.
    In every report, when text is completed on a page, a horizonal line (i.e. bottom line) at the end of the every page is shown and printed unnecessarily.
    But creates problem in printed stationary, specially in Cheque-printing.
    Kindly advise me how to hide this bottom-line, specially in printing.
    Thanks.
    Dev.
    Edited by: ocpdev on Apr 5, 2013 6:29 PM

    HI
    Is these reports are developed on 11g or migrated from earlier version.
    Anyhow, to test it, - create a report from scratch on 11g and run it, Also check the Footer for any Lines on it.
    I hope you can identify the issue by redoing the thing for testing
    Best of luck
    ocpdev wrote:
    Hi everyone,
    We are working on Reports 11gr2 64-bit.
    In every report, when text is completed on a page, a horizonal line (i.e. bottom line) at the end of the every page is shown and printed unnecessarily.
    But creates problem in printed stationary, specially in Cheque-printing.
    Kindly advise me how to hide this bottom-line, specially in printing.
    Thanks.
    Dev.
    Edited by: ocpdev on Apr 5, 2013 6:29 PM

  • How Can I Fix The Graphics Issue...?

    After having my computer for a few years, it started getting an artifact around the mouse, and when it did that, everything was frozen, key commands didn't work, and I would have to manually shut it down.
    I went to the Apple store, and they couldn't get it to boot, even with their external drive. The guy at the Apple store took my computer into the back, and a few minutes later, brought it out. He said he had gotten it to boot, without their external drive, but wouldn't tell me how. He said there was a problem with my video card. He said $400 to fix it.
    Not having the money, I left. A friend told me how to safe boot the computer, and now it will turn on, despite the artifacts and graphics problems. Why didn't the guy at the store tell me this? It's obviously the only way he could have booted it. He wanted to charge me $50 to back up my data, when I could do it myself under the safe boot.
    The thing is, when using safe boot, I have no audio or video functionality- the camera doesn't work, the speakers don't work, and the disc drive doesn't work. I've read up on this, and it's an issue for a lot of macs, from about the time I bought mine. They say there was too much glue used somewhere in the computer (2 or 3 little chips with too much glue or something), and over time the glue/ adhesive gets too hot, and spreads to other areas and ruins them (ie. my graphics card). That's my simplified understanding of the issue, anyway.
    Why won't Apple replace it for me? They won't let me trade it in, because it won't boot right, but this is an issue they were aware of at some point. I spent a lot of money on this laptop and it's really nothing more than a digital typewriter now.
    Does anyone know how I can fix the graphics issue? Aside from shelling out the money I don't have for something that's really Apple's fault? It'd be really nice to be able to, I don't know, watch things and listen to things. That was the whole reason I got this thing.
    Thanks for any ideas, feedback, sympathy, empathy or other comments.
    <Edited by Moderator>

    Ok, you are right, maybe I don't know it for a fact . . . but from all the things I read in various forums, there was a batch (or something similar) of macs (the exact kind I have) that did have too much glue on some parts, and it caused all sorts of problems for different people, most of those problems being with the graphics card. Apparently the excess glue overheats and leaks out of where it's supposed to stay, and whatever it has the misfortune of getting on goes to pot.
    I got very brave, thinking my computer was shot- I opened it, and there was, indeed, crusty glue coming out from under some ... things ... three square chip like things ... and it had seeped onto the edges my graphics card. Having seen the inside of other laptops, I know it was not supposed to look like that no matter how old it is.
    This whole issue happened just a few months after my (overpriced, unused) AppleCare expired. Irony?
    I did backup all my data and files (no thanks to the Apple people; and on safe boot the disc drive won't work, so I had to borrow my friend's external hard drive for backing up), and did a clean install with the original discs. It was a huge hassle, and when it was finally done, I booted my computer normally. It worked for about 10 minutes before it got artifacts all over and froze, at which point I had to force shut it down. I've tried the clean reinstall a few times, but the problem (I think) is that the glue inside already did the damage, and my graphics card is shot. So, I've been running it on safe boot for months. No music. No video. No disc drive. OH- and the best part- on safe boot, the airport won't work. I can't use wi-fi, and I can't take my laptop anywhere because I'm tethered to a modem. It's the worst thing ever. All of it. It's horribly depressing.
    I'm just really frustrated and irritated that this happened, and Apple won't do anything. I do realize they don't HAVE to do anything- buyer beware and whatnot- BUT as a reputable company they should at least let me trade in with the discount or whatever. I didn't have to choose Mac, it was the most expensive computer I looked at- but it has so many awesome functions and things . . . that I can't even use . . .
    As a poor college student I don't have the option to get a new computer or have Apple replace any parts in this one, so I just kind of feel like Apple screwed me over. Their fault? Maybe not. Their product? Yes, so they should want to keep me as a future customer. At least I think so.
    I guess this isn't quite a question. But I would love more feedback, ideas, anything. Has anyone else had this problem? Can I replace my own video card? Will Apple do anything at all? I love macs but I might never get another one, since this could happen again.
    And- unrelated- who changed the title of my post, and how, and why?

  • I have an AirPort Express, iPhone 5, and MacBook (late 2010). How do I see the graphical overview of my network?

    I have an AirPort Express, iPhone 5, and MacBook (late 2010). How do I see the graphical overview of my network? (I can't seem to find a way to see it).
    My computer is acting....well, strange.  I can't put my finger on it but it doesn't seem right.  Menus look skewed.  Some applications look like they're trying to disguise themselves as apple (no consistant window formats).  Airplay turns on and off on my devices on it's own.  And some locked system preference seem to unlock themselves, or won't even grey-out after I lock them. 
    I have changed my password many times but the issue keeps coming back.  I feel like I'm going crazy - but I know that something just isn't right...maybe someone's been hacking me? (I have no idea why...) 
    Anyway, maybe I could have stemmed from an improper setup of my wireless network.
    Any thoughts?
    Also, right now, when I just signed into apple communities....
         I have an iCloud email address that is accociated with my 1 and ONLY Apple ID...
         It seems to have been working but...
         When I loged in here it only saw my:
                                  OLD MacBookPro
                                  3 Old iPods
                                  My new MacMini with OS X Sever (Server is currently turned off)
         Could my Apple ID be confusing my MacBook (which I'm currently using) as an old iPod or my old MacBookPro?
         I doesn't even see my iPad (1st generation), or my iPhone 5
         Also, the Mac App store is giving me the option to download Mountain Lion??? I already have version 10.8.3...
    Can anyone perform an analysis on my account and computer?  I have been to the Apple Store 6 seperate time and the problem was not resolved (after 6 COMPLETE hard drive wipes).
    PLEASE HELP!

    i guess you could put the aiport utility app on your iphone, click on the aiport express there, it will show you how many devices are connected to it and the mac addresses of those devices.

  • How to hide remote IP address in header for roaming users

    Sun Java(tm) System Messaging Server 7.3-11.01 64bit (built Sep 1 2009)
    libimta.so 7.3-11.01 64bit (built 19:54:45, Sep 1 2009)
    Using /opt/sun/comms/messaging64/config/imta.cnf (compiled)
    Hello everyone,
    We have a new messaging server and have been struggling in our effort to figure out how to hide the remote IP address of users who send email from a remote location. When a roaming user sends out an email from a remote location using SMTP AUTH to authenticate, the messaging server includes the remote ISP's dynamic IP address in the header of the email, which in turn results in some recipient mail servers blocking the mail message as spam. What we want to do is have messaging server rewrite or remove the roaming user's dynamic email address so the header does not reflect a user working remotely. The net effect would be the header not reflecting any external address and the messaging appearing to have originated internally.
    Any assistance on this would be greatly appreciated. Thanks in advance.

    MarketData.com wrote:
    We have a new messaging server and have been struggling in our effort to figure out how to hide the remote IP address of users who send email from a remote location. When a roaming user sends out an email from a remote location using SMTP AUTH to authenticate, the messaging server includes the remote ISP's dynamic IP address in the header of the email, which in turn results in some recipient mail servers blocking the mail message as spam.How often is this occurring (messages being blocked as "spam" due to the content of an existing Received header)?
    What spam software is being used that blocks these messages?
    Very large organisations/ISP's use Sun Messaging Server and this is the first time I have heard of this occurring.
    What we want to do is have messaging server rewrite or remove the roaming user's dynamic email address so the header does not reflect a user working remotely. The net effect would be the header not reflecting any external address and the messaging appearing to have originated internally.Removing the IP address information is going to be extremely difficult. The standards are quite clear that the Received: header should include the IP address information.
    RFC 2821 (SMTP), Section 4.4 Trace Information:
       When an SMTP server receives a message for delivery or further
       processing, it MUST insert trace ("time stamp" or "Received")
       information at the beginning of the message content, as discussed in
       section 4.1.1.4.
       This line MUST be structured as follows:
       -  The FROM field, which MUST be supplied in an SMTP environment,
          SHOULD contain both (1) the name of the source host as presented
          in the EHLO command and (2) an address literal containing the IP
          address of the source, determined from the TCP connection.Regards,
    Shane.

Maybe you are looking for

  • Program error message when trying to open photoshop cc

    I downloaded photoshop cc when I had snow leopard (10.6.8). It opened at first but subsequently when I tried to open it I get a program error message. I uninstalled and reinstalled while I still had snow leopard and it still wouldn't open. Now I  hav

  • Safari keeps crashing/re-loading when using hotmail to compose messages

    I finally convinced my husband... after years of begging to buy me a new Mac and switch from using a PC. Now that I have transferred all our data over to our new iMac (which was purchased on 4/2/10--so it is a very new) and we are ready to make our i

  • MacBook Pro w/RD: Strange whining noise!!!

    My Mac recently got serviced at an Apple Store - and there seems to be a problem. When I power it on, and while I am using it, there seems to be a strange whining noise coming from the upper-right hand side (when looking down at the keyboard). Near t

  • EEM and TcL Script to Disable Inactive Ports

    I've browsed around to the other  support strings to make sure I didn't miss anything, but I can't seem to  get this to work.  I have the latest sl_suspend_ports.tcl and  tm_suspend_ports.tcl created by Joseph Clarke from strings that verified they w

  • Command line with templet?  Wan't a "Job action" to upload to Youtube.

    I'm looking for a automated way to upload to Youtube. We now have job actions in compressor that will do this but it's not stored in a "droplet". Is there a way from the command line to do this? I'm hoping to create a watch folder that will trip a sc