From: John Hodge (sonata) Date: Mon, 15 Oct 2012 03:36:46 +0000 (+0800) Subject: ATE - Misc X-Git-Tag: rel0.15~677 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=6df94d897ba22b703a90edf8a18f8e463dd98bec;p=tpg%2Facess2.git ATE - Misc --- diff --git a/Usermode/Applications/axwin3_src/WM/renderers/richtext.c b/Usermode/Applications/axwin3_src/WM/renderers/richtext.c index 3e0fa541..a5425400 100644 --- a/Usermode/Applications/axwin3_src/WM/renderers/richtext.c +++ b/Usermode/Applications/axwin3_src/WM/renderers/richtext.c @@ -68,7 +68,7 @@ tWindow *Renderer_RichText_Create(int Flags) if(!ret) return NULL; info = ret->RendererInfo; - // Initialise font. + // Initialise font (get an idea of dimensions) int h; WM_Render_GetTextDims(NULL, "yY!", 3, NULL, &h); info->LineHeight = h; @@ -79,7 +79,7 @@ tWindow *Renderer_RichText_Create(int Flags) static inline int Renderer_RichText_RenderText_Act(tWindow *Window, tRichText_Window *info, int X, int Row, const char *Text, int Bytes, tColour FG, tColour BG, int Flags) { int rwidth; - // TODO: Fill only what is needed + // TODO: Fill only what is needed? What about the rest of the line? WM_Render_DrawRect(Window, X, Row*info->LineHeight, Window->W - X, info->LineHeight, BG diff --git a/Usermode/Applications/gui_ate_src/main.c b/Usermode/Applications/gui_ate_src/main.c index 82a9117b..9ac37f7e 100644 --- a/Usermode/Applications/gui_ate_src/main.c +++ b/Usermode/Applications/gui_ate_src/main.c @@ -33,7 +33,7 @@ int main(int argc, char *argv[]) AxWin3_Connect(NULL); // --- Build up window - gMainWindow = AxWin3_Widget_CreateWindow(NULL, 600, 400, ELEFLAG_VERTICAL); + gMainWindow = AxWin3_Widget_CreateWindow(NULL, 700, 400, ELEFLAG_VERTICAL); AxWin3_SetWindowTitle(gMainWindow, "Acess Text Editor"); // TODO: Update title with other info gMainWindow_Root = AxWin3_Widget_GetRoot(gMainWindow); @@ -79,7 +79,9 @@ int main(int argc, char *argv[]) AxWin3_ShowWindow(gMainWindow_TextArea, 1); // TODO: Status Bar? + AxWin3_MoveWindow(gMainWindow, 50, 50); AxWin3_ShowWindow(gMainWindow, 1); + AxWin3_FocusWindow(gMainWindow); // Main loop AxWin3_MainLoop();