Focal Point
IWCControlGroupBox and Chrome

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/4767027416

December 23, 2011, 02:52 PM
John_Edwards
IWCControlGroupBox and Chrome
My client has opted to convert over to Chrome and the group boxes on my Maintain forms appear as faint gray lines instead of the black ones that appeared in IE. Positioning and even sizing appears to have changed as well, in spite of having absolute positioning and defined tops, lefts, widths and heights. Make any sense to anyone?

Has anyone moved Maintain applications from an IE environment to a Chrome environment? It's days like these that I'd pay $100 for Maintain screens to implement .js file linking properly.

J.



December 26, 2011, 09:24 AM
Maintain Wizard
John
I have used Maintain in IE, Safari, Firefox and Opera. There are SOME positional differences. I have done very minimal testing in Chrome. I will take a look this week and see if there is a Group box property that helps.

Not sure what you mean about linking JS files. You CAN either link or embed JS files on Maintain forms. If there is something else you mean, let me know.

Mark
December 26, 2011, 11:01 AM
John_Edwards
We have never gotten Link to work correctly, so we always Embed.

The group box appears to have an exceptionally light color to it and to be down and to the right of where it appears in IE. In IE it's black. Not a crisis, but unexpected. We use it to group conceptual objects for the user, so when it's not there the materials look unanchored.

J.



December 27, 2011, 07:41 AM
Maintain Wizard
In 7703 I am using all the default values for the border of the group box and it actually looks darker in Chrome than in IE. Chrome and Firefox look exactly the same. I am seeing the spacing issue. IE looks to start a little higher on the page than the others.

Not sure if this will help, but you can change the back ground color of the group boxes pretty easily. This may make them stand out even more so than the borders. Try this code:

Winform show_inactive Form1
Form1.GroupBox1.SetBackColor(192, 220, 192)
Form1.GroupBox2.SetBackColor(0, 225, 255)
Form1.GroupBox3.SetBackColor(160, 160, 164)
Form1.GroupBox4.SetBackColor(0, 128, 0)
Winform show Form1

And see if that helps. Otherwise, send me your border settings for the group box and I'll take another look.

Mark
December 27, 2011, 10:34 AM
John_Edwards
What's the secret to making .js files link correctly? If I'm going to have to revise all of these units I may as well get the link running at the same time.

J.



December 27, 2011, 10:47 AM
Maintain Wizard
I'm not sure there is a trick to getting linked JS files to work. Select Link instead of Embed when you drag the file onto the form, and make sure that when you deploy you move the JS file to the web server so the path in the MNT / WFM file gets updated correctly.

Mark
December 27, 2011, 11:03 AM
John_Edwards
I get a reference like this --

script id=Number_Edits language=Javascript src="/approot/madap/Number_Edits.js"

that fails to load in both IE and Chrome. This is on 7.6.7. Honestly it looks correct but it doesn't function. Chrome returns a

Failed to load resource: the server responded with a status of 404 (/approot/madap/Number_Edits.js)

. . . and IE returns its usual stupid look.

J.



December 27, 2011, 11:57 AM
John_Edwards
You know I found a way to get links to function for one particular unit, but for some odd reason (and this makes no sense) I can't link to the same js file via multiple deploys without it breaking the others. Makes no sense, the source code looks right, but it doesn't function.

It's not cost effective to pursue the issue so I'm sticking with embedding. I have to change all the units either way and I can't justify the extra expense of figuring out the problem.

J.

This message has been edited. Last edited by: John_Edwards,