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;
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
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);
AxWin3_ShowWindow(gMainWindow_TextArea, 1);
// TODO: Status Bar?
+ AxWin3_MoveWindow(gMainWindow, 50, 50);
AxWin3_ShowWindow(gMainWindow, 1);
+ AxWin3_FocusWindow(gMainWindow);
// Main loop
AxWin3_MainLoop();