Moving Modal Panels without Title Bars

We have custom modal dialog boxes without Title Bars that we want to be able to move around the display by dragging and dropping in the usual way but by left clicking on the panel background rather than the title bar.
Programmatically I appear to have to re-position the front panel and all of the display/control elements on that panel fo every move step, is this right or is there an easier way?
Does anyone have any thoughts?
Regards
Steve
There are 10 types of people in the world that understand binary, those that do and those that don't.

Hi Chris,
you're answer came close, I modified it a bit to be more accurate. The things I've done are:
move the location reading into the event structure (it's better correlated, in the time-out you had a lag of 10 ms.)
set the timeout to -1 when the mouse is inside the pane (mouse-enter and mouse-leave events)
Then I'd thought wouldn't it be nice if this code can be a sub-vi called on a mouse-down event?
That worked BUT in the subvi there are no events generated on the pane class, althought dynamic registration worked I can't seem to trigger events...
So the sub-vi works but only because of the time-out case....
Sorry but i can't add attachments
Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas
LabVIEW, programming like it should be!

Similar Messages

  • How to add a button on a panel's title bar?

    Hi,
    How can I add a button to a panel's title bar? Buttons that
    are simply added to a panel's title bar become invisible.
    -Altu

    One way is to put your button component oustide your Panel
    tag in your MXML. The set the x/y coordinates for the button so it
    is on the Panel.
    <mx:Panel x="20" y="168" width="250" height="118"
    layout="absolute"/>
    <mx:Button x="73" y="173" label="Button"/>

  • Print JFrame without title bar and border

    I am trying to print out a JFrame which contains two JPanels. The following code is part of my implementation of Printable which prints the entire JFrame including the title bar and border. I've considered implementing Printable in the JPanel classes but then I don't know how I would get everything on one page as a single image. Is there some way to just print the contentPane of the JFrame?
         public int print(Graphics g, PageFormat pf, int pi)
              throws PrinterException {
              if (pi >= 1) {
                   return Printable.NO_SUCH_PAGE;
              Graphics2D g2 = (Graphics2D) g;
              double scaleX = pf.getImageableWidth()/getWidth();
              double scaleY = pf.getImageableHeight()/getHeight();
              double scale = 1;
              g2.translate((int) pf.getImageableX(), (int) pf.getImageableY());
              if (scaleX < 1 || scaleY < 1) {
                   scale = scaleX < scaleY ? scaleX : scaleY;
                   g2.scale(scale,scale);
              printAll(g2);
              return Printable.PAGE_EXISTS;
         }                    

    Thanks.
    I can get the Jframe without the title bar and I can get it to drag on the desktop with your suggestions. I still need it to have rounded edges.

  • How to screencapture CONTENTS of a window, without title bar?

    I've been trying to find a solution to doing a screen capture but NOT the window title bar, just the CONTENTS of the window. For example, in Photoshop, I only want the image IN the window, not the bits with the 3 coloured blobs in the upper left of all windows and the document title
    All the references I've foiund talk about capturing the wndow, but no-one talks about the contents of the window.
    Am I trying to invent a wheel here?
    Any advice gratefully received.

    Are you asking about screenshots in general? You have three choices: the entire Mac's screen, an entire window including the title bar, or a selection created by dragging a selection rectangle.
    http://support.apple.com/kb/PH11229
    To take a screenshot for posting on this site hold ⌘ Shift 4 to create a selection crosshair. Click and hold while you drag the crosshair over the area you wish to capture and then release the mouse button. You will hear a "camera shutter" sound. This will deposit a screenshot on your Desktop.
    If you can't find it on your Desktop look in your Documents or Downloads folder.
    When you post your response, click the "camera" icon above the text field.
    This will display a dialog box which enables you to choose the screenshot file (remember it's on your Desktop) and click the Insert Image button.
    ⌘ Shift 4 and then pressing the space bar captures the frontmost window.
    ⌘ Shift 3 captures the entire screen.
    Drag the screenshot to the Trash after you post your reply.

  • Displaying a Window on MSWin2000 without title bar

    I need a small Java application which can display some text, effectively on the Windows desktop. I can't see it being possible to dynamically change the graphic which is used as wallpaper to include my text, so I was wondering if it is possible to create a window without borders, background or control bar (including the close/maximise/iconise buttons)? All I want is the actual text!
    Cheers
    Andy

    try this sample code
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class WaitingDialog extends JWindow implements MouseMotionListener{
    String text="Please waiting...";
    Image bg;
    public WaitingDialog() {
    bg=Toolkit.getDefaultToolkit().getImage("bg.gif");
         MediaTracker m = new MediaTracker(this);
    m.addImage(bg, 0);
    try { m.waitForAll();}
    catch (InterruptedException exec){}
    setSize(200,60);
    setLocation(300,260);
    public void paint(Graphics g){
    // g.setColor(Color.blue);
    g.drawImage(bg,0,0,this.getWidth(),this.getHeight(),this);
    g.setFont(new Font("Dialog",Font.HANGING_BASELINE,13));
    g.setColor(new Color(243,243,243));
    g.drawString(text,50,30);
    public void setText(String _str){
    text=_str;
    repaint();
    public void repaint(Graphics g){
    super.paint(g);
    public void mouseDragged(MouseEvent me){
    setLocation(me.getPoint());
    text="Don't drag me.....";
    repaint();
    public void mouseMoved(MouseEvent me1){
    //don't care
    }

  • Panel menu title bars disappear

    I have a long standing problem with the panel menus top and scroll bars disappearing. This happened in CS5 and still occurs in CS6 for me. I use a Mac Pro hexacore with three monitors (two video cards). It occurs after placing a document or switching from another app. Resetting prefs does not help. The work around is to reset the workspace or hit the tab key twice to redraw the palettes or click on the finder and back on an ID window. I leave lots of panels open on the right secondary screen with the main interface on the primary screen and misc. on the left screen. No issues like this in other apps.
    Any thoughts?
    Message was edited for clarity

    I would try restoring your InDesign preferences. This posting tells you how to do that:
    http://pfl.com/trb

  • How can a window show without title bar?

    I want show a window the title(the blue one with maximum, minimum button), how should do? Use JFrame or JDialog?

    Hi,
    Check out this thread. This discusses the option to show window with no titlebar.
    Hope this helps.
    Regards,
    Roopasri Vittal
    Developer Technical Support
    Sun Microsystems
    http://sun.com/developers/support

  • A question about JDialog Title bar

    Dear All...
    I'm using Netbeans 6.0.1 IDE it looks great...
    but suddenly i failed to create a JDialog without title bar (or without Frame Border - that forder which contains the image icon, form title, minimize button, maximize button and close button)
    i want a simple dialog box without frame border (or title bar) is it possible?????????
    and if it is possible can any one say how?
    thank you...
    Amanj MM

    Well, according to the api docs you should try
    java.awt.Dialog.setUndecorated(true)

  • Custom Title in PDA Front Panel Title Bar

    Hi,
    I would like to customize the title in the front panel title bar of my PDA application after the application has loaded. Targeting Windows XP this can be done by using Property: Front Panel Window: Title, which is not supported by the PDA module (8.5).
    Does anybody know of any workaround?
    Thanks,
    Volker

    Hi Volker,
    I'm
    sorry for any inconvenience this has caused.  As you're probably aware,
    architecting PDA applications is considerably different from architecting
    Windows XP apps.  PDAs have very limited resources, and are not capable of
    supporting the LabVIEW runtime engine, so the PDA module must "cut the
    fat" by compiling the VI to native PDA code and by eliminating any
    unnecessary features.  There may be other reasons that that feature has
    not been implemented that I am unaware of, or it may simply be that R&D has
    not made it a priority.  In either case, filing a product suggestion is
    the best way to draw attention to it.
    Also, FYI, the LabVIEW Help keeps a current list of supported properties and methods:
    Supported Properties (PDA Module, Touch Panel Module)
    http://zone.ni.com/reference/en-XX/help/370642E-01​/lvpdatpchelp/pda_properties/
    Supported Methods (PDA Module, Touch Panel Module)
    http://zone.ni.com/reference/en-XX/help/371944B-01​/lvpdatpchelp/pda_methods/
    Eric V
    National Instruments
    Applications Engineer
    Certified LabVIEW Associate Developer
    "I'm a Ramblin' Wreck from Georgia Tech and a helluva (NI Applications) Engineer!"

  • Windows moving spontaneously to the screen bottom - only title bar visible

    I have this odd behavior on my MBP after installing Lion.  I'll be replying to a message in Mail or moving a window in finder ... and suddenly the window disappears.  Sometimes I find it down at the bottom left of the screen, with only the title bar showing.  Other times, it will "walk" to the bottom of the screen on its own ... a "stutter step at a time," while I try in vain to stop it.
    In Mail, this will tend to happen if I start typing in the reply before the Genie has openened the message all the way.  In the Finder, it seems to happen if I move a window too quickly to the edge of a screen or across to my second monitor.
    It's slightly maddening, and a real waste of time as I watch helplessly as windows march their way to the bottom of the screen.  Any help is much appreciated.

    Hmmm ... Replying to my own message.
    After booting into safe mode, and seeing no problem, I began adding back my login items one at a time.
    It appears that the issues is with MenuEverywhere and 10.7 or 10.7.1.  Disable ME and all is well.
    I've opened a ticket with Binary Bakery.

  • Getting rid or hide of the title bar without using jwidow

    hi everyone,
    is there any way to get rid or hide of the title bar in a Jframe without using JWindow because this one didn't conserve all the abilities a JFrame(listeners)...
    thanks in advance

    It is setUndecorated(true), but you'll need version 1.4 to use it. If you don't have it, then you use JWindow...
    http://java.sun.com/j2se/1.4/docs/api/javax/swing/JFrame.html

  • Mac projector fullscreen without the title bar?

    Is that possible? I wrote a class to show my content full screen, but still get the title bar at the top when I open it on a mac.
    Can that be done?
    Thanks a lot!
    Here is the AS I have in my class:
    package com.viscira.utils.fullscreen
         import flash.display.MovieClip;
         import flash.display.StageDisplayState;
         import flash.display.Stage;
         import flash.display.StageScaleMode;
         public class FullScreen extends MovieClip
              public function FullScreen():void
              public function goFS():void
                   stage.displayState = StageDisplayState.FULL_SCREEN;
                   stage.scaleMode = StageScaleMode.NO_SCALE;

    JFrame frame=new JFrame();
    frame.setUndecorated(true);
    ...but then you get no titlebar AND no border
    so you'll have to add your own border if you want one.

  • How do I remove the title bar from a Palm PDA front panel?

    On several PDA screens, I need all the real esate I can get. The title bar chews up a lot of it.  Is there any way, in the vi settings or programmatically, that I can remove the title bar?
    I've already tried the obvious step of unchecking "window has a title bar" in the window appearance catagory of the vi properties.  No apparent effect is seen.

    Hello,
    It sounds like you are referring to the GUI actually on your Palm devices.  I believe on Palm devices all applications have a title bar, and there isn't a way to get rid of it.  My guess is that perhaps this is a feature you can enable/disable as a Palm OS setting, or may simply be the way the Palm has defined its user interface.  If you have your Palm devices handy, check out the display settings to see any has an option to remove the title bars in general.  If you find out either way, definitely repost so the community can find the answer here as well!
    Thank you,
    Best Regards,
    JLS
    Best,
    JLS
    Sixclear

  • How do I get TITLE BAR ONLY to display for a window (without minimizing the whole window)?

    I want ONLY the title bar to show, then resize to normal then shrink when I ask it to.
    JIM

    Here is an extension that you can control which toolbars show in '''Full Screen''' mode ("'''F11'''), and in what he calls '''zombie mode''' which I would call '''Full Window''' mode ("'''Shift+F11'''")
    This is with Menus showing.
    The title bar will show in zombie mode, not in Full Screen mode ("F11")
    The change that I make in the options myself is that the tabs bar always shows
    I like to see the title bar normally but in either of those two with the tbs bar displayed, I can hover over the active tab to see what the title actually is.v
    KrickelKrackel :: Autohide for Firefox
    :http://www.krickelkrackel.de/autohide/.
    Requires secure server [http://kb.mozillazine.org/Unable_to_install_themes_or_extensions_-_Firefox#Unsecured_updating override], well worth the extra effort to install.
    More information on my page (and alternatives, this is what I want and use)
    :http://dmcritchie.mvps.org/firefox/firefox.htm#autohide
    I display all tabs on the tabs bar such that they do not roll off or scroll across, and I have my tab borders color coded.
    * [https://addons.mozilla.org/en-US/firefox/addon/stylish/ Stylish :: Add-ons for Firefox]
    * [http://userstyles.org/styles/24728/ Tab Color Underscoring active/read/unread (Fx3.6 ) - Themes and Skins for Browser]
    * [http://userstyles.org/styles/9043/ Tabs Bar Minimal Size - Themes and Skins for Browser]
    You can make '''Firefox 7.0.1''' look like Firefox 3.6.*, see numbered '''items 1-10''' in the following topic [http://dmcritchie.mvps.org/firefox/firefox-problems.htm#fx4interface Fix Firefox 4.0 toolbar user interface, problems (Make Firefox 4.0 thru 8.0, look like 3.6)]. ''Whether or not you make changes, you should be aware of what has changed and what you have to do to use changed or missing features.''
    * http://dmcritchie.mvps.org/firefox/firefox-problems.htm#fx4interface
    <p>There is a lot more beyond those first 10 steps listed, if you want to make Firefox more functional.</p>
    <p><small>Please mark "Solved" one answer that will best help others with a similar problem -- hope this was it.</small></p>

  • Page personalization without page title bar

    Hello,
    we have removed our page title bar in order to save space.
    Is there any way to still personalize a page, e.g. through a direct URL to the personalization of a given page, or do I have to enable the page title bar again?

    I imagine it might be possible if you...
    1. Take the relevant code from the Page Title Bar iView (which does not have the source code - I will leave it up to you how you want to "get" the source - not sure of SAP's stance on decompiling).
    2. Then create a java iView with the relevant code in it that will perform the personalize functionality. Add a link in the page to launch the personalize function. This link will launch the "personalize" page/code (you will see this in the JAR). You can heavily leverage the existing code. FYI, the iView utilizes the abstract portal component instead of a JSP page. If you are not used to using these, it may be a little confusing at first.
    3. Add this iView to a page; then save the page as a template. Then use the template for all of your pages.
    It might take a some effort to make it work with the page. I just don't know. In the default way it works, the page title bar iview is outside the page that it relates to. The option I am suggesting, the iview is within the page.
    I haven't done this, but I have created my own page title bar iview so I could add an additional hyperlink in it. When I added it to the framework page, the back and forward links would not enable/work unless I added it above the already-existing page titlebar iView (in the layout), or removed the already-existing iView.  I did not end up using the modified iView, so I never took the time to figure out why.
    Now that I think about this, the above option would probably "push" down your content visually anyway(thus you lose space) unless you move it to Dynamic Navigation instead of the page template, so it may be better just to add back the original iview to the framework page.

Maybe you are looking for

  • Pension payment India Payroll

    Dear Gurus, When we change the status as retiree and we need to pay pension why cant we pay through IT0008 and need to pay through IT0014/15. Also in case of death of the employee pension needs to be paid to nominee.Now where do we maintain nominee b

  • How to Get Compact View in Calendar Widget?

    When I added the stock iOS Calender widget to Notification Center it showed the compact view of all of my events for the day. Now it shows the current event with a red line going across the screen that displays the current time relative to the event'

  • Opening Folders in Portal Launches Content in Same Window...

    Hi All, I currently have some reports in my Portal which are of the following format: Role Workset Homepage > Folder 1 Report a Report b > Folder 2 Report Y Report Z When a user clicks on the arrow next to the workset, >, it drills down correctly and

  • Unable to decode and import the selected wav/mp3 file

    I am trying to import mp3's into a Captivate 3 presentation but keep getting this error "Unable to decode and import the selected wav/mp3 file." I am using the same mp3 files that I have used many times with projects in Cap1 and Cap2. I have converte

  • Removed Podcast, Failing to Re Sumbit, Tried changeing name, Removed Podcast, Failing to Re Sumbit, Tried changeing name

    I submitted a podcast a few weeks ago, but the title was wrong and I wanted to change some other things. Couldn't figure out how to do it. Emailing apple got no response. Then asked for podcast to be taken down so i could resubmit. Podcast was remove