level 7
准备弄一个 visual c!!
我在编写用C语言编写GTK+程序的时候!
都将 控件封装起来了!
比如调用 button!
Button *button1;
button1 = new_button();
button1->text(button1,"确定"); //与控件关联的文本
button1->size(button1,50,60); //设置控件大小
有点像C#里面的控件源码!现在只剩下如何再封装起来!
还有其它的主窗体!
然后再继续封装!
用户只需要设置控件的属性,编写控件的事件代码就可以了!有点像VB!但是没有拖拉控件!个人能力有限阿!会慢慢的继续研究!希望有兴趣的朋友一起加入!改写...
2011年10月21日 03点10分
1
level 9
lz
不应该用C/C++,应该找门语句结尾用!符号的语言。
2011年10月21日 03点10分
4
level 5
拿微软的软件命名方式命名linux下的软件是一种对linux的侮辱
2011年10月21日 04点10分
6
level 1
楼主不愧为重复造轮子的大师。Code::Blocks,Eclipse,不都是类似VC的IDE么?Code::Blocks还能像VB一样直接画界面,支持十多种编程语言,还可以支持中文,还不满足楼主需要?
2011年10月21日 04点10分
7
level 7
支持C语言编写代码吗?连接数据库!!socket的封装控件!!
2011年10月21日 05点10分
8
level 7
QT不错,可惜就是要钱的,我发布软件的,不可能用它的!
2011年10月21日 05点10分
10
level 7
哦,看看!我只是没有见过!我想用 GTK+写界面! 用C语言来写!主要是这样!所以老是在重复!
2011年10月21日 05点10分
11
level 7
哦,这是我习惯拉!我以前用过 c++ builder和VB,现在学校又开C#,所以才模仿!不好意思!我也知道恶心!但是习惯拉!
2011年10月21日 05点10分
12
level 7
你说的这个我看了,不错阿!可惜不支持 C语言来编写代码!或者C++,!不错阿!减少了开发时间!
2011年10月21日 05点10分
13
level 7
如果是C语言的或者C++的话,就可以 给驱动编写界面来操作,内核编程!能涉及更多底层的东西!效率更好,开发出更多强大的东西!可惜阿!
2011年10月21日 05点10分
14
level 7
Code::Blocks!不错是不错,不知道支持GTK+马?
2011年10月21日 05点10分
15
level 7
我还以为楼主会说:
QT是中国的吗!中国有了吗?不是外国!!!!!
Lazarus是中国的吗!中国有了吗?不是外国!!!
Code::Blocks是中国的吗!中国有了吗?不是外国!
2011年10月21日 05点10分
16
level 7
现在编写GTK+很方便!
#include "create_window.h"
//这个控件生成的源码!!
int main (int argc, char *argv[])
{
GtkWidget *window;
gtk_init(&argc,&argv);
window = create_window();
gtk_main();
return FALSE;
}
//button2 单击事件
void button2_clicked (GtkButton *button,gpointer user_data)
{
button1->enabled(button1,TRUE);
button2->enabled(button2,FALSE);
}
//button1 单击事件
void button1_clicked (GtkButton *button,gpointer user_data)
{
button1->enabled(button1,FALSE);
button2->enabled(button2,TRUE);
}
2011年10月21日 05点10分
17
level 7
#include "gtk_new.h"
//事件定义
void button1_clicked (GtkButton *button,gpointer user_data);
void button2_clicked (GtkButton *button,gpointer user_data);
//控件定义
Window *window1;
Button *button1;
Button *button2;
//主窗体类
GtkWidget *create_window()
{
window1 = new_window(GTK_WINDOW_TOPLEVEL);
button1 = new_button();
button2 = new_button();
window1->text(window1,"测试");
button1->text(button1,"确定");
button2->text(button2,"取消");
button1->size(button1,90,30);
button2->size(button2,90,30);
button1->signal(button1,"clicked",button1_clicked);
button2->signal(button2,"clicked",button2_clicked);
window1->add(window1, button1->button,20,30);
window1->add(window1, button2->button,120,30);
button1->enabled(button1,FALSE);
return window1->window;
}
2011年10月21日 05点10分
18
level 8
这路子走得对啊
不要因人废言
楼主考虑一下是不是做个更方便的脚本语言包装GTK
new 斗地主()
2011年10月21日 05点10分
19