Positioning the Calendar Window under a button

Hello,
I wanna show that calendar under the button i've pressed. something like here (so like LOVS, they are opened under the button pressed)
i tried with this code, in KEY-LISTVAL trigger for that text item
declare
     pozx number:=get_item_property('btn_data',x_pos)+15;
     pozy number:=get_item_property('btn_data',y_pos)+15;
begin
     --message(get_item_property('btn_data',x_pos));
date_lov.get_date('01-jan-1980',         -- initial date
                  'angajati.data_nasterii',  -- return block.item
                  pozx,              -- window x position
                  pozy,              -- window y position
                  'Data nasterii',    -- window title
                  'OK',            -- ok button label
                  'Cancel',        -- cancel button label
                  TRUE,            -- highlight weekend days
                  FALSE,           -- autoconfirm selection
                  FALSE);          -- autoskip after selection
end;     so i get the xpos and ypos of the button, and i add 15 because it's a square button of 15 px.
however, my calendar window it's wrong displayed.. what i'm doing wrong?
Thanks
Edited by: Roger22 on 28.07.2009 17:57

Hi!
The get_item_property ( 'item', x_pos and y-Pos ) gives you the x_pos / y_pos of the position on the canvas.
The set_window_property ( 'window', x_pos and y_pos ) sets the position on the screen.
That is is a big difference.

Similar Messages

  • Connect macbook pro and imacac shows up in the finder window under shared b

    I have turned on file sharing on both. My imac shows up in the finder window under shared but the macbook won't connect. Is there something else i need to do?

    Same problem. Let me know if you find anything please. Thanks.

  • Where does time machine store content that would be found in the Finder window under "All Images, All Movies, All Documents"? Also, I have many Garageband projects and mp3 files I can't find.

    Where does time machine store content that would be found in the Finder window under "All Images, All Movies, All Documents"? Also, I have many Garageband projects and mp3 files I can't find.

    Easiest way to find time machine files is to open up the folder or application(works for email and iphoto)  they were in - then click on time machine ICON or enter time machine from the time machine menu to go back through the files.

  • The mail window has overlapping buttons/headers

    the mail window has overlapping buttons/headers and there is an email that wont let me delete

    The double arrows do have a blue background.  I have no doubt that I'm in Full Screen mode when they appear.  However, when I click on the double arrows I can view the Mail screen perfectly.  I assume clicking the double arrows exits Full Screen mode.  I have also clicked Exit Full Screen from the menu.  The issue is that my Mail app is very different from what it's typically like.  It now hides the Mail menu bar until I move the pointer to above the screen.  I cannot see any desk top from around the Mail screen and I cannot move the Mail screen at all.  Also, the display of a new mail message; either one created or one opened looks like a something in the Preview app looks like.  There is limited access to mail options and no option to Save as Draft.  Also, there are no expand, minimize, close buttons (green, yellow, and red buttons) on any Mail screen.
    By the way, these issues began after I used Mirror Screen with my Apple TV.
    Thank you for your assistance.
    Ed

  • Position the recording window

    Hi All
    When i start a recording window, i can't get this window to be center on my screen, i always have to move hit to be center on my screen. If i am not doing this, the record window will record off screen about 5 pixs off the screen leaving a black bar on the right.
    Anyone know a place where we can set the default location fr the recording window?

    Hi there
    It's been my experience that the recording window positions to the last place you recorded from. Well, it will if you are using the "Screen Area" type of recording. Other than that, it normally surrounds the application if the type of recording you selected was Application.
    If you are always wanting a specific screen area at a specific size, you could use Windows Notepad to accomplish it. You could open Notepad, then size and place it where you want your recording area to be. Then begin the recording process for Captivate and choose Notepad. Once the Captivate recording window surrounds Notepad you have it set. Just close Notepad at that point.
    There is even a small freeware application you may find useful for this. It's called Sizer. You may visit the Sizer page by clicking here.
    Hopefully this helps you out... Rick
    Click here for Adobe Certified Captivate and RoboHelp HTML Training
    Click here for the SorcerStone Blog
    Click here for RoboHelp and Captivate eBooks

  • How can I make the calendar window smaller?

    How can I make the Calender window smaller?

    Yes. It's at the minimum size via that method, but is much too large.  I like to have it open always and in the previous OS the window was much smaller. Thanks for the suggestion nonetheless.

  • Would trying to manually load NSS Internal PKSS #11 Module create a problem or would nothing happen without a filename in the load window under Security Devices?

    Would clicking the load button while NSS Internal PKSS #11 Module is selected and accepting the pop-up window without filling in any more information create a problem for the Firefox 8 program?

    Quote from: lcwhitlock on 04-April-14, 13:44:09
    Hello darkhawk,
    Thank you for the recommendation.  I somewhat understand what a MS DOS disk is, but I'm not sure how to go about creating one. I've seen where you can use a program, like Rufus, to create a usb one  - but I'm leery about using 3rd-party programs (especially ones I'm not familiar with). I've come across a couple of 'how-to' tuts, but they didn't clarify what files (if any) I would need to include on the disk (for my particular situation). Right now I don't have any blank cds, nor any extra flash/thumb drives - wish I did, but hadn't needed these for years. There has only been one other time where I needed to re-install Windows, but that was over 15 years ago - I did it through BIOS, reformatting my drives, and then reinstalled via the Windows XP disk. Windows 8 is an entirely different breed, which has left me feeling a bit stumped, at times. If there was a way I could perform it (successfully), similar to the first time I did it years ago, I'd give it a try - but at the same time, I'm a bit reluctant, because if it doesn't work, then I'm stuck without any internet access to get further help.
    Ask and ye shall receive. This should be doable in Windows 7 and Windows 8 on another PC. I recommend using a USB Flash drive like in this tutorial, but I'm sure you could use something else.
    If you want, you could also use Hiren's BootCD to make a bootable CD with many options and programs on it (I keep one, just for certain situations) that will allow you to do the same things.
    http://www.hiren.info/pages/bootcd
    Also very useful for sorting out virus's as long as it's downloaded and made on another PC that is virus free......

  • Why sould the line be under my button?

    Hi.... I'm new to java...and I'm trying to implement a TicTacToe game.
    I have the following problem...I've created a JFrame and I distributed on it 9 buttons.
    I'm trying to draw the winning line on to the three winning buttons after they have been disabled...
    I'm testing the first case of wining that is on the first row of this "strange" matrix...but nothing to do. When I draw the line...a piece of it is under the final button :(
    I post here bellow my code. If anyone could help me out I would be greatful.
    Thanks in advance
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class TrisFrame1 extends JFrame implements ActionListener
              JButton a = new JButton();
              JButton b = new JButton();
              JButton c = new JButton();
              JButton d = new JButton();
              JButton e = new JButton();
              JButton f = new JButton();
              JButton g = new JButton();
              JButton h = new JButton();
              JButton i = new JButton();
              static int player=1;
              String sign;
              static switchPlayer Sign = new switchPlayer();
              static TurnofPlayer Player = new TurnofPlayer();
              static winingrules r;
         public TrisFrame1 ()
              super("TrisFrame1");
              setSize(400, 400);
              ExitWindow exit = new ExitWindow();
              JPanel surface = new JPanel();
              GridLayout square = new GridLayout(3,3,20,20);
              surface.setLayout(square);
              getContentPane().add(surface);
              surface.setBackground(Color.blue);
              surface.add(a);
              surface.add(b);
              surface.add(c);
              surface.add(d);
              surface.add(e);
              surface.add(f);
              surface.add(g);
              surface.add(h);
              surface.add(i);
              a.addActionListener(this);
              b.addActionListener(this);
              c.addActionListener(this);
              d.addActionListener(this);
              e.addActionListener(this);
              f.addActionListener(this);
              g.addActionListener(this);
              h.addActionListener(this);
              i.addActionListener(this);
              setContentPane(surface);
              addWindowListener(exit);
              public static void main (String[] arguments)
              TrisFrame1 frame = new TrisFrame1();
              frame.show();
              frame.setVisible(true);
              public void actionPerformed (ActionEvent evt)
                   Object clicked = evt.getSource();
                   JButton genericbutton = new JButton();
                   if (clicked == a)genericbutton=a;
                   else if (clicked == b)genericbutton=b;
                   else if (clicked == c)genericbutton=c;
                   else if (clicked == d)genericbutton=d;
                   else if (clicked == e)genericbutton=e;
                   else if (clicked == f)genericbutton=f;
                   else if (clicked == g)genericbutton=g;
                   else if (clicked == h)genericbutton=h;
                   else if (clicked == i)genericbutton=i;
                   sign=Sign.PlayerSign(player);
                   player=Player.turn(player);
                   genericbutton.setText(sign);
                   genericbutton.setEnabled(false);
                   genericbutton.setBackground(Color.gray);
                   genericbutton.setFont(new Font ("arial", Font.BOLD,40));
                   wins();
         public void wins()
         if (((!a.isEnabled())&&(!b.isEnabled())&&(!c.isEnabled())) && ((a.getText()==b.getText())&&(a.getText()==c.getText())))
              System.out.println ("here I'am");
    Designline();
                   if (((!d.isEnabled())&&(!d.isEnabled())&&(!f.isEnabled())) && ((d.getText()==e.getText())&&(d.getText()==f.getText())))
              System.out.println ("eccomi qui");
                   //Designline();
              // TBC with the controls for the wining cases
         public void Designline()
                        Graphics2D line = (Graphics2D) getGraphics();
                        line.drawLine(50,50,380,100);
              line.dispose();
    class ExitWindow extends WindowAdapter {
         public void windowClosing(WindowEvent e)
              System.exit(0);
    class TurnofPlayer
         int Player1;
         public TurnofPlayer()
         public int turn(int player1)
              if (player1==1)
                   Player1=2;
              else Player1=1;
              return Player1;
    class switchPlayer
         String playingsign;
         public switchPlayer()
         public String PlayerSign(int player1)
              if (player1==1)
                   playingsign="X";
              else playingsign="O";
              return playingsign;

    maybe you should disable the button as soon as the person clicks it.. I think its just a matter of the timing between when you clicked on the button, and it still having focus when you draw the line.

  • LR 4: Where are the Minimize, Window and Close buttons?

    Me: LR4, Win7 Pro.
    Where the heck are the little buttons in the top right corner of the menu bar?

    Hi BvoiL
    I am using LR4 but with Windows 7 but this tip may help.
    Try pressing Ctrl+Alt+F    I had this problem but done a lot of reading and found this answer.
    Please let me know if it works?

  • Suddenly the bottom part of the browser window, under the slide bar, has vanished. I can't see where it says Done, or a website name or all the icons on the right side

    The window just ends right below the slide bar. I tried closing the window and reopening it, even restarting the computer, but it didn't fix it. At first I thought the window was too big, so I tried resizing it, but it didn't work.

    You have out-of-date plugins with known security issues. You need to update them.
    * Macromedia Shockwave for Director Netscape plug-in, version 8.5
    **Very old version. Probably best to uninstall before installing new version. Windows Start > Settings > Control Panel > Add or Remove Programs, click "Adobe Shockwave Player 8.5", click Remove. Then install current version.
    * Next Generation Java Plug-in 1.6.0_21 for Mozilla browsers (new security update released 10-12-2010)
    #'''Check your plugin versions''': http://www.mozilla.com/en-US/plugincheck/
    #*'''Note: plugin check page does not have information on all plugin versions'''
    #'''Update Shockwave for Director'''
    #*NOTE: this is not the same as Shockwave Flash; this installs the Shockwave Player.
    #*Use Firefox to download and SAVE the installer to your hard drive from the link in the article below (Desktop is a good place so you can find it).
    #*When the download is complete, exit Firefox (File > Exit)
    #*locate and double-click in the installer you just downloaded, let the install complete.
    #*Restart Firefox and check your plugins again.
    #*'''<u>Download link and more information</u>''': http://support.mozilla.com/en-US/kb/Using+the+Shockwave+plugin+with+Firefox
    #'''Update Java:'''
    #* Download and update instructions: https://support.mozilla.com/en-US/kb/Using+the+Java+plugin+with+Firefox
    #* Removing old versions: http://www.java.com/en/download/faq/remove_olderversions.xml
    #* After the installation, start Firefox and check your version again.

  • Where is a sites web address found, it mut be entered in the exceptions window under pop-up.

    Tools-Options- pop-up- exceptions. Panel asks for web address. Where is it? Recent Firefox up grade removed the line from the top of the page.

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    In Firefox 4+ you can use one of these to start in <u>[[Safe mode]]</u>:
    *Help > Restart with Add-ons Disabled
    *Hold down the Shift key while double clicking the Firefox desktop shortcut (Windows)

  • How do I stop Firefox from claiming to have sessionrestore errors or opening the wrong session items and/or remember the wrong window size and/or position.

    Since automatically updating to version 25 Firefox is randomly opening recent tabs and windows from the browsing history, and/or randomly positioning the browser window from history.
    Currently using Firefox 25.0.1 on Windows Vista and Windows 7. Problems started immediately after automatic updates to 25.0.0. Problems are most noticeable on the Vista box because it has so much screen geography (the Windows 7 box is a laptop).
    Problems include:
    Firefox may open the correct tabs into a properly sized and positioned window, without problem. (Not a problem, included for completeness since it does, occasionally, work without error).
    Firefox open a single empty tab (about:blank, my Home page). (Listed as a problem because Firefox simply forgot the tab which was open.)
    Firefox may claim it cannot open the correct tabs and pop up about:sessionrestore. Proceeding will open all tabs (usually only one or two for me). This gives the impression Firefox did not actually have a problem. But, then, often, the tab Firefox is having problems restoring is about:blank so I should hope there was no problem!
    Firefox may open randomly selected recent browsing items, without other problems. This gives the impression that Firefox does not properly record recent history for about:sessionrestore. Checking History appears correct; Firefox simply reached back hours, or days, or even weeks, and restored a random session from long ago.
    Any of the above may occur, but the window position and/or size will be randomly selected from another recent history item. This is most noticeable when the position is on the wrong monitor and can be annoying since Firefox simply "disappears" if (as it often is for me) that other monitor is disconnected or powered off.

    If you use cleanup software like CCleaner then check the settings for the Firefox application.<br />
    Also make sure that your anti-virus software doesn't mess with files in the Firefox profile folder.
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    You can check for problems with the sessionstore.js and sessionstore.bak files in the Firefox profile folder that store session data.
    Delete the sessionstore.js file and possible sessionstore-##.js files with a number and sessionstore.bak in the Firefox profile folder.
    *Help > Troubleshooting Information > Profile Directory: Show Folder (Linux: Open Directory; Mac: Show in Finder)
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    *http://kb.mozillazine.org/Multiple_profile_files_created
    Deleting sessionstore.js will cause App Tabs and Tab Groups and open and closed (undo) tabs to get lost and you will have to recreate them (make a note or bookmark them if possible).

  • I updated to 10.7.2 (Lion) and my iCal Calendar window follows me to other Desktops

    No matter which Desktop I go to the Calendar window stays in the same screen position and size.  All of the other programs stay in the Desktop it is initially opened in.  All I can do now is minimize the Calendar so it does not interfer with other open programs.  This is a real pain to deal with.
    This never happened before I upgraded to Lion.
    Andy

    Right click the iCal icon on the dock and select: Options > Assign to none.
    Currently it's set to all desktops.
    Regards,
    Captfred

  • I lost one of my calendars and every time I load the back up, I cloud updates and wipes out the calendar I am trying to restore.

    As long as I stay off the cloud, I can keep my back up calendar. As soon as I open the cloud, the update wipes out the one am trying to recover. I use three-- and the most important one, appointments, somehow went a way. Fortunately I have a recent back up. maddening

    If you synchronize any of your calendars with a server such as iCloud, disable that synchronization. Quit Calendar.
    Triple-click the line below to select it: ~/Library/Calendars Right-click or control-click the highlighted line and select
    Services ▹ Reveal
    from the contextual menu.* A Finder window should open with a folder selected. Enter Time Machine and restore that folder from the snapshot you want.
    Relaunch Calendar and test. Your calendars should be as they were when the snapshot was taken. If you don't sync with a server, stop here. If you do sync some of the calendars with a server, select each one in turn and then select
    File ▹ Export ▹ Export…
    from the menu bar. You'll get ICS files with the filename extension ".ics". Re-enable sync. Usually, all the calendars you just restored will be deleted. That's not a problem. Create a new calendar on the server for each one you exported and want to sync:
    File ▹ New Calendar
    Then import the calendar from the corresponding ICS file by double-clicking it. Follow the prompts to import the new events to the calendar you just created. For calendars that you don't want to sync, just import them again. They'll appear in the calendar list under On My Mac.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard (command-C). In the Finder, select
    Go ▹ Go to Folder...
    from the menu bar, paste into the box that opens (command-V). You won't see what you pasted because a line break is included. Press return.

  • Open URL in a new window by closing the parent window

    Hi Friends,
    Is there any option to open URL in a new window by closing the parent window on a button click?
    Already implemented the logics suggested in /people/mohammed.anzys/blog/2007/06/05/how-to-close-parent-window-in-webdynpro-applications , the thread ' URL in same window '  and the standard component WDR_TEST_EXIT_PLUG .But button is not triggerring any actions .plz help me  ..............
    Regards,
    Radhika

    hi,
    Do the following steps :
    -> Make an Outbound Plug to the Window.
    ->Make the type of Outbound plug to Exit Type.
    ->Add URL of type String as a parameter to the outbound plug of Window.
    ->Do remember to add Component Name in the Properties Tab of View ( othervs Calling Outbound plug of window from view wont b possible ).
    To open a new URL with closing the previous one write this Code in OnAction of Button : ( this Code can be get from Code Wizard too ).
    DATA lo_zexit TYPE REF TO ig_zexit .   <zexit is name of my Component>
    lo_zexit =   wd_this->get_zexit_ctr( ).
      lo_zexit->fire_out_window_plg(
        url =   'http://www.google.com'                            " string
    I hope it helps.
    Thanx.

Maybe you are looking for

  • Update Business Partner via SAP Business One Webservices

    Dear all, We use the SAP Business One Webservices to add/update businesspartners and items. We can add/update items without any problem. We can also add businesspartners without any problem. But when we try to update a businesspartner. We always get

  • How do I connect my Sony HD video camera to work as my webcam on a mac-mini

    I have just purchased a 2.5GHz 4Mb mini-mac.  I am using a Samsung HD TV and want to use a Sony HD video camera as a webcam.  I have mini-display port, HDMI port and thunderbolt port on the mini-mac.  The video camera has mini HDMI port and I have mi

  • Mac Mini crashes and restarts all the time?

    Hi! I was really hoping someone could help me out. I have a mid 2011 Mac Mini which used to work all right, but has been messing up since last summer, restarting, freezing, crashing and doing everything that makes working with pictures (Preview, Ligh

  • Trouble with column width

    Hi, I'm having trouble changing the width of a column in my SQL Report. I went into Report Attributes and clicked on Edit for the column I wanted, and entered a value for width in column attributes section, but it didn't work. I also tried an html ta

  • Determine posting to an asset between two dates

    Hello all, How do you calculate the postings made to an asset between two dates?  I looked at the logical database ADA, but got lost in the source code. For example, if these posting were made to an asset between start & end date, the total I would w