MAX DotNet 透明界面 参考代码
MaxScriptMAX脚本 2975 38
实名

通过了实名认证的内容创造者

发布于 2015-5-27 20:22:23

您需要 登录 才可以下载或查看,没有账号?注册

x
        
        ------------------------------------------------------------------------------
        -- 本代码由MAX DotNet 编辑器输出
        -- 对此文件的更改可能会导致不正确的行为,
        -- 并且如果重新生成代码,这些更改将会丢失。
        -- 生成此代码的工具为测试版本,作者并不能保证代码的完全可用性。
        -- 如发现错误或有任何好建议欢迎加群探讨:364518591
        -- BY:蓬荜生徽 2015年元旦发布~~
        ------------------------------------------------------------------------------
        Form1 = dotNetObject "MaxCustomControls.MaxForm"
        button1 = dotNetObject "System.Windows.Forms.Button"
        button2 = dotNetObject "System.Windows.Forms.Button"
        button3 = dotNetObject "System.Windows.Forms.Button"
        button4 = dotNetObject "System.Windows.Forms.Button"
        listBox1 = dotNetObject "System.Windows.Forms.ListBox"
        trackBar1 = dotNetObject "System.Windows.Forms.TrackBar"
        numericUpDown1 = dotNetObject "System.Windows.Forms.NumericUpDown"
        checkedListBox1 = dotNetObject "System.Windows.Forms.CheckedListBox"
        -- button1
        button1.BackColor = (dotNetClass "System.Drawing.Color").Black
        button1.FlatStyle = (dotNetClass "System.Windows.Forms.FlatStyle").Flat
        button1.ForeColor = (dotNetClass "System.Drawing.Color").Coral
        button1.Location = dotNetObject "System.Drawing.Point" 12 12
        button1.Name = "button1"
        button1.Size = dotNetObject "System.Drawing.Size" 107 45
        button1.TabIndex = 0
        button1.Text = "button1"
        button1.UseVisualStyleBackColor = False
        -- button2
        button2.BackColor = (dotNetClass "System.Drawing.Color").Black
        button2.FlatStyle = (dotNetClass "System.Windows.Forms.FlatStyle").Flat
        button2.ForeColor = (dotNetClass "System.Drawing.Color").Coral
        button2.Location = dotNetObject "System.Drawing.Point" 12 65
        button2.Name = "button2"
        button2.Size = dotNetObject "System.Drawing.Size" 107 45
        button2.TabIndex = 1
        button2.Text = "button2"
        button2.UseVisualStyleBackColor = False
        -- button3
        button3.BackColor = (dotNetClass "System.Drawing.Color").Black
        button3.FlatStyle = (dotNetClass "System.Windows.Forms.FlatStyle").Flat
        button3.ForeColor = (dotNetClass "System.Drawing.Color").Coral
        button3.Location = dotNetObject "System.Drawing.Point" 12 118
        button3.Name = "button3"
        button3.Size = dotNetObject "System.Drawing.Size" 107 45
        button3.TabIndex = 2
        button3.Text = "button3"
        button3.UseVisualStyleBackColor = False
        -- button4
        button4.BackColor = (dotNetClass "System.Drawing.Color").Black
        button4.FlatStyle = (dotNetClass "System.Windows.Forms.FlatStyle").Flat
        button4.ForeColor = (dotNetClass "System.Drawing.Color").Coral
        button4.Location = dotNetObject "System.Drawing.Point" 12 171
        button4.Name = "button4"
        button4.Size = dotNetObject "System.Drawing.Size" 107 45
        button4.TabIndex = 3
        button4.Text = "button4"
        button4.UseVisualStyleBackColor = False
        -- listBox1
        listBox1.BackColor = (dotNetClass "System.Drawing.Color").Black
        listBox1.ForeColor = (dotNetClass "System.Drawing.Color").Yellow
        listBox1.FormattingEnabled = True
        listBox1.ItemHeight = 12
        listBox1.Items.Add("师傅速度")
        listBox1.Items.Add("阿斯蒂芬可能")
        listBox1.Items.Add("打三分连接功能")
        listBox1.Items.Add("下老坎村vnb")
        listBox1.Items.Add("豆腐干放歌")
        listBox1.Items.Add("公司的罚款缴纳")
        listBox1.Items.Add("斯蒂芬")
        listBox1.Location = dotNetObject "System.Drawing.Point" 125 12
        listBox1.Name = "listBox1"
        listBox1.Size = dotNetObject "System.Drawing.Size" 120 208
        listBox1.TabIndex = 4
        -- trackBar1
        trackBar1.BackColor = (dotNetClass "System.Drawing.Color").Black
        trackBar1.Location = dotNetObject "System.Drawing.Point" 12 223
        trackBar1.Name = "trackBar1"
        trackBar1.Size = dotNetObject "System.Drawing.Size" 360 45
        trackBar1.TabIndex = 5
        -- numericUpDown1
        numericUpDown1.BackColor = (dotNetClass "System.Drawing.Color").Black
        numericUpDown1.ForeColor = (dotNetClass "System.Drawing.Color").YellowGreen
        numericUpDown1.Location = dotNetObject "System.Drawing.Point" 252 13
        numericUpDown1.Name = "numericUpDown1"
        numericUpDown1.Size = dotNetObject "System.Drawing.Size" 120 21
        numericUpDown1.TabIndex = 6
        -- checkedListBox1
        checkedListBox1.BackColor = (dotNetClass "System.Drawing.Color").Black
        checkedListBox1.ForeColor = (dotNetClass "System.Drawing.Color").Aqua
        checkedListBox1.FormattingEnabled = True
        checkedListBox1.Items.Add("身体好")
        checkedListBox1.Items.Add("东方红")
        checkedListBox1.Items.Add("东方红")
        checkedListBox1.Items.Add("sdh就")
        checkedListBox1.Items.Add("对方黄光裕和")
        checkedListBox1.Items.Add("你技能")
        checkedListBox1.Location = dotNetObject "System.Drawing.Point" 252 41
        checkedListBox1.Name = "checkedListBox1"
        checkedListBox1.Size = dotNetObject "System.Drawing.Size" 120 180
        checkedListBox1.TabIndex = 7
        -- Form1
        Form1.BackColor = (dotNetClass "System.Drawing.Color").LightPink
        Form1.ClientSize = dotNetObject "System.Drawing.Size" 383 281
        Form1.Controls.Add(checkedListBox1)
        Form1.Controls.Add(numericUpDown1)
        Form1.Controls.Add(trackBar1)
        Form1.Controls.Add(listBox1)
        Form1.Controls.Add(button4)
        Form1.Controls.Add(button3)
        Form1.Controls.Add(button2)
        Form1.Controls.Add(button1)
        Form1.FormBorderStyle = (dotNetClass "System.Windows.Forms.FormBorderStyle").SizableToolWindow
        Form1.Name = "Form1"
        Form1.Opacity = 0.75
        Form1.ShowIcon = False
        Form1.StartPosition = (dotNetClass "System.Windows.Forms.FormStartPosition").CenterScreen
        Form1.Text = "Form1"
        Form1.TransparencyKey = (dotNetClass "System.Drawing.Color").LightPink
--         Form1.Show()
        thePtr = DotNetObject "System.IntPtr" (windows.getMAXHWND())
        theHwnd = DotNetObject "MaxCustomControls.Win32HandleWrapper" thePtr
        Form1.Show(theHwnd)

--         Form1.Dispose() --这句是关闭


QQ截图20150527201741.png

评分

参与人数 1元素币 +30 活跃度 +10 展开 理由
元素界王神... + 30 + 10

查看全部评分

还没有设置签名!您可以在此展示你的链接,或者个人主页!
使用道具 <
佛经forever  发表于 2015-11-20 09:14:21  
3#
唉,看看下面仅有的回复说明这个论坛里大部分是美术,程序很少,.net就更高深。。。曲高和寡了啊。。。我顶。。
回复 收起回复
使用道具
xiao小一  发表于 2015-11-27 23:26:17  
4#
友情帮顶~{:1_141:}
徽徽V5~
回复 收起回复
使用道具
风灵异火  发表于 2015-12-10 16:11:02  
5#
学习学习
回复 收起回复
使用道具
gemini8023  发表于 2015-12-14 07:25:35  
6#
元素那么大,我想来看看!
回复 收起回复
使用道具
萌布玩游戏美术  发表于 2015-12-25 16:57:14  
7#
天下武功出少林,世界资源入元素!
回复 收起回复
使用道具
佛经forever  发表于 2015-12-30 09:00:00  
8#
想要成大触,天天上元素!
回复 收起回复
使用道具
dreamdeath  发表于 2016-1-1 11:41:35  
9#
带你赚币带你飞,元素里面有正妹!
回复 收起回复
使用道具
koko1989  发表于 2016-8-8 17:42:08  
10#
佛经forever 发表于 2015-11-20 09:14
唉,看看下面仅有的回复说明这个论坛里大部分是美术,程序很少,.net就更高深。。。曲高和寡了啊。。。我顶 ...

可以建议站长增加一个代码框体,更好的分享代码细节,当然也便于复制粘贴!
回复 收起回复
使用道具
啊嘟嘟飛  发表于 2016-12-5 11:09:26  
11#
强势强势
回复 收起回复
使用道具
zhoulijing  发表于 2017-1-12 18:00:45  
12#
首发必需微元素,荣耀加身装备酷!
回复 收起回复
使用道具
zhoulijing  发表于 2017-1-16 20:22:30  
13#
看看
回复 收起回复
使用道具
zhoulijing  发表于 2017-1-16 20:22:41  
14#
看看
回复 收起回复
使用道具
zhoulijing  发表于 2017-1-20 14:59:18  
15#
yuansubei
回复 收起回复
使用道具
老h马  发表于 2017-2-18 13:08:54  
16#
不错 学习了
回复 收起回复
使用道具
遺ご莣  发表于 2018-10-15 14:27:05  
17#
元素那么大,我想来看看!想要成大触,天天上元素!
回复 收起回复
使用道具
qq_皮皮怪_eQq  发表于 2018-10-16 00:08:02  
18#
感谢分享
回复 收起回复
使用道具
瀚哈哈哈  发表于 2018-10-17 01:40:57  
19#
666666666666666666
回复 收起回复
使用道具
bryi  发表于 2018-10-19 09:14:57  
20#
多谢分享
回复 收起回复
使用道具
12下一页
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表