Previous Thread
Next Thread
Print Thread
INFLD #36704 28 Sep 23 09:06 PM
Joined: Sep 2002
Posts: 5,471
F
Frank Online Content OP
Member
OP Online Content
Member
F
Joined: Sep 2002
Posts: 5,471
Good day -

1-How do i set the standard background color in INFLD (not just the option to force an active bacground color in edit mode).... i want the background to always be a color.

2-Is it possible to remove the black border so its just the input area on the background?

TIA

PS: You can reference the pic in my previous thread for desired effect

Re: INFLD [Re: Frank] #36706 28 Sep 23 09:45 PM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
In theory it would be set via the INFCLR structure parameter, but there are numerous GUI / Windows complications. It would be much cleaner to use the option to force the background color during editing, and then supplement that with another strategy for display. Particularly if you want to display with non-standard attributes (sizes, colors, borders) etc., you could do all of that more easily just using AUI_CONTROL directly.

I can appreciate that one objective may be to unify the display and editing by using INFLD for both. But you can easily get around that by creating a unified front-end function or SBX that converts the display mode to an AUI_CONTROL call. That would allow you to at least move forward while we consider the INFLD background display issues separately. (That may require some modification to A-Shell, which of course is what always happens when we are trying to finalize a "stable" version!)

Re: INFLD [Re: Frank] #36710 29 Sep 23 04:01 PM
Joined: Sep 2002
Posts: 5,471
F
Frank Online Content OP
Member
OP Online Content
Member
F
Joined: Sep 2002
Posts: 5,471
Ill have a play with it thanks...

Re: INFLD [Re: Frank] #36739 05 Oct 23 06:51 PM
Joined: Sep 2002
Posts: 5,471
F
Frank Online Content OP
Member
OP Online Content
Member
F
Joined: Sep 2002
Posts: 5,471
Followup:

Is it possible to tweak INFLD to remove the black field border? (see example). Would love to squeeze this into 7.0 grin TIA

Attached Files Capture.JPG
Re: INFLD [Re: Frank] #36740 05 Oct 23 09:57 PM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
When you way "black field border", are you talking about the border around the two INFLD fields in this sample? (I'm assuming that your sample above is what you're looking for, not what you've got.)

[Linked Image]

They're not exactly "black". But they are, for the most part, controlled by the Windows version and theme.

So the short answer is I'm not entirely sure what the issue is or whether we can control it, but it would help to clarify the exact environment and maybe even a sample XCALL.

Re: INFLD [Re: Frank] #36741 05 Oct 23 10:47 PM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
Here's a possible Easter Egg: add type code ||/ to the remove the "client edge" attribute. At least in Windows 11, the "client edge" is so small that the effect is pretty subtle:

[Linked Image]

(I added the codes to just the "Field Data" field.) The most noticeable aspect of it is that we lose the internal left / top margins (which were an invisible part of the "client edge").

Re: INFLD [Re: Frank] #36742 06 Oct 23 01:13 AM
Joined: Sep 2002
Posts: 5,471
F
Frank Online Content OP
Member
OP Online Content
Member
F
Joined: Sep 2002
Posts: 5,471
Correct, that was the target. What it looks like now is very pronounced (see example).

I'll try the easter egg, thanks!

Attached Files Capture.JPG
Re: INFLD [Re: Frank] #36743 06 Oct 23 01:17 AM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
Which version of Windows is that? I’m curious as to the degree that it’s determined by the Windows theme.

Re: INFLD [Re: Frank] #36744 06 Oct 23 02:12 PM
Joined: Sep 2002
Posts: 5,471
F
Frank Online Content OP
Member
OP Online Content
Member
F
Joined: Sep 2002
Posts: 5,471
This is a W10 box. I will also see if I can get an example on W11.


Moderated by  Jack McGregor, Ty Griffin 

Powered by UBB.threads™ PHP Forum Software 7.7.3