photon editor (ped)

Hi,
I’d like to spawn “ped” (photon editor) from Photon. Is there a way to block
the “ped” Window flags such as resize,close, move etc. Also is there a way
to display the editor without a border?

Shashank
s_balijepalli@hotmail.com

There’s no real elegant way to do this. Only the app that owns the window
has proper control over those types of settings. Note the usage of the word
“proper”. That being said…

Given that you know the pid of the process (from the call you used to spawn
it), attached is a snippet of code that allows you to override window
settings, in the form of a short program. You can adapt the code however
you want. NEW_MANAGED_FLAGS, NEW_NOTIFY_FLAGS etc denote the new settings
you want the window to have.

BEWARE: this solution would likely be considered as a “hack” by most, and
directly modifying the window resources for another app in this manner
(aside from being just plain rude) can lead application misbehaviour. Use
discretion, and be prepared to iterate several times before you get the
effect you’re looking for, as well as acceptable application behaviour.
Additionally, if you’re messing with things like the borders, you’ll
probably have to fiddle with the window’s geometry as well. The safest way
to do this is simply to specify it in the arguments when you spawn the
application (x, y, w and h commandline arguments). You’ve been warned :slight_smile:

“Shashank” <sbalijepalli@precitech.com> wrote in message
news:a5dn73$93i$1@inn.qnx.com

Hi,
I’d like to spawn “ped” (photon editor) from Photon. Is there a way to
block
the “ped” Window flags such as resize,close, move etc. Also is there a way
to display the editor without a border?

Shashank
s_balijepalli@hotmail.com

begin 666 winovrd.c
M(VEN8VQU9&4@/%!H+F@^#0HC:6YC;‘5D92 \97)R;F\N:#X-"@T*(V1E9FEN
M92!.15=?34%.04=%1%]&3$%‘4PDP#0HC9&5F:6YE($Y%5U].3U1)1EE?1DQ!
M1U,), T*(V1E9FEN92!.15=?4D5.1$527T9,04=3"3 -"@T*:6YT(&UA:6XH
M:6YT(&%R9V,L8VAA<B JF%R9W8I#0I#0H):68H(5!T26YI=“A.54Q,*2D-
M”@E[#0H)“7!I9%]T(’!I9”
G=ELQ72D[#0H)"5!H4FED7W0@
M<FED<ULS,ET#0H)“6EN=”!N<FED<R )1%%5
M15)97U1/5T%21"PP+# L4&A?5TE.1$]77U)%1TE/3BPP+%!H7U)/3U1?4DE$
M+$Y53$PL<FED<RQS:7IE;V8H<FED<RD@+R!S:7IE;V8H<FED<ULP72DI.PT

M"0D-"@D):68H;G)I9’,@/B P0T"0E[#0H)“0EI;G0@:3L-”@D)"5!H4F5G
M:6]N7W0@<F5G:6]N.PT*"0D)4&A#;VYN96-T26YF;U]T(&-O;FYE8W0[#0H)
M"0T*“0D)9F]R*&D@/2 P.VD@/”!N<FED<SMIRLI#0H)"0E[#0H)"0D):68H
M(5!H4F5G:6]N475E<GDH<FED<UMI72PF<F5G:6]N+$Y53$PL3E5,3"PP
2 F
M)@T*"0D)"2 @(%!H1V5T0V]N;F5C=$EN9F\H<F5G:6]N+F]W;F5R+"9C;VYN
M96-T2 A/2 M,2 F)@T"0D)"2 @(&-O;FYE8W0N<&ED(#T](’!I9"D-"@D)
M"0E[#0H)"0D)"5!H5VEN9&]W26YF;U]T(’=I;F9O.PT*"0D)“0EW:6YF;RYF
M:65L9’,@/2!0:%]735]3151?1DQ!1U,@?”!0:%]735]3151?4D5.1$52.PT*
M"0D)“0EW:6YF;RYM86YA9V5D7V8@/2!.15=?34%.04=%1%]&3$%'4SL-”@D)
M"0D)=VEN9F\N;F]T:69Y7V8@/2!.15=?3D]424997T9,04=3.PT*"0D)"0EW
M:6YF;RYR96YD97)?9B ]($Y%5U]214Y$15)?1DQ!1U,[#0H)"0D)“6EF*”%0
M:%=I;F1O=T-H86YG92A0:%]214=)3TY?1$%402PP+"9R96=I;VXL3E5,3"PF
M=VEN9F\I0T"0D)"0D)<F5T=7)N*# I.PT*“0D)“7T-”@D)“7T-”@D)?0T*
M"7T-”@T*“7!R:6YT9B@B=VEN9&]W(&-H86YG92!F86EL960Z(” E<UQN(BQS
C=’)E<G)O<BAE<G)N;RDI.PT*"7)E='5R;B@M,2D[#0I]#0H
end