Re: [MSEide-MSEgui-talk] About Color

2018-12-01 Thread mohamed hamza
I have a segment fault error when setting face using onbeforeUpdate event?

Ex:
if ainfo.instance.classname='trichbutton' then
trichbutton(ainfo.instance).facemouse.template:=tcustomface(f_buttonmouse).template;


De : mohamed hamza 
Envoyé : vendredi 30 novembre 2018 13:53
À : General list for MSEide+MSEgui
Objet : Re: [MSEide-MSEgui-talk] About Color

thank you for your lighting.

Med

De : Graeme Geldenhuys 
Envoyé : vendredi 30 novembre 2018 11:02
À : mseide-msegui-talk@lists.sourceforge.net
Objet : Re: [MSEide-MSEgui-talk] About Color

On 2018-11-30 9:09 a.m., mohamed hamza wrote:
> All  I know is  that msegraphutils defines the colors in HEX ( $n..n).


FPC, Lazarus LCL and fpGUI does the same - in the frameworks and
application code, hex values are always used for colors.

My comment was relating to when such values or properties are streamed
to a file. MSEgui is in the same boat. In this situation, the color
values are then persisted as integer values.  See MSEgui's stat files,
FPC's ini output, Lazarus's lfm files etc as examples of what I mean.


Other language frameworks tend to save color values as individual RGB
channel values, or as a large single hex value.

For example, let look at Java...

==
import java.awt.Color;

public class Test {

public static void main(String[] args) {
Color c = Color.CYAN;
System.out.println(c.toString());
}

}
==

Output:

> java Test
java.awt.Color[r=0,g=255,b=255]



FPC and Delphi based applications would output the value 65535 (if it
used RRGGBB format) or 16776960 (if it used BBGGRR format).

Of all these examples, I know which format I find easier to read and
understand.

Regards,
  Graeme

--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] About Color

2018-11-30 Thread mohamed hamza
thank you for your lighting.

Med

De : Graeme Geldenhuys 
Envoyé : vendredi 30 novembre 2018 11:02
À : mseide-msegui-talk@lists.sourceforge.net
Objet : Re: [MSEide-MSEgui-talk] About Color

On 2018-11-30 9:09 a.m., mohamed hamza wrote:
> All  I know is  that msegraphutils defines the colors in HEX ( $n..n).


FPC, Lazarus LCL and fpGUI does the same - in the frameworks and
application code, hex values are always used for colors.

My comment was relating to when such values or properties are streamed
to a file. MSEgui is in the same boat. In this situation, the color
values are then persisted as integer values.  See MSEgui's stat files,
FPC's ini output, Lazarus's lfm files etc as examples of what I mean.


Other language frameworks tend to save color values as individual RGB
channel values, or as a large single hex value.

For example, let look at Java...

==
import java.awt.Color;

public class Test {

public static void main(String[] args) {
Color c = Color.CYAN;
System.out.println(c.toString());
}

}
==

Output:

> java Test
java.awt.Color[r=0,g=255,b=255]



FPC and Delphi based applications would output the value 65535 (if it
used RRGGBB format) or 16776960 (if it used BBGGRR format).

Of all these examples, I know which format I find easier to read and
understand.

Regards,
  Graeme

--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] About Color

2018-11-30 Thread Graeme Geldenhuys
On 2018-11-30 9:09 a.m., mohamed hamza wrote:
> All  I know is  that msegraphutils defines the colors in HEX ( $n..n).


FPC, Lazarus LCL and fpGUI does the same - in the frameworks and
application code, hex values are always used for colors.

My comment was relating to when such values or properties are streamed
to a file. MSEgui is in the same boat. In this situation, the color
values are then persisted as integer values.  See MSEgui's stat files,
FPC's ini output, Lazarus's lfm files etc as examples of what I mean.


Other language frameworks tend to save color values as individual RGB
channel values, or as a large single hex value.

For example, let look at Java...

==
import java.awt.Color;

public class Test {

public static void main(String[] args) {
Color c = Color.CYAN;
System.out.println(c.toString());
}

}
==

Output:

> java Test
java.awt.Color[r=0,g=255,b=255]



FPC and Delphi based applications would output the value 65535 (if it
used RRGGBB format) or 16776960 (if it used BBGGRR format).

Of all these examples, I know which format I find easier to read and
understand.

Regards,
  Graeme

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] About Color

2018-11-30 Thread mohamed hamza
All  I know is  that msegraphutils defines the colors in HEX ( $n..n) . I do 
not know why some

third parties define theirs as decimals  in *.ini files?

Med

De : Graeme Geldenhuys 
Envoyé : jeudi 29 novembre 2018 10:12
À : mseide-msegui-talk@lists.sourceforge.net
Objet : Re: [MSEide-MSEgui-talk] About Color

On 2018-11-23 7:24 a.m., Martin Schreiber wrote:
> Numbers in statfiles are decimal. Numbers in MSEgui tcoloredit are hexadecimal
> by default. Please enter "+16119551" -> the color is is RGB $F5F6FF.

fpGUI does similar, and so does Lazarus LCL and FPC's graphics support.
I must admit, I find it a bit annoying why Pascal-based frameworks
choose to save color as decimal values (to disk), when most other
languages prefer to use the more well known hexadecimal format in their
"save to file" routines.

ps:
 Yes I obviously know they mean the same thing, must when anybody works
 with color values they most likely reference them via RGB (hexadecimal)
 notation.


Regards,
  Graeme

--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] About Color

2018-11-29 Thread Graeme Geldenhuys
On 2018-11-23 7:24 a.m., Martin Schreiber wrote:
> Numbers in statfiles are decimal. Numbers in MSEgui tcoloredit are 
> hexadecimal 
> by default. Please enter "+16119551" -> the color is is RGB $F5F6FF.

fpGUI does similar, and so does Lazarus LCL and FPC's graphics support.
I must admit, I find it a bit annoying why Pascal-based frameworks
choose to save color as decimal values (to disk), when most other
languages prefer to use the more well known hexadecimal format in their
"save to file" routines.

ps:
 Yes I obviously know they mean the same thing, must when anybody works
 with color values they most likely reference them via RGB (hexadecimal)
 notation.


Regards,
  Graeme

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] About Color

2018-11-27 Thread mohamed hamza
I do not need it. Then probably others developers do not use face  propertie 
with zebra.

Med


De : Martin Schreiber 
Envoyé : mardi 27 novembre 2018 16:42
À : mseide-msegui-talk@lists.sourceforge.net
Objet : Re: [MSEide-MSEgui-talk] About Color

On 11/27/18 5:10 PM, mohamed hamza wrote:
> In this  case we do not have to set skincontroller grid.datacols.face?
>
The cell and zebra color is the background color of a grid cell, the
face is drawn as second level, the text is the third.
For fancy zebra rows we probably need a tdatacol.facezebra property and
the according support in tfacecomp. Do you need it? It again blows up
the library.

Martin


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] About Color

2018-11-27 Thread Martin Schreiber
On 11/27/18 5:10 PM, mohamed hamza wrote:
> In this  case we do not have to set skincontroller grid.datacols.face?
> 
The cell and zebra color is the background color of a grid cell, the
face is drawn as second level, the text is the third.
For fancy zebra rows we probably need a tdatacol.facezebra property and
the according support in tfacecomp. Do you need it? It again blows up
the library.

Martin


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] About Color

2018-11-27 Thread mohamed hamza
In this  case we do not have to set skincontroller grid.datacols.face?

Med

De : Martin Schreiber 
Envoyé : mardi 27 novembre 2018 15:43
À : mseide-msegui-talk@lists.sourceforge.net
Objet : Re: [MSEide-MSEgui-talk] About Color

On 11/27/18 4:37 PM, mohamed hamza wrote:
> grid.zebra  is not  showed   when skincontroller.active is on .
> New color is added to skincontroller  (cl_zebra )  RGB:=black
> BTW I show only the black background in the selected column of the grid
>
> grid.zebra.height:=1
>  start  1
>  step  2
> Med.
>
Works for me, see attachment.

Martin
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] About Color

2018-11-27 Thread Martin Schreiber
On 11/27/18 4:37 PM, mohamed hamza wrote:
> grid.zebra  is not  showed   when skincontroller.active is on .
> New color is added to skincontroller  (cl_zebra )  RGB:=black
> BTW I show only the black background in the selected column of the grid
> 
> grid.zebra.height:=1
>  start  1
>  step  2
> Med.
> 
Works for me, see attachment.

Martin
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] About Color

2018-11-27 Thread mohamed hamza
grid.zebra  is not  showed   when skincontroller.active is on .
New color is added to skincontroller  (cl_zebra )  RGB:=black
BTW I show only the black background in the selected column of the grid

grid.zebra.height:=1
 start  1
 step  2
Med.



De : Martin Schreiber 
Envoyé : mardi 27 novembre 2018 13:36
À : mseide-msegui-talk@lists.sourceforge.net
Objet : Re: [MSEide-MSEgui-talk] About Color

On 11/27/18 1:36 PM, mohamed hamza wrote:
> I found your last update (solution ) smarter.
>
I made the additional skincontroller properties because of orthogonality
only. Normally one uses the tabbar_*_tab_ properties for skin because it
can be set for the different orientations. The tabpage properties one
normally uses for overrides of individual pages.
BTW, there is tskincontroller.onbeforeupdate and onafterupdate where it
is possible to do any setting of the loaded components.

Martin


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] About Color

2018-11-27 Thread Martin Schreiber
On 11/27/18 1:36 PM, mohamed hamza wrote:
> I found your last update (solution ) smarter.
> 
I made the additional skincontroller properties because of orthogonality
only. Normally one uses the tabbar_*_tab_ properties for skin because it
can be set for the different orientations. The tabpage properties one
normally uses for overrides of individual pages.
BTW, there is tskincontroller.onbeforeupdate and onafterupdate where it
is possible to do any setting of the loaded components.

Martin


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] About Color

2018-11-27 Thread mohamed hamza
I found your last update (solution ) smarter.

Med

De : Martin Schreiber 
Envoyé : lundi 26 novembre 2018 17:55
À : mseide-msegui-talk@lists.sourceforge.net
Objet : Re: [MSEide-MSEgui-talk] About Color

On Monday 26 November 2018 18:47:46 mohamed hamza wrote:
> I think we can not set up grid. fixedRow.height and zebra in the
> skincontoller?

No, because it depends on the individual grids. The zebra color can be set by
a color definition for cl_zebra.

Martin


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] About Color

2018-11-26 Thread Martin Schreiber
On Monday 26 November 2018 18:47:46 mohamed hamza wrote:
> I think we can not set up grid. fixedRow.height and zebra in the
> skincontoller?

No, because it depends on the individual grids. The zebra color can be set by 
a color definition for cl_zebra.

Martin


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] About Color

2018-11-26 Thread mohamed hamza
I think we can not set up grid. fixedRow.height and zebra in the skincontoller?

De : Martin Schreiber 
Envoyé : lundi 26 novembre 2018 16:46
À : mseide-msegui-talk@lists.sourceforge.net
Objet : Re: [MSEide-MSEgui-talk] About Color

On Monday 26 November 2018 15:23:44 mohamed hamza wrote:
> We  have ttabPage.FaceActivePage but not
> tskincontrolter.tabpage.FaceActivePage?
>
Please use tabbar_*_tab_faceactive.

Martin


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] About Color

2018-11-26 Thread Martin Schreiber
On Monday 26 November 2018 15:23:44 mohamed hamza wrote:
> We  have ttabPage.FaceActivePage but not 
> tskincontrolter.tabpage.FaceActivePage?
>
Please use tabbar_*_tab_faceactive.

Martin


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] About Color

2018-11-26 Thread mohamed hamza
We  have ttabPage.FaceActivePage but not  
tskincontrolter.tabpage.FaceActivePage?

Med

De : Martin Schreiber 
Envoyé : dimanche 25 novembre 2018 17:35
À : mseide-msegui-talk@lists.sourceforge.net
Objet : Re: [MSEide-MSEgui-talk] About Color

On Sunday 25 November 2018 17:41:26 mohamed hamza wrote:
> I want to use linecolorfix  propertie of  grid  but I do  not find it in
> skincontroler.grid.
>
> I can set  linecolorfix  propertie of  grid object  without using
> skincontroler .
>
> (twgrid.linecolor  and  twgrid.linecolorfix)
>
The default is cl_gridlinefix -> add an item for cl_gridlinefix to
tskincontroller.colors, please see attachment.

Martin
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] About Color

2018-11-25 Thread Martin Schreiber
On Sunday 25 November 2018 17:41:26 mohamed hamza wrote:
> I want to use linecolorfix  propertie of  grid  but I do  not find it in
> skincontroler.grid.
>
> I can set  linecolorfix  propertie of  grid object  without using
> skincontroler .
>
> (twgrid.linecolor  and  twgrid.linecolorfix)
>
The default is cl_gridlinefix -> add an item for cl_gridlinefix to 
tskincontroller.colors, please see attachment.

Martin
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] About Color

2018-11-25 Thread mohamed hamza
I want to use linecolorfix  propertie of  grid  but I do  not find it in 
skincontroler.grid.

I can set  linecolorfix  propertie of  grid object  without using skincontroler 
.

(twgrid.linecolor  and  twgrid.linecolorfix)

Med



De : Martin Schreiber 
Envoyé : samedi 24 novembre 2018 08:17
À : mseide-msegui-talk@lists.sourceforge.net
Objet : Re: [MSEide-MSEgui-talk] About Color

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
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] About Color

2018-11-24 Thread Martin Schreiber
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
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] About Color

2018-11-23 Thread 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 
Envoyé : vendredi 23 novembre 2018 07:24
À : mseide-msegui-talk@lists.sourceforge.net
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
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] About Color

2018-11-22 Thread Martin Schreiber
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
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] About Color

2018-11-22 Thread 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 
Envoyé : jeudi 22 novembre 2018 19:14
À : mseide-msegui-talk@lists.sourceforge.net
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
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] About Color

2018-11-22 Thread Martin Schreiber
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
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] About Color

2018-11-22 Thread 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 
Envoyé : jeudi 22 novembre 2018 17:59
À : mseide-msegui-talk@lists.sourceforge.net
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
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] About Color

2018-11-22 Thread Martin Schreiber
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
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] About Color

2018-11-22 Thread mohamed hamza
So the  lib/common/graphics/msegraphutils.pas was somewhere changed according 
to theme file?

Regards

Med

De : Martin Schreiber 
Envoyé : jeudi 22 novembre 2018 16:45
À : mseide-msegui-talk@lists.sourceforge.net
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($8000);
 cl_mapped = colorty($9000);
 cl_namedrgb =   colorty($a000);
 cl_user =   colorty($b000);
"
or "0" for direct RGB values.

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

Martin


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] About Color

2018-11-22 Thread Martin Schreiber
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($8000);
 cl_mapped = colorty($9000);
 cl_namedrgb =   colorty($a000);
 cl_user =   colorty($b000);
"
or "0" for direct RGB values.

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

Martin


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] About Color

2018-11-22 Thread 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 
Envoyé : jeudi 22 novembre 2018 15:48
À : mseide-msegui-talk@lists.sourceforge.net
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
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] About Color

2018-11-22 Thread Martin Schreiber
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
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] About Color

2018-11-22 Thread 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 
Envoyé : mardi 20 novembre 2018 17:47
À : mseide-msegui-talk@lists.sourceforge.net
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
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] About Color

2018-11-20 Thread Martin Schreiber
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
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] About Color

2018-11-20 Thread 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 
Envoyé : mardi 20 novembre 2018 16:50
À : mseide-msegui-talk@lists.sourceforge.net
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
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] About Color

2018-11-20 Thread Martin Schreiber
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
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] About Color

2018-11-20 Thread 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 
Envoyé : mardi 20 novembre 2018 14:25
À : mseide-msegui-talk@lists.sourceforge.net
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.
"
:= strtoint();
"
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
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


black.thm
Description: black.thm
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] About Color

2018-11-20 Thread Martin Schreiber
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.
"
:= strtoint();
"
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
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] About Color

2018-11-20 Thread 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 
Envoyé : mardi 20 novembre 2018 12:41
À : mseide-msegui-talk@lists.sourceforge.net
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
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] About Color

2018-11-20 Thread Martin Schreiber
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
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk