[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

3618.0. "Can I move Login dialog box ?" by TKTV20::SATOH () Fri Nov 09 1990 01:37

	I have a question.

	Our customer changed Login Background, and he wants to move 
	Login Dialog Box to suitable position.

	I have found DECW$SYSTEM_DEFAULTS:JDECW$LOGIN.DAT and tried to
	change it, but I cannot.

	Please let me know how to move the position of Login dialog box,
	if any.

	Thanks in advance,
					Chiemi Satoh  /TSC/CSC/CS/Japan
T.RTitleUserPersonal
Name
DateLines
3618.1Do it from program control...can you say hack ?WIDGIT::WESTSCARY : A programmer with a screwdriver.Fri Nov 09 1990 02:438
  I wrote a logo program that went searching for the prompter box and when
found...just moved it to where I wanted it.

  You could probably do the same thing.

					-=> Jim <=-

3618.2Drag it with WINMGRVINO::MCARLETONReality; what a concept!Fri Nov 09 1990 13:519
    
    You can also start a window manager from the SYSTEM account and just
    drag the login box where you need it.  It will not come back that
    on the next login though.
    
    $ set display/create/node=0/trans=local
    $ run sys$system:decw$winmgr
    
    						MJC
3618.3UFP::MURPHYRick - Washington URCSat Nov 10 1990 22:074
    ufp::sys$public:logo.c and logo.bit. You'll want to use your own
    bitmap, I suspect.. this program finds the login box and moves it to
    the bottom of the screen. Hack, as mentioned earlier - but it works.
    	-Rick
3618.4Thank you !!!EWBV12::SATOHTue Nov 13 1990 22:5355
	I tried your LOGO program and now it works well.

	I modified the program as follows, because the XFetchName routine
	returns no name on VMS V5.3-1 (Japanese-version).
	I suspect that the name of the login dialog box changed before.
 

							Chiemi Satoh
			.
			.
			.
static int MoveLoginWindow(display, rootWindow)
   Display *display;
   Window rootWindow;
{
    Window root, parent, *children;
    int nchildren;
    char *name;
    int i;
    int rootX, rootY, rootWidth, rootHeight, rootBw, rootDepth;

    XGetGeometry(display, rootWindow, &root, &rootX, &rootY, &rootWidth,
		 &rootHeight, &rootBw, &rootDepth);

    XQueryTree(display, rootWindow, &root, &parent, &children, &nchildren);
    if (nchildren) {
	register int i;                                    
	register Window *child;
	Window root;
	int x, y;
	unsigned width, height, bw, depth;
	int newX, newY;
   	XClassHint	class_hint;
   	int stat;

	for (i = 0, child = children; i < nchildren; ++i, ++child) {
	    XGetGeometry (display, *child, &root, &x, &y, &width, &height,
		&bw, &depth);
	    if( (stat=XGetClassHint( display, *child, &class_hint )) != 0 ){
		printf( "%s\n", class_hint.res_class );
		if (strcmp(class_hint.res_class,"jdecw$login") == 0) {
                    newX = (rootWidth - (width-bw))/2;
                    newY = rootHeight - height - bw;
 		    XMoveWindow(display, *child, newX, newY);
		    XSync(display, 0);
		    XFree(children);
		    return(1);
		}
	    }
	    MoveLoginWindow(display, *child);
	}
	XFree(children);
	return(0);
    }
}
3618.5How does this work ?PLAYER::DEVALCKDe Valck Patrick ADG Brussels @BROWed Nov 14 1990 03:026
If you run this program, will it display the pixmap you create and move down
the login dialog box ? I had defined the symbol DECW$LOGINLOGO pointin to a
command file containing as its only statement a run of the logo program.
All I get is that now I no longer have the digital logo, the login box stays as
it was. I also had a process called LOGO wich was running the image.
What am I doing wrong ? I am running DW V3 IFT under VMS V5.4. 
3618.6need more info...WIDGIT::WESTSCARY : A programmer with a screwdriver.Wed Nov 14 1990 09:3112
  What does your com file look like ?

  Are you doing a SET DISPLY/CREATE inside the com file ?

  Are you authorized access to the server ?

  And as a side issue, is DECW$LOGINLOGO new for VMS 5.4 ?  I've always used
DECW$LOGIN_BACKGROUND.

						-=> Jim <=-

3618.7InfoPLAYER::DEVALCKDe Valck Patrick ADG Brussels @BROThu Nov 15 1990 02:556
The com file contains one line : $ RUN LOGO.EXE with no display set.
How do I find out if the logo process is authorized access to the server ?

DECW$LOGINLOGO is new with DW V3 (IFT).

What more should I look for ? What info would you like ?
3618.8More infoPLAYER::DEVALCKDe Valck Patrick ADG Brussels @BROThu Nov 15 1990 05:292
I tried it with a SET DISPLAY/CREATE/NODE=0 command before the run. Still no luck.
I also created a log file and no errors in the log file !
3618.9Need to tell server who has accessWIDGIT::WESTSCARY : A programmer with a screwdriver.Sat Nov 17 1990 17:3818
  You probably need the file

	SYS$MANAGER:DECW$SERVER_ACCESS_ALLOWED.DAT

  to be created.

  I haven't yet played with V3.0...can someone tell me if this file
mechanism still works to grant access to the server when no one is logged
in.

  This file contains ASCII text designating the transport, node, and username
list that will have access to the server.

  ...and you do need the SET DISPLAY/CREATE in your com file.

					-=> Jim <=-

3618.10DECWIN::FISHERI like my species the way it is&quot; &quot;A narrow view...Mon Nov 19 1990 12:203
It's still there.

Burns