[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

1813.0. "Problem getting Right X and Y of a window" by BEDTIM::COPPOLA (Lost in the Bitmap) Wed Nov 29 1989 14:34

Hi,

	Since I can't seem to get to DECWindows_Programming Conf.  I'll try
my question here.   The problem is I have a window that I create and it is
displayed at 0,0 which is where I want to start and I resize the height of the
window about in half.  I go get the X and Y by  setting up and calling
XtGetValues.  My problem is the Y value never reflects the new location.  This
is only if I keep X at 0 and do a resize on the very first window I have brought
up.  Once I move it from the edge and do a resize, the X and Y are normal.

Below is a sample of my code.  My question do I need to do something else after 
the first resize?

	Thanks in Advance for your Time and Advice...

		vic...

code sample...

       /*      BLOCK DECLARATIONS      */

   unsigned long        mcc$status=MCC$_NORMAL;                 /* Status of re
   Position             mgmnt_pos_x,
                        mgmnt_pos_y;
   Dimension            mgmnt_dim_width,
                        mgmnt_dim_height;
   Arg                  al[2];
   int                  ac;

        /*      EXECUTABLE STATEMENTS   */

        /* Change X and Y of the Management window if selected */

   if (pml_mgmnt_ptr->em_window_pos_flag == TRUE)
      {
      ac=0
      XtSetArg (al[0], DwtNx, &mgmnt_pos_x);
      ac++;
      XtSetArg (al[1], DwtNy, &mgmnt_pos_y);
      ac++;
      XtGetValues (pml_main_window_id, al, ac);
      pml_customize_globals[MCC$PML_K_EM_X].length = sizeof(mgmnt_pos_x);
      pml_customize_globals[MCC$PML_K_EM_X].value = mgmnt_pos_x;
      pml_customize_globals[MCC$PML_K_EM_Y].length = sizeof(mgmnt_pos_y);
      pml_customize_globals[MCC$PML_K_EM_Y].value = mgmnt_pos_y;
      }
T.RTitleUserPersonal
Name
DateLines