The line is in the BackColor Property. I have the same issue in my program but if I set the BackColor of the textfield while the program runs, the caret is perfekt afterwards.
O.O You are right. Thanks for that info.
The BackColor Property is right implemented, so I have looked at the NotRGB implementation.
But NotRGB is right implemented, too:
http://code.google.com/p/jabacoframework…c=svn81&r=81#94
And NotRGB works in Java-programs perfet.
And now you they, that it works during running ok, whats true.
I dunno if changing the lines as suggested will solve the problem as it uses the same information at the same point as the not working one.
Right.
The same is when i change the backcolor in the IDE.
Ok. Thanks. That clarify all.
When you see after starting the IDE the BackColor white as 255;255;255 , then it is not really that color.
At first, there don't exists a special color. The color after starting the IDE is at first "Selection.Backcolor".
And "Selection.Backcolor" can be on different systems different. It is a system-color.
If you choose "Selection.Backcolor" it gives to RGBtoColor the color number -2147483635 which is as hex 8000000D. RGBtoColor looks for this system color number and give calls the right Java system color:
http://code.google.com/p/jabacoframework…rmation.java#30
But in
Parent.setCaretColor(RGBtoColor(NotRGB(v)))
NotRGB is called before RGBtoColor, because RGBtoColor return a color not a long integer.
So a hex 8000000D is after the NotRGB a hex 80FFFFF2. 80 is the alfha chanal. So the normal color is FFFFF2 => Red 255, Green 255, Blue 242.
Hmm.. a color which is not white and you can still differ from white. Possible the alpha chanel 80 gives the rest, so that you can not see the carret.
Have more to look at it a
MsgBox( RGBtoColor(-2147483635) )
gives out a ""java.awt.SystemColor[i=14]"
and a
MsgBox( RGBtoColor(255) )
gives out "java.awt.Color[r=255, g=0, b=0]"
During run the color remains white, i have to modify the color while the program runs.
Ok. Right.
Maybe the Init of the textbox has a problem, it looks the textbox is built but not komplet set correct.
I think there problem have more to do with handling of system colors.
I am not a big programmer just my 5c, maybe it helps.
Yes, it helps much to find the bug. Thanks.