EditorGadget - Colored Brackets?

For everything that's not in any way related to PureBasic. General chat etc...
Marco2007
Enthusiast
Enthusiast
Posts: 648
Joined: Tue Jun 12, 2007 10:30 am
Location: not there...

EditorGadget - Colored Brackets?

Post by Marco2007 »

Hi,

could someone please test this and look, if the brackets are shimmering red and blue?

Code: Select all

If OpenWindow(0, 0, 0, 200, 200, "")
  EditorGadget(0, 0, 0, 200, 200)
  For i=1 To 10
    AddGadgetItem(0, -1, ":58 [h:min:s]xxx")
  Next  
  
Repeat : Until WaitWindowEvent()=#PB_Event_CloseWindow
EndIf

Image

thx
PureBasic for Windows
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8453
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Re: EditorGadget - Colored Brackets?

Post by netmaestro »

Yes I get the same result here. Just a hint of red on the opening brackets and blue on the closing ones. Same text to a listview does similar, I have no idea what the cause could be. Antialiasing on the gui font perhaps, dunno.
BERESHEIT
User avatar
flaith
Enthusiast
Enthusiast
Posts: 704
Joined: Mon Apr 25, 2005 9:28 pm
Location: $300:20 58 FC 60 - Rennes
Contact:

Re: EditorGadget - Colored Brackets?

Post by flaith »

Same for me, maybe the resolution ?
NVIDIA GeForce GTX280 - 1680x1050 (32bits)
WinXPSP3
“Fear is a reaction. Courage is a decision.” - WC
Marco2007
Enthusiast
Enthusiast
Posts: 648
Joined: Tue Jun 12, 2007 10:30 am
Location: not there...

Re: EditorGadget - Colored Brackets?

Post by Marco2007 »

Thanks for confirming, I noticed it in the Debugger-Output...
And my first thought was: "Ok, now it`s time to stop drinking...." :D
PureBasic for Windows
User avatar
TomS
Enthusiast
Enthusiast
Posts: 342
Joined: Sun Mar 18, 2007 2:26 pm
Location: Munich, Germany

Re: EditorGadget - Colored Brackets?

Post by TomS »

netmaestro wrote:Just a hint of red on the opening brackets and blue on the closing ones.
If you're far enough away from the screen.
Look closer and it is the other way around.
Even closer (zoomed), you'll find the opening bracket is blue and has a red "shadow" and the closing one is red (brownish) with a blue shadow.
And the rest consists of red and blue equally (more or less):

Image
User avatar
Demivec
Addict
Addict
Posts: 4283
Joined: Mon Jul 25, 2005 3:51 pm
Location: Utah, USA

Re: EditorGadget - Colored Brackets?

Post by Demivec »

I get only back/white (windows XP).

I believe the anti-aliasing being used is referred to as sub-pixel and it is designed for use on LCD displays where the distance between a pixel and it's horizontal neighbor depends on it's color (i.e. the pixels layout is RGBRGB or BGRBGR). The result of the color is to make the display appear sharper on an LCD.
User avatar
STARGÅTE
Addict
Addict
Posts: 2315
Joined: Thu Jan 10, 2008 1:30 pm
Location: Germany, Glienicke
Contact:

Re: EditorGadget - Colored Brackets?

Post by STARGÅTE »

PB 6.01 ― Win 10, 21H2 ― Ryzen 9 3900X, 32 GB ― NVIDIA GeForce RTX 3080 ― Vivaldi 6.0 ― www.unionbytes.de
Lizard - Script language for symbolic calculations and moreTypeface - Sprite-based font include/module
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Re: EditorGadget - Colored Brackets?

Post by srod »

Marco2007 wrote:...And my first thought was: "Ok, now it`s time to stop drinking...." :D
Let's get one thing straight right now, it is never time to stop drinking! Such thoughts can only lead to trouble! :wink:
I may look like a mule, but I'm not a complete ass.
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: EditorGadget - Colored Brackets?

Post by PB »

No "shimmering" here, just black on white; but then I don't have ClearType enabled, which is the cause.

Image
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
naw
Enthusiast
Enthusiast
Posts: 573
Joined: Fri Apr 25, 2003 4:57 pm

Re: EditorGadget - Colored Brackets?

Post by naw »

No probs here with my Lenovo WinXP laptop
Ta - N
Marco2007
Enthusiast
Enthusiast
Posts: 648
Joined: Tue Jun 12, 2007 10:30 am
Location: not there...

Re: EditorGadget - Colored Brackets?

Post by Marco2007 »

Thanks to everyone and Welcome back PB :-)
PureBasic for Windows
User avatar
GWarner
Enthusiast
Enthusiast
Posts: 605
Joined: Fri Jul 24, 2009 1:34 pm
Location: USA

Re: EditorGadget - Colored Brackets?

Post by GWarner »

I tried this too and had pure black and white.

I was at first thinking that it was from font smoothing and or Clear Type or could posibly be caused if you're running an LCD monitor at a non-native resolution, but:

1. I am running at a non-native resolution
2. I have font smoothing turned on
3. I have clear type turned off

GeForce GTX-275 with a Lenovo L220x.

So I have to agree with PB that Clear Type is the culprit.
srod wrote:
Marco2007 wrote:...And my first thought was: "Ok, now it`s time to stop drinking...." :D
Let's get one thing straight right now, it is never time to stop drinking! Such thoughts can only lead to trouble! :wink:
:lol:
Post Reply