OBJ += renderers/widget/spacer.o
OBJ += renderers/widget/subwin.o
-PNGIMAGES := toolbar_new.png
+PNGIMAGES := toolbar_new.png toolbar_save.png toolbar_open.png
LDFLAGS += -limage_sif -luri -lnet -lunicode
$(IMG2SIF):
$(MAKE) -C $(dir $(IMG2SIF)) img2sif
-install_%.sif: resources/%.png
+all: $(addprefix resources/,$(PNGIMAGES:%.png=.%.sif))
+
+resources/.%.sif: $(IMG2SIF) Makefile resources/%.png
@echo img2sif resources/$*.png
- @$(IMG2SIF) resources/$*.png resources/.$*.sif
- @$(xCP) resources/.$*.sif $(DISTROOT)/$(DIR)/$*.sif
+ @$(IMG2SIF) --rle1x32 resources/$*.png resources/.$*.sif
+
+install_%.sif: resources/.%.sif ;
+ @echo [xCP] $(DISTROOT)/$(DIR)/$*.sif
+ @$(xCP) $< $(DISTROOT)/$(DIR)/$*.sif
install_resources: $(IMG2SIF) $(addprefix install_,$(PNGIMAGES:%.png=%.sif))
void Widget_Spacer_Init(tElement *Element)
{
- Element->MinH = SPACER_RULE_SIZE+1;
- Element->MinW = SPACER_RULE_SIZE+1;
+ Element->MinH = SPACER_RULE_SIZE+2;
+ Element->MinW = SPACER_RULE_SIZE+2;
}
DEFWIDGETTYPE(ELETYPE_SPACER,
// <testing>
AxWin3_RichText_SetLineCount(gMainWindow_TextArea, 3);
AxWin3_RichText_SendLine(gMainWindow_TextArea, 0, "First line!");
- AxWin3_RichText_SendLine(gMainWindow_TextArea, 2, "Third line! \x01""ff0000A red");
+ AxWin3_RichText_SendLine(gMainWindow_TextArea, 2, "Third line! \x01""ff0000red\x01""00ff00green");
// </testing>
AxWin3_ShowWindow(gMainWindow_TextArea, 1);
};
const int ciNumDisplayStrings = sizeof(gaDisplayStrings)/sizeof(gaDisplayStrings[0]);
const struct keyval_str gaImageStrings[] = {
- {"BtnNew", "file:///Acess/Apps/AxWin/3.0/toolbar_new.sif"}
+ {"BtnNew", "file:///Acess/Apps/AxWin/3.0/toolbar_new.sif"},
+ {"BtnOpen", "file:///Acess/Apps/AxWin/3.0/toolbar_open.sif"},
+ {"BtnSave", "file:///Acess/Apps/AxWin/3.0/toolbar_save.sif"}
};
const int ciNumImageStrings = sizeof(gaImageStrings)/sizeof(gaImageStrings[0]);