View previous topic :: View next topic |
Author |
Message |
DanRRight
Joined: 10 Mar 2008 Posts: 2815 Location: South Pole, Antarctica
|
Posted: Fri Apr 23, 2010 3:40 am Post subject: Gray text background |
|
|
Is it possible to write the text in Clearwin windows without gray text background which wipes bitmap under it? Same was as in %cw window for example where you can define your own background color and the text is written over it without the gray underneath (by the way, the new feature local_font can now use different fonts and scale their size inside %cw, thanks to Paul for that).
In the windows though if the background is bitmap the things are different.
Example of the way it is needed marked by the arrow here (made of course with photoshop)
Hope it is doable.
Last edited by DanRRight on Wed Apr 28, 2010 1:49 am; edited 2 times in total |
|
Back to top |
|
|
DanRRight
Joined: 10 Mar 2008 Posts: 2815 Location: South Pole, Antarctica
|
Posted: Tue Apr 27, 2010 11:03 pm Post subject: |
|
|
One more example.
The present background under the text and formulas forces to use only approximately the same overall grayish bitmaps for the window. And even then sometimes the window look a bit ugly or at least amateurish and limiting us in bitmap windows backgrounds choices
|
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7924 Location: Salford, UK
|
Posted: Wed Apr 28, 2010 9:09 am Post subject: |
|
|
I do not know of an easy way to do this. In some cases you may be able to include the text in the bitmap for %wp but the result could vary with screen resolutions etc.
At the moment I also do not know how this feature might be added to ClearWin+. The context in the ClearWin+ code is the response to the WM_CTLCOLORSTATIC message and this normally involves calls to SetBkColor and SetTextColor with the background brush used as the return value. Inthis context is no direct way to write the text on to an existing background bitmap.
So the best you can do is to set the background colour as close as you can to the dominant colour of the %wp background.
Another possibility is to represent the text as an icon image with a transparent background to the icon. In theory icons can have a user-defined size. Off hand I do not remember if ClearWin+ can handle such icons. Try %im. |
|
Back to top |
|
|
LitusSaxonicum
Joined: 23 Aug 2005 Posts: 2388 Location: Yateley, Hants, UK
|
Posted: Wed Apr 28, 2010 6:39 pm Post subject: |
|
|
Further to Paul's response as to why, I want to pick up on the use of images and icons. The one you may wish to use is %gi, which will place a GIF, which can have a transparent background. If you are using an older version of FTN95 (such as the 4.90 I use) %gi doesn't work, but Paul fixed that a version or two later.
I found the %eq output to be ugly, and instead have used a hand-crafted bitmap instead. MS Paint isn't really up to this job, and you may need something a bit more sophisticated. I also use bitmaps that change in a context sensitive way in a graphics region - they can contain text just as easily as drawings.
Eddie |
|
Back to top |
|
|
DanRRight
Joined: 10 Mar 2008 Posts: 2815 Location: South Pole, Antarctica
|
Posted: Fri May 14, 2010 3:02 pm Post subject: |
|
|
Well, this background text issue which restricts graphics designs to grayish styles only is substantial disadvantage of Clearwin. Using gifs for each and every single output is not a viable option. It's OK, say, for formulas, some fancy buttons and some rear enclosures but not for literally everything on the page. Imagine if all webpages on the internet had such a problem! By default they use transparent texts so you can use any background you want.
I do not know what and how something has to be changed but there should exist some solution. I've just asked folks who use other fortran GUI builders, and they told me that they can do that. Winteracter for example can do both, but by default last 5 something years it's using transparent texts like the whole web is doing. |
|
Back to top |
|
|
IanLambley
Joined: 17 Dec 2006 Posts: 490 Location: Sunderland
|
Posted: Tue May 18, 2010 12:11 pm Post subject: |
|
|
Have you thought of using OpenGL, you should be able to create a graduated window by specifiying the colour at each vertex and a smooth type fill.
Ian
PS don't ask me how it is actually done. |
|
Back to top |
|
|
DanRRight
Joined: 10 Mar 2008 Posts: 2815 Location: South Pole, Antarctica
|
Posted: Thu May 20, 2010 12:10 am Post subject: |
|
|
I am not a pro in OpenGL. Otherwise i'd make windows like that
|
|
Back to top |
|
|
|