3 posts Page 1 of 1
Postby sean88 » 23 Oct 2017 23:22
Hello, I try to add S/W button to the interface, but the background and skin

color is inconsistent, Please tell me how to adjust the code. Thank you.

Image

Attach this code:

===========================
<Static State='CMD_PAGE_CONTROL' Left='60' (33) Top='-34' Width='270' Height='32'

ImageLeft='80' ImageTop='50' ImageWidth='240' ImageHeight='32' PageIndex='1' >


<Button Tooltip='折叠扩展面板'

CmdID='CMD_SELECT_PAGE' Left='0' Top='-19' Width='24' Height='10' ImageLeft='86'

ImageTop='311' PageIndex='2' />



<Button Tooltip='图像处理┃渲染模式'

CmdID='CMD_POPUPMENU_VIDEO_FILTER' AltCmdID='CMD_POPUPMENU_VIDEO_DEVICE'

AltCmdID='CMD_POPUPMENU_VIDEO_SHADER'


ImageLeft="80" ImageTop="49" ImageWidth="32" ImageHeight="13"


Left="25" Top="-21" Width="32" Height="13"/>


<Image CmdID="CMD_PLAY_FILE_TYPE" Left="25" Top="-21" Width="32"

Height="13"
ImageLeft="0"

ImageTop="609" ImageWidth="32" ImageHeight="13" />



<Button Tooltip='像素着色

(调后)┃滤镜设置' CmdID='CMD_POPUPMENU_VIDEO_SHADER_POST'

AltCmdID='ID_MANAGE_FILTER'


ImageLeft="80" ImageTop="49" ImageWidth="32" ImageHeight="13"


Left="60" Top="-21" Width="32" Height="13"/>


<PicLabel CmdID='CMD_VIDEO_CODEC_FOURCC_MESSAGE' Left='60'

Top='-21' Width='32' Height='18'


ImageLeft='0' ImageTop='624' ImageWidth='32' ImageHeight='13' Transparent='1000'


MappingDB='XVID;XVIX,

DIV3;DIV4;DIV5;DIV6;AP41;COL1;DVX3;MPG3,

DIVX;MP4S;MP4V;M4S2;3IV2;3IVX;RMP4;DM4V;WV1F;FMP4;HDX4;SMP4, DX50;BLZ0;DXGM,

MP43, MP42;DIV2, MP41;MPG4;DIV1, WMV1, WMV2, WMV3, WVC1, H263;S263,

H264;X264;VSSH;AVC1;DAVC, MPEG1;MPG1, MPEG2;MPG2, MPEG, SVQ1, SVQ3, MSVC;CRAM,

FLV1;FLV4, RV10;RV20;RV30;RV40, Theo,

VP31;VP40;VP50;VP60;VP61;VP62;VP70;VP80;BINK, TSCC, YV12, YUY2, RGB;RGB24, DVSD,

jpeg;mjpg, cvid' />



<Button Tooltip='过滤器|视频处理过滤器'

CmdID='CMD_POPUPMENU_FILTER' AltCmdID='CMD_POPUPMENU_VIDEO_TRANS'


ImageLeft="80" ImageTop="49" ImageWidth="32"

ImageHeight="13"
Left="95" Top="-

21" Width="32" Height="13"/>
<PicLabel

CmdID='CMD_VIDEO_OUT_FOURCC_MESSAGE' Left='95' Top='-21' Width='32' Height='18'


ImageLeft='0' ImageTop='639'

ImageWidth='32' ImageHeight='13' Transparent='1000'


MappingDB='YUY2, RGB, DXVA, NV12, YV12, DV' />



<Button Tooltip='音频渲染

器' CmdID='CMD_POPUPMENU_AUDIO_DEVICE'


ImageLeft="80" ImageTop="49" ImageWidth="32" ImageHeight="13"


Left="130" Top="-21" Width="32" Height="13"/>


<PicLabel CmdID='CMD_AUDIO_CODEC_TAG_MESSAGE' Left='130' Top='-

21' Width='32' Height='18'


ImageLeft='0' ImageTop='655' ImageWidth='32' ImageHeight='13' Transparent='1000'




MappingDB='0x55;0x1D61346D;0x2033504D;0x33706D2E;0x5500736D;0x55756461,0x50;0x80;

0x85,0x30;0x48;0x58;0x92;0x241;0x270;0x2000;0x8192;0x10001;0x74656E64,0x8;0x2001,

0xA;0x128;0x160;0x161;0x162;0x163;0x353;0xFFFE,0x674F;0x6750;0x6751;0x676F;0x6770

;0x6771,0x2;0x3;0x11;0x16;0x17;0x18;0x19;0x20;0x23;0x24;0x26;0x31;0x32;0x54;0x56;

0x57;0x59;0x60;0x61;0x62;0x64;0x93;0x94;0x96;0x97;0x98;0x99;0x100;0x101;0x102;0x1

03;0x200;0x202;0x203;0x512;0x514;0x515;0x4096;0x4097;0x4098;0x4099;0x4100;0x5120;

0x1100736D;0x200736D;0x34616D69;0xE06D8032,0xaac0;0x53;0x63;0xFF,0x66;0x130;0x131

;0x132;0x133;0x134;0x135;0x181C;0x2004;0x345F3431;0x385F3832;0x4B4F4F43;0x6372746

1;0x6B6F6F63;0x72706973,0x0;0x70;0x71;0x72;0x73;0x74;0x75;0x76;0x77;0x78;0x79;0x8

1;0x82;0xFE;0x220;0x4451;0x6C61;0x6C75;0x6D69;0x324D4451;0x3343414D;0x3643414D;0x

434D4451;0x706C6351,0x3111,0x77A1,0xF1AC,0x22;0x5756,0x3222,0x1;0xeb27cec4' />





<Button Tooltip='输出声道' CmdID='CMD_POPUPMENU_AUDIO_CHANNEL'


ImageLeft="80" ImageTop="49" ImageWidth="32" ImageHeight="13"


Left="165" Top="-21" Width="32" Height="13"/>


<PicLabel

CmdID='CMD_AUDIO_IN_NUM_CHANNEL_MESSAGE' Left='165' Top='-21' Width='32'

Height='18'
ImageLeft='0'

ImageTop='670' ImageWidth='32' ImageHeight='13' Transparent='1000'


MappingDB='1,2,2.1;3,3.1;4,4.1;5,5.1;6,6.1;7,7.1;8' />





<Button Tooltip='输出位率' CmdID='CMD_POPUPMENU_AUDIO_SAMPLE'


ImageLeft="80" ImageTop="49" ImageWidth="32" ImageHeight="13"


Left="200" Top="-21" Width="32" Height="13"/>


<PicLabel

CmdID='CMD_AUDIO_IN_SAMPLE_RATE_MESSAGE' Left='200' Top='-21' Width='38'

Height='18'
ImageLeft='0'

ImageTop='685' ImageWidth='38' ImageHeight='13' Transparent='1000'




MappingDB='96000,48000,44100,32000,24000,22050,12000,11025,8000' />



<Label

Tooltip='软硬解切换(此处不显示的方式为在用)┃交错设置'

CmdID='CMD_VIDEO_OUT_HW_SW_MESSAGE' AltCmdID='CMD_POPUPMENU_VIDEO_DEINTERLACE'

Enabled='1' ColorX='312' ColorY='4' Left='245' Top='-21' Width='25' Height='13'

FontName='Tahoma' FontSize='10' AutoVisible='1' />



</Static>
Postby D2NP » 24 Oct 2017 09:01
I do not know
Сheck the image of the static container
maybe this is the background of the container
Width='270' ImageWidth='240' - have different widths
try add LeftMargin and RightMargin or increase image(in png file) and ImageWidth='240' to 270

<Static State='CMD_PAGE_CONTROL' LeftMargin='10' RightMargin='10' Left='60' (33) Top='-34' Width='270' Height='32'

ImageLeft='80' ImageTop='50' ImageWidth='240' ImageHeight='32' PageIndex='1' >
Postby sean88 » 24 Oct 2017 11:10
With your help, this problem has been solved. Thank you very much.
3 posts Page 1 of 1

Login

Who is online

Users browsing this forum: No registered users and 1 guest