Window Editor

This is a discussion on Window Editor within the Clipper forums in Programming Languages category; Is there a way to change the Config file for the window editor to do this? When entering a server name in the Data Server property of the window, I want all my server to pass SELF. I want to change this, in the INIT IF !IsNil(oServer) SELF:Use(oServer) ELSE SELF:Use(SubmittalSRV{}) ENDIF To this IF !IsNil(oServer) SELF:Use(oServer) ELSE SELF:Use(SubmittalSRV{SELF}) ENDIF TIA Geoff...

Go Back   Application Development Forum > Programming Languages > Clipper

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-28-2008, 01:14 PM
Geoff Chambers
Guest
 
Default Window Editor

Is there a way to change the Config file for the window editor to do
this? When entering a server name in the Data Server property of the
window, I want all my server to pass SELF.

I want to change this, in the INIT

IF !IsNil(oServer)
SELF:Use(oServer)
ELSE
SELF:Use(SubmittalSRV{})
ENDIF

To this

IF !IsNil(oServer)
SELF:Use(oServer)
ELSE
SELF:Use(SubmittalSRV{SELF})
ENDIF

TIA
Geoff
Reply With Quote
  #2  
Old 08-28-2008, 06:37 PM
Geoff Schaller
Guest
 
Default Re: Window Editor

Geoff,

No, unfortunately. CA and GrafX never gave us a way to manage this. I
have often wanted it too. But there is a way out. Do not supply the
server to the WED but do it in the PostInit instead.

Geoff


"Geoff Chambers" <gchambers02@msn.com> wrote in message
news:a8616299-870a-42ff-ba02-e08c7012267b@y38g2000hsy.googlegroups.com:

> Is there a way to change the Config file for the window editor to do
> this? When entering a server name in the Data Server property of the
> window, I want all my server to pass SELF.
>
> I want to change this, in the INIT
>
> IF !IsNil(oServer)
> SELF:Use(oServer)
> ELSE
> SELF:Use(SubmittalSRV{})
> ENDIF
>
> To this
>
> IF !IsNil(oServer)
> SELF:Use(oServer)
> ELSE
> SELF:Use(SubmittalSRV{SELF})
> ENDIF
>
> TIA
> Geoff


Reply With Quote
  #3  
Old 08-28-2008, 06:48 PM
Stephen Quinn
Guest
 
Default Re: Window Editor

Geoff

Try editing the Cavowed.TPL file to insert the line

/tSELF:Use(SubmittalSRV{SELF})

in the postinit method and don't put anything in the property of the window.
Eg
[PostInit]
method PostInit(%INITPARAMS%) class %FORM:NAME%
\t//Put your PostInit additions here
\tSELF:Use(SubmittalSRV{SELF})
\treturn NIL

NOTE: I think *every* window you create in the editor will get this line
inserted<g>

No idea if TPL files are still used in CAVO2.8 or not.

CYA
steve


Reply With Quote
  #4  
Old 08-28-2008, 07:29 PM
Geoff Schaller
Guest
 
Default Re: Window Editor

<g>

This is not all that cool Steve because all windows will now get the
same server. Might as well just manually add the postinit.

And yes, 2.8 still uses TPL files.

Geoff



"Stephen Quinn" <stevejqNO@SPbigpond.AMnet.au> wrote in message
news:mXFtk.32148$IK1.19692@news-server.bigpond.net.au:

> Geoff
>
> Try editing the Cavowed.TPL file to insert the line
>
> /tSELF:Use(SubmittalSRV{SELF})
>
> in the postinit method and don't put anything in the property of the window.
> Eg
> [PostInit]
> method PostInit(%INITPARAMS%) class %FORM:NAME%
> \t//Put your PostInit additions here
> \tSELF:Use(SubmittalSRV{SELF})
> \treturn NIL
>
> NOTE: I think *every* window you create in the editor will get this line
> inserted<g>
>
> No idea if TPL files are still used in CAVO2.8 or not.
>
> CYA
> steve


Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 07:49 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.