[MSEide-MSEgui-talk] About Color

classic Classic list List threaded Threaded
38 messages Options
12
Reply | Threaded
Open this post in threaded view
|

[MSEide-MSEgui-talk] About Color

mohamed hamza
I've never seen color codes like -1, -16777216, -256, etc. So how to  convert them

to RGB or HEX  using select color panel ?

Regards

Med




_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
mse
Reply | Threaded
Open this post in threaded view
|

Re: [MSEide-MSEgui-talk] About Color

mse
Administrator
On Tuesday 20 November 2018 12:35:39 mohamed hamza wrote:
> I've never seen color codes like -1, -16777216, -256, etc.

I don't understand what you mean.

> So how to  
> convert them
>
> to RGB or HEX  using select color panel ?
>
What means "select color panel"?

Martin


_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Reply | Threaded
Open this post in threaded view
|

Re: [MSEide-MSEgui-talk] About Color

mohamed hamza
In fact I found a third party software developed  with MseIde. It has  themes files to init
tskin object.

for example:

[Edit]
empty_color=-2147483647
empty_textcolor=-2147483647
empty_textcolorbackground=-2147483647
empty_textcolorbackground=-2147483647
[Edit-Frame]
colorclient=9471365
colorframe=-1610612718
colorframeactive=-1610612723colordkshadow=-2147483647
colorshadow=-2147483647
colorlight=-2147483647
colorhighlight=-2147483647

I want to convert -color to hex or rgb  that.

Regards

Med



De : Martin Schreiber <[hidden email]>
Envoyé : mardi 20 novembre 2018 12:41
À : [hidden email]
Objet : Re: [MSEide-MSEgui-talk] About Color
 
On Tuesday 20 November 2018 12:35:39 mohamed hamza wrote:
> I've never seen color codes like -1, -16777216, -256, etc.

I don't understand what you mean.

> So how to 
> convert them
>
> to RGB or HEX  using select color panel ?
>
What means "select color panel"?

Martin


_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
mse
Reply | Threaded
Open this post in threaded view
|

Re: [MSEide-MSEgui-talk] About Color

mse
Administrator
On Tuesday 20 November 2018 14:22:50 mohamed hamza wrote:

> In fact I found a third party software developed  with MseIde. It has
> themes files to init tskin object.
>
> for example:
>
> [Edit]
> empty_color=-2147483647
> empty_textcolor=-2147483647
> empty_textcolorbackground=-2147483647
> empty_textcolorbackground=-2147483647
> [Edit-Frame]
> colorclient=9471365
> colorframe=-1610612718
> colorframeactive=-1610612723colordkshadow=-2147483647
> colorshadow=-2147483647
> colorlight=-2147483647
> colorhighlight=-2147483647
>
> I want to convert -color to hex or rgb  that.
>
This are int32 values.
"
<thecolortyvalue>:= strtoint(<thestringvalue>);
"
The values are defined in msegraphutils.pas.
Are the theme files written by tstatfile? If yes they probably should be read
by tstatfile too.

Martin


_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Reply | Threaded
Open this post in threaded view
|

Re: [MSEide-MSEgui-talk] About Color

mohamed hamza
I sent you a theme file. I think it's not read with stat-reader. What do you think?

Regards

Med

De : Martin Schreiber <[hidden email]>
Envoyé : mardi 20 novembre 2018 14:25
À : [hidden email]
Objet : Re: [MSEide-MSEgui-talk] About Color
 
On Tuesday 20 November 2018 14:22:50 mohamed hamza wrote:
> In fact I found a third party software developed  with MseIde. It has
> themes files to init tskin object.
>
> for example:
>
> [Edit]
> empty_color=-2147483647
> empty_textcolor=-2147483647
> empty_textcolorbackground=-2147483647
> empty_textcolorbackground=-2147483647
> [Edit-Frame]
> colorclient=9471365
> colorframe=-1610612718
> colorframeactive=-1610612723colordkshadow=-2147483647
> colorshadow=-2147483647
> colorlight=-2147483647
> colorhighlight=-2147483647
>
> I want to convert -color to hex or rgb  that.
>
This are int32 values.
"
<thecolortyvalue>:= strtoint(<thestringvalue>);
"
The values are defined in msegraphutils.pas.
Are the theme files written by tstatfile? If yes they probably should be read
by tstatfile too.

Martin


_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

black.thm (34K) Download Attachment
mse
Reply | Threaded
Open this post in threaded view
|

Re: [MSEide-MSEgui-talk] About Color

mse
Administrator
On Tuesday 20 November 2018 17:24:43 mohamed hamza wrote:
> I sent you a theme file. I think it's not read with stat-reader. What do
> you think?
>
I think it is tstatfile.
"
[SystemColors]
Colors=25
 -2147483647
 -2147483647
 -2147483647
"
is characteristic. It is a file produced by the Repaz tool from Sri Wahono:
https://sourceforge.net/p/repaz/code/HEAD/tree/

Martin


_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Reply | Threaded
Open this post in threaded view
|

Re: [MSEide-MSEgui-talk] About Color

mohamed hamza
I agree with you, but the stat-file is  not read when i put it into datamodule where my tskin reside?


datamo.statfile=tstatfile1
  tstatfile1.filename:=black1.thm.

black1.htm is blanked whenever my project starts and only my own skins are applied?

Regards.
Med.

De : Martin Schreiber <[hidden email]>
Envoyé : mardi 20 novembre 2018 16:50
À : [hidden email]
Objet : Re: [MSEide-MSEgui-talk] About Color
 
On Tuesday 20 November 2018 17:24:43 mohamed hamza wrote:
> I sent you a theme file. I think it's not read with stat-reader. What do
> you think?
>
I think it is tstatfile.
"
[SystemColors]
Colors=25
 -2147483647
 -2147483647
 -2147483647
"
is characteristic. It is a file produced by the Repaz tool from Sri Wahono:
https://sourceforge.net/p/repaz/code/HEAD/tree/

Martin


_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
mse
Reply | Threaded
Open this post in threaded view
|

Re: [MSEide-MSEgui-talk] About Color

mse
Administrator
On Tuesday 20 November 2018 18:41:11 mohamed hamza wrote:

> I agree with you, but the stat-file is  not read when i put it into
> datamodule where my tskin reside?
>
>
> datamo.statfile=tstatfile1
>   tstatfile1.filename:=black1.thm.
>
> black1.htm is blanked whenever my project starts and only my own skins are
> applied?
>
I assume that there is a dedicated skin loader. Please check the sources or
try to contact Sri.

Martin


_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Reply | Threaded
Open this post in threaded view
|

Re: [MSEide-MSEgui-talk] About Color

mohamed hamza
Hi Martin,

By  select color panel I mean:

The dropdown or opened window where we can set color value of an object.

I can not set directly the code color found in the theme file?

Example: colorframeactive=-1610612722
empty_color=-2147483647

Regards
 
Med


De : Martin Schreiber <[hidden email]>
Envoyé : mardi 20 novembre 2018 17:47
À : [hidden email]
Objet : Re: [MSEide-MSEgui-talk] About Color
 
On Tuesday 20 November 2018 18:41:11 mohamed hamza wrote:
> I agree with you, but the stat-file is  not read when i put it into
> datamodule where my tskin reside?
>
>
> datamo.statfile=tstatfile1
>   tstatfile1.filename:=black1.thm.
>
> black1.htm is blanked whenever my project starts and only my own skins are
> applied?
>
I assume that there is a dedicated skin loader. Please check the sources or
try to contact Sri.

Martin


_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
mse
Reply | Threaded
Open this post in threaded view
|

Re: [MSEide-MSEgui-talk] About Color

mse
Administrator
On Thursday 22 November 2018 15:57:24 mohamed hamza wrote:

> Hi Martin,
>
>
> By  select color panel I mean:
>
>  The dropdown or opened window where we  can  set color value of an object.
>
> I can not set directly the code color found in the theme file?
>
> Example: colorframeactive=-1610612722
>          empty_color=-2147483647
>
Works for me.

Martin


_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Reply | Threaded
Open this post in threaded view
|

Re: [MSEide-MSEgui-talk] About Color

mohamed hamza
Why some others values gives me : exception - Invalid Color and there is a loop on that message which forces me to restart?

Ex color = 16119551

Med

De : Martin Schreiber <[hidden email]>
Envoyé : jeudi 22 novembre 2018 15:48
À : [hidden email]
Objet : Re: [MSEide-MSEgui-talk] About Color
 
On Thursday 22 November 2018 15:57:24 mohamed hamza wrote:
> Hi Martin,
>
>
> By  select color panel I mean:
>
>  The dropdown or opened window where we  can  set color value of an object.
>
> I can not set directly the code color found in the theme file?
>
> Example: colorframeactive=-1610612722
>          empty_color=-2147483647
>
Works for me.

Martin


_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
mse
Reply | Threaded
Open this post in threaded view
|

Re: [MSEide-MSEgui-talk] About Color

mse
Administrator
On Thursday 22 November 2018 17:10:16 mohamed hamza wrote:
> Why some others values gives me : exception - Invalid Color and there is a
> loop on that message which forces me to restart?
>
> Ex color = 16119551
>
Because the values are not listed in the color tables in
lib/common/graphics/msegraphutils.pas
Values without +/- are 32 bit hex numbers, most significant nibble is the
group number.
"1 6119551" -> there is no group "1". Defined groups are
"
 cl_functional = colorty($80000000);
 cl_mapped =     colorty($90000000);
 cl_namedrgb =   colorty($a0000000);
 cl_user =       colorty($b0000000);
"
or "0" for direct RGB values.

git master c1a2765c887858d9a22c45c355317b1d4035bac9 does not throw exceptions
in case of invalid colors.

Martin


_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Reply | Threaded
Open this post in threaded view
|

Re: [MSEide-MSEgui-talk] About Color

mohamed hamza
So the  lib/common/graphics/msegraphutils.pas was somewhere changed according to theme file?

Regards

Med

De : Martin Schreiber <[hidden email]>
Envoyé : jeudi 22 novembre 2018 16:45
À : [hidden email]
Objet : Re: [MSEide-MSEgui-talk] About Color
 
On Thursday 22 November 2018 17:10:16 mohamed hamza wrote:
> Why some others values gives me : exception - Invalid Color and there is a
> loop on that message which forces me to restart?
>
> Ex color = 16119551
>
Because the values are not listed in the color tables in
lib/common/graphics/msegraphutils.pas
Values without +/- are 32 bit hex numbers, most significant nibble is the
group number.
"1 6119551" -> there is no group "1". Defined groups are
"
 cl_functional = colorty($80000000);
 cl_mapped =     colorty($90000000);
 cl_namedrgb =   colorty($a0000000);
 cl_user =       colorty($b0000000);
"
or "0" for direct RGB values.

git master c1a2765c887858d9a22c45c355317b1d4035bac9 does not throw exceptions
in case of invalid colors.

Martin


_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
mse
Reply | Threaded
Open this post in threaded view
|

Re: [MSEide-MSEgui-talk] About Color

mse
Administrator
On Thursday 22 November 2018 18:48:08 mohamed hamza wrote:
> So the  lib/common/graphics/msegraphutils.pas was somewhere changed
> according to theme file?
>
You mean there are color values in the theme files which are now invalid?
Examples? -1610612722 is cl_dkgreen, -2147483647 is cl_default.

Martin


_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Reply | Threaded
Open this post in threaded view
|

Re: [MSEide-MSEgui-talk] About Color

mohamed hamza
I got a Demo of  software  that  has  been developed with MseIde-MseGui then
inevitably Mseide-library was revised ?

Regards

Med
   

De : Martin Schreiber <[hidden email]>
Envoyé : jeudi 22 novembre 2018 17:59
À : [hidden email]
Objet : Re: [MSEide-MSEgui-talk] About Color
 
On Thursday 22 November 2018 18:48:08 mohamed hamza wrote:
> So the  lib/common/graphics/msegraphutils.pas was somewhere changed
> according to theme file?
>
You mean there are color values in the theme files which are now invalid?
Examples? -1610612722 is cl_dkgreen, -2147483647 is cl_default.

Martin


_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
mse
Reply | Threaded
Open this post in threaded view
|

Re: [MSEide-MSEgui-talk] About Color

mse
Administrator
On 11/22/18 7:09 PM, mohamed hamza wrote:
> I got a Demo of  software  that  has  been developed with MseIde-MseGui then
>
> inevitably Mseide-library was revised ?
>
I don't understand. MSEide+MSEgui will be improved regularly of course.
Which demo software?

Martin


_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Reply | Threaded
Open this post in threaded view
|

Re: [MSEide-MSEgui-talk] About Color

mohamed hamza
Acosys from  Sri Wahono.

Med

Nb:

There is also Azkin Addon in mseuniverse but it's not complete.I think because some colors values
of skin can not be loaded  ( for example 16119551). Excuse If I am wrong.

De : Martin Schreiber <[hidden email]>
Envoyé : jeudi 22 novembre 2018 19:14
À : [hidden email]
Objet : Re: [MSEide-MSEgui-talk] About Color
 
On 11/22/18 7:09 PM, mohamed hamza wrote:
> I got a Demo of  software  that  has  been developed with MseIde-MseGui then
>
> inevitably Mseide-library was revised ?
>
I don't understand. MSEide+MSEgui will be improved regularly of course.
Which demo software?

Martin


_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
mse
Reply | Threaded
Open this post in threaded view
|

Re: [MSEide-MSEgui-talk] About Color

mse
Administrator
On Thursday 22 November 2018 20:34:52 mohamed hamza wrote:
> Acosys from  Sri Wahono.
>
> Med
>
> Nb:
>
> There is also Azkin Addon in mseuniverse but it's not complete.I think
> because some colors values of skin can not be loaded  ( for example
> 16119551). Excuse If I am wrong.

Numbers in statfiles are decimal. Numbers in MSEgui tcoloredit are hexadecimal
by default. Please enter "+16119551" -> the color is is RGB $F5F6FF.

Martin


_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Reply | Threaded
Open this post in threaded view
|

Re: [MSEide-MSEgui-talk] About Color

mohamed hamza
How to set hint font ?  ( Font.color only )  .  Now it's white/yellow instead black / yellow because I
Changed the default skin of my project  using tskincontroller?

Regards.

Med.

De : Martin Schreiber <[hidden email]>
Envoyé : vendredi 23 novembre 2018 07:24
À : [hidden email]
Objet : Re: [MSEide-MSEgui-talk] About Color
 
On Thursday 22 November 2018 20:34:52 mohamed hamza wrote:
> Acosys from  Sri Wahono.
>
> Med
>
> Nb:
>
> There is also Azkin Addon in mseuniverse but it's not complete.I think
> because some colors values of skin can not be loaded  ( for example
> 16119551). Excuse If I am wrong.

Numbers in statfiles are decimal. Numbers in MSEgui tcoloredit are hexadecimal
by default. Please enter "+16119551" -> the color is is RGB $F5F6FF.

Martin


_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
mse
Reply | Threaded
Open this post in threaded view
|

Re: [MSEide-MSEgui-talk] About Color

mse
Administrator
On Friday 23 November 2018 21:57:13 mohamed hamza wrote:
> How to set hint font ?  ( Font.color only )  .  Now it's white/yellow
> instead black / yellow because I Changed the default skin of my project
> using tskincontroller?
>
thintwidget uses the stockfont stf_hint which was missing in
tskincontroller.font_* properties. Fixed in git master
05bfb42394d28995c8eb796449d47298b48f91b9.

Martin


_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
12