Вверх ↑
Разработчик
Ответов: 26113
Рейтинг: 2126
#1: 2019-02-08 23:25:32 ЛС | профиль | цитата
Применение компонентов набора DocumentTemplate. ПКМ на любом символе вызывает меню выбора цвета.

Схема


Add(Memory,6570870,826,259)
{
@Hint=#4:Text|
Default=String(Текст поверх всех окон)
AddHint(53,35,36,13,@Hint)
}
Add(WinTools,5488021,714,147)
{
Point(doTransparentColor)
Point(doRedraw)
link(Handle,5614416:Handle,[(720,131)(552,131)(552,222)(580,222)])
}
Add(MainForm,5614416,560,140)
{
Left=20
Top=105
Width=1544
Height=238
Color=12632256
Font=[MS Sans Serif,8,0,12632256,1]
Ctl3D=0
WinStyle=1
Caption="ScreenshotOGl"
BorderStyle=0
DragForm=0
Position=1
Point(onResize)
Point(Close)
Point(doPicture)
Point(MouseX)
Point(MouseY)
Point(onMouseMove)
Point(onMouseDown)
Point(onKeyDown)
Point(Handle)
Point(doVisible)
Point(onHide)
Point(onShow)
Point(doAlphaBlendValue)
Point(onPaint)
Point(Width)
Point(Height)
link(onCreate,10883592:doText,[])
link(onMouseDown,3217432:doEvent,[(635,181)(635,237)])
link(onPaint,16077519:doValue,[(606,209)(606,398)])
}
Add(ColorDialog,9765505,931,238)
{
link(onSelect,12795049:doEvent1,[])
}
Add(DocumentTemplate,6120981,770,392)
{
DrawSource=2
Name="drm_1"
link(onDraw,9988110:doData,[])
link(Bitmap,16077519:Value,[(776,383)(762,383)(762,432)(664,432)])
}
BEGIN_SDK
Add(Print_Text,1384778,-3,-3)
{
Name="text1"
Width=100
Height=50
Font=[MS Sans Serif,30,1,16711680,204]
Vertical=1
}
END_SDK
Add(VisualStrings,10883592,658,154)
{
Lines=#1:1|
Point(doText)
Point(onText)
link(onText,5488021:doPopup,[])
}
Add(PC_TextParameters,14122499,714,392)
{
Document="drm_1"
link(onSet,6120981:doDraw,[])
link(Parameters,1853880:GetData,[])
}
Add(FormatStr,6283741,770,322)
{
DataCount=4
Mask="text1|%4|0,0,%1,%2|Arial,34,,%3,|,,|,|,|,,,\r\n\r\n"
Point(FString)
link(onFString,1853880:doData,[(809,328)(809,363)(704,363)(704,328)])
link(Str1,5614416:Width,[(776,313)(587,313)])
link(Str2,5614416:Height,[(783,306)(594,306)])
link(Str3,2510506:Value,[])
link(Str4,6570870:Value,[(797,299)(832,299)])
}
Add(EventFromData,1853880,714,322)
{
link(onEvent,6283741:doString,[])
}
Add(Memory,16077519,658,392)
{
link(onData,14122499:doSet,[])
}
Add(SelectColor,10256394,826,343)
{
Color=12632256
}
Add(DoData,9988110,826,392)
{
link(onEventData,5488021:doTransparentColor,[(865,398)(865,230)(694,230)(694,181)])
link(Data,10256394:Result,[])
}
Add(IndexToChanel,3217432,882,231)
{
link(onEvent2,9765505:doOpen,[])
}
Add(Memory,2510506,784,259)
{
@Hint=#5:Color|
Default=Integer(14120960)
AddHint(-78,-15,39,13,@Hint)
}
Add(Hub,12795049,980,238)
{
link(onEvent1,2510506:doValue,[(1005,244)(1005,223)(774,223)(774,265)])
link(onEvent2,5488021:doRedraw,[(1012,251)(1012,216)(704,216)(704,188)])
}

карма: 22

0