Another simple thing (for you wizards)

This forum is for eXpress++ general support.
Post Reply
Message
Author
BruceN
Posts: 280
Joined: Thu Jan 28, 2010 7:46 am
Location: Slidell, LA

Another simple thing (for you wizards)

#1 Post by BruceN »

I have another issue that's baffles me (as most of programmig does).

I want to tie a child dialog box to the parent so that when the parent is moved, thechild opens over it, not over center of the screen.

I know there's a real simple method for that... it's like the jitterbug - it plumb evades me (with apologies to Jimmy buffet).


I assume it has to do with naming the dialog or something similar.

real simple example below:
*********************************************************
PROCEDURE AppSys

LOCAL oDlg

RETURN
********************************************************************
procedure MAIN(cVar)
local dir1 := space(30)

RegForm()
return

*********************************************************************
procedure RegForm()
local getlist:={}

@ 1.5, 2 dcsay 'Form 1'

@3, 2 DCPUSHBUTTON CAPTION 'Form2' ;
SIZE 10,1 ;
ACTION {||Form2()}

dcread gui fit;
setappwindow;
title "First Form";
enterexit



return
**************************************
procedure Form2()

@ 3, 2 dcsay 'Form 2'


@3, 2 DCPUSHBUTTON CAPTION 'Exit' ;
SIZE 10,1 ;
ACTION {||quit()}

dcread gui fit;
setappwindow;
title "Second Form";
enterexit
return
**************************************
procedure quit()

QUIT
return


********************************************************
as always I bow with humility to you great wizards!

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Another simple thing (for you wizards)

#2 Post by rdonnay »

Code: Select all

oAppWindow := SetAppWindow()

dcread gui fit;
modal ;
setappwindow;
title "Second Form";
enterexit ;
EVAL {|o|DC_CenterObject(o,oAppWindow)
The eXpress train is coming - and it has more cars.

Post Reply