diff --git a/bin/PathEditor.exe b/bin/PathEditor.exe index 41babf2..68488ea 100644 Binary files a/bin/PathEditor.exe and b/bin/PathEditor.exe differ diff --git a/include/config.h b/include/config.h index 2efadda..6ad2c7f 100644 --- a/include/config.h +++ b/include/config.h @@ -6,23 +6,24 @@ // ============================================================================ // 对话框设置 -#define UI_DLG_SIZE "500x400" // 对话框默认大小 +#define UI_DLG_SIZE "800x800" // 对话框默认大小 (像素) +#define UI_DLG_MINSIZE "800x800" // 对话框最小大小 (像素) // 列表控件设置 -#define UI_LIST_ITEM_PADDING "5x5" // 列表项内边距 -#define UI_LIST_BACKCOLOR "255 255 255" // 列表背景颜色 +#define UI_LIST_ITEM_PADDING "5x5" // 列表项内边距 +#define UI_LIST_BACKCOLOR "255 255 255" // 列表背景颜色 // 按钮设置 -#define UI_BTN_RASTERSIZE "100x32" // 按钮默认大小 +#define UI_BTN_RASTERSIZE "100x32" // 按钮默认大小 // 布局间隙和边距 -#define UI_VBOX_GAP "5" // 垂直布局项间隙 -#define UI_VBOX_MARGIN "0x0" // 垂直布局外边距 -#define UI_VBOX_ALL_MARGIN "10x10" // 垂直布局总外边距 -#define UI_VBOX_ALL_GAP "5" // 垂直布局总间隙 +#define UI_VBOX_GAP "5" // 垂直布局项间隙 +#define UI_VBOX_MARGIN "0x0" // 垂直布局外边距 +#define UI_VBOX_ALL_MARGIN "10x10" // 垂直布局总外边距 +#define UI_VBOX_ALL_GAP "5" // 垂直布局总间隙 -#define UI_HBOX_GAP "10" // 水平布局项间隙 -#define UI_HBOX_MARGIN "10x10" // 水平布局外边距 -#define UI_HBOX_ALIGNMENT "ACENTER" // 水平布局对齐方式 +#define UI_HBOX_GAP "10" // 水平布局项间隙 +#define UI_HBOX_MARGIN "10x10" // 水平布局外边距 +#define UI_HBOX_ALIGNMENT "ACENTER" // 水平布局对齐方式 #endif // CONFIG_H diff --git a/src/main.c b/src/main.c index b8c795b..0a5930c 100644 --- a/src/main.c +++ b/src/main.c @@ -10,6 +10,13 @@ #include "ui.h" #include "config.h" +/* +编译命令: +Remove-Item -Path "obj\*.o" -Force -ErrorAction SilentlyContinue && mingw32-make +打包命令: +build_installer.bat +*/ + // 主函数 int main(int argc, char **argv) { @@ -84,7 +91,8 @@ int main(int argc, char **argv) // 创建对话框 dlg = IupDialog(vbox_all); IupSetAttribute(dlg, "TITLE", "编辑环境变量 (IUP版)"); - IupSetAttribute(dlg, "SIZE", UI_DLG_SIZE); // 稍微调大一点 + IupSetAttribute(dlg, "RASTERSIZE", UI_DLG_SIZE); // 对话框初始大小 (像素) + IupSetAttribute(dlg, "MINSIZE", UI_DLG_MINSIZE); // 对话框最小大小 (像素) IupSetAttribute(dlg, "MINBOX", "NO"); IupSetAttribute(dlg, "MAXBOX", "NO"); diff --git a/src/ui.c b/src/ui.c index 5cfc21e..20fa52c 100644 --- a/src/ui.c +++ b/src/ui.c @@ -59,7 +59,7 @@ Ihandle *create_main_buttons() NULL); IupSetAttribute(vbox_btns, "GAP", UI_VBOX_GAP); IupSetAttribute(vbox_btns, "MARGIN", UI_VBOX_MARGIN); - + return vbox_btns; }