Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: fglfind.4gl program  (Read 7539 times)
Candy M.
Posts: 139


« on: October 26, 2017, 08:13:19 am »

What window style is used when the fglfind.per form is opened?  The reason I ask is that I see that there is not a style defined when it is opened and our form initializer is adding a toolbar to that form and it looks funny.   I guess I can change the program fglfind.4gl and specify a style with toolbar of none, or in our initializer ignore forms called "fglfind".  I wasn't sure of the philosophy of 4js of that program being modified.   I rather not change it as it is one more thing to have in place when we update the BDL for a customer.   Anyway, I'll think on it but was wondering 4js' thoughts of us modifying it.   I'm leaning towards changing our initializer.
(We haven't taken advantage of this feature because one of our other actions had the control-F in its accelerator).

Thanks,
Candy
'
Reuben B.
Four Js
Posts: 1046


« Reply #1 on: October 26, 2017, 11:23:55 pm »

I'd do down the path of modifying your initializer.  Its a simple change and you may find other forms require the same treatment.

But for reference, you will find the source to fglfind.4gl in $FGLDIR/src and you will see no style is specified.  However in fglfind.per you will see that STYLE=dialog4, and there is a dialog4 entry in FGLDIR/lib/default.4st

With regards to modifying any of those files you see in FGLDIR/src that end up compiled in FGLDIR/lib, its not a case of modifying $FGLDIR/src/filename.4gl|filename.per and overwriting $FGLDIR/lib/filename.42m|filename.42f.  You should not touch those files.  The technique would involve copying $FGLDIR/src/filename.4gl|filename.per into your sources area, modify it, and compiling in amongst your code base, and ensuring that your copy of filename.42m|filename.per is higher up the FGLLDPATH|FGLRESOURCEPATH search path than $FGLDIR/lib/filename.42m|filename.per.  Thus at runtime, when the runner looks for filename.42m|filename.42f, it will find your version before the default in FGLDIR/lib.  As long as your modification does not alter the function signature (parameter in and parameter out), it should be ok. 

If you have a strong interest in ensuring that all your forms meet a certain user interface standard then I would expect you to be doing something with fglfind.per.  For instance the labels are right-justified whereas your design standard might be that labels are left-justified.

Reuben

Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero
Candy M.
Posts: 139


« Reply #2 on: October 27, 2017, 01:42:08 am »

Thank you Reuben.   I was thinking later that I could just set the style in the form.
I have a question about FGLLDPATH.  Right now, we don't even have $FGLDIR/lib in our FGLLDPATH.   So if we make a copy and hold in in our codebase, would
we add $FGLDIR/lib to our FGLLDPATH even if it is absent now?   I'm puzzled about that.

Thank you for your help.   I hope to be able to dig into it more and try it out in a few weeks.

Candy
Reuben B.
Four Js
Posts: 1046


« Reply #3 on: October 27, 2017, 02:57:41 am »


Quote
I have a question about FGLLDPATH.  Right now, we don't even have $FGLDIR/lib in our FGLLDPATH.   So if we make a copy and hold in in our codebase, would
we add $FGLDIR/lib to our FGLLDPATH even if it is absent now?   I'm puzzled about that.

http://4js.com/online_documentation/fjs-fgl-manual-html/#c_fgl_EnvVariables_FGLLDPATH.html
Actually FGLDIR/lib is searched after FGLLDPATH so it does not need to be specified.

Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero
Candy M.
Posts: 139


« Reply #4 on: October 27, 2017, 07:57:51 am »

Very good.   That explains it.
Candy
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines