LOGTEXT

C#: CWinCtrlLogText

This is a control for having the sentence of the chat log.

This behaviour is same as TEXT .

You can not receive a callback when this control is pressed as default. If you want to receive any callbacks, you need to set HIT flag to STYLE property.

Note

The LOG ‘s contents always requires a LOGTEXT .

LOGTEXT(Control name) {

Property 1;

Property 2;

:

:

Property n

};

Example

LOG(Chat) {
  ID = 000_000_00030;
  STYLE = ANCHOR_LEFTBOTTOM;
  POSITION = 0,OFFSET_Y;
  SIZE = WINDOW_SIZE_FULL, 80-2;
  CONTENTS_SIZE = WINDOW_SIZE_FULL, 80-2;
  CONTENTS = {
    LOGTEXT(Chat) {
      ID = 000_001_00100;
      STYLE = NOHIT;
      POSITION = 105, -44;
      CAPTION_COLOR = 0,0,0,1;
      FONT_KIND = "fn24";
      CAPTION = 000_000_00010;
      CONTENTS_SIZE = WINDOW_SIZE_FULL -235;
      LINE_SPACE = 2;
    };
  };
  COLOR = COLOR32(0,0,0,255);
  LINE_SPACE = 10;
  GROUP = SCROLLBAR(Chat);
};
SCROLLBAR(Chat) {
  ID = 000_001_00001;
  STYLE = ANCHOR_RIGHTTOP;
  COLOR = 1,1,1,0.5;
  POSITION = -2,-5;
  SIZE = 0,64-10;
};

Property

Default value

COLOR = 1,1,1,1;
CAPTION_COLOR = 1,1,1,1;

ID = Control ID

Define the control ID.

ID = 001_000_00010;

Note

If you don’t set the ID, it generates automatically from the hash value.

POSITION = X, Y

It determine the display position . By the setting of STYLE, you can change the criteria for display position.

Note

This display position determines by display position anchor flag and Base position change flag.

A text anchor flag don’t affects to the display positon.

POSITION = 32,64;

Coordinates can be specified as a percentage .

FONT_KIND = Font kind

Set the font kind

FONT_KIND = "fnt32";

CAPTION = Caption ID

Set the ID of the string .

Please refer to here .

CAPTION = 010_000_00100;

CAPTION = “string”

Set the string.

CAPTION = "Hellow world!";

CAPTION_COLOR = R,G,B,A

You can set the caption color .

Set a value in the range of 0…1.

CAPTION_OFFSET = X, Y

It adjust the caption position.

Caption offset can be specified by a percentage .

CONTENTS_SIZE = Line feed size

When the string is longer than new line width , it will be a new line automatically.

CONTENTS_SIZE = 128;  //128pixel

CONTENTS_SIZE = {50} + 32;    // screen width * 0.5 + 32

The line feed size can be specified as a percentage.

LINE_SPACE = line spacing pixel value

Set the line spacing.

LINE_SPACE = 8;       //Put an 8-dot space.

Line spacing cannot be specified as a percentage.

STYLE = Flag0|Flag1|..|Flagn

You can set the display anchor of control.

Display position anchor flag

Description

ANCHOR_DEFAULT

Set the anchor position in the upper left

Same as ANCHOR_LEFTTOP

The default control center position is set to BASE_LEFT.

ANCHOR_LEFTTOP

Set the anchor position in the upper left

The default control center position is set to BASE_LEFT.

ANCHOR_LEFT

Set the anchor position to the left.

And vertical centering

The default control center position is set to BASE_LEFT.

ANCHOR_LEFTBOTTOM

Set the anchor position to the left.

Located along the lower edge

The default control center position is set to BASE_LEFTBOTTOM.

ANCHOR_TOP

Set the anchor position to the upper side

Centering at lateral.

The default control center position is set to BASE_TOP.

ANCHOR_CENTER

Set the anchor position in the center of the window

The default control center position is set to BASE_CENTER.

ANCHOR_BOTTOM

Set the anchor position at the bottom

Centering at lateral.

The default control center position is set to BASE_BOTTOM.

ANCHOR_RIGHTTOP

Set the anchor position in the upper right

The default control center position is set to BASE_RIGHTBOTTOM.

ANCHOR_RIGHT

Set the anchor position to the right

And vertical centering

The default control center position is set to BASE_RIGHT.

ANCHOR_RIGHTBOTTOM

Set the anchor position to the right

Located along the lower edge

The default control center position is set to BASE_RIGHTBOTTOM.

You can set the center position of the control.

Base position change flag

Description

BASE_DEFAULT

It varies depending on the anchor flag .

If you do not specifically set , this value is set .

See the description of each anchor flag

BASE_LEFTTOP

Set the center position to the upper left side.

BASE_LEFT

Set the center position to the left side.

and vertical centering.

BASE_LEFTBOTTOM

Set the center position to the bottom left side.

BASE_TOP

Set the center position to the upper side.

and horizontal centering

BASE_CENTER

Set the center position to the center.

BASE_BOTTOM

Set the center position to the bottom side.

And horizontal centering.

BASE_RIGHTTOP

Set the center position to the upper right side.

BASE_RIGHT

Set the center position to the right side.

and horizontal centering

BASE_RIGHTBOTTOM

Set the center position to the bottom right side.

Change the font decoration of the caption .

You can change the font decoration of the caption .

Description

TEXT_NORMAL

No decoration

TEXT_BOLD

Bold type

TEXT_DENT

Dent type

TEXT_SHADOW

Shadow Type

Style that limits the function as follows .

Function limit style

Description

HIDE

Hide.

DRAG

Enable a dragging.

DISABLE

It is not able to pressing the control. And the control color darken.

HIT

It is able to pressing the control.