git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Kernel - Fixed stupid bug in utf-8 code (mirrored in userland)
[tpg/acess2.git]
/
Usermode
/
Applications
/
gui_ate_src
/
main.c
diff --git
a/Usermode/Applications/gui_ate_src/main.c
b/Usermode/Applications/gui_ate_src/main.c
index
e83ab7c
..
a6ed8aa
100644
(file)
--- 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
AxWin3_Connect(NULL);
// --- Build up window
- gMainWindow = AxWin3_Widget_CreateWindow(NULL,
400, 6
00, ELEFLAG_VERTICAL);
+ gMainWindow = AxWin3_Widget_CreateWindow(NULL,
700, 4
00, ELEFLAG_VERTICAL);
AxWin3_SetWindowTitle(gMainWindow, "Acess Text Editor"); // TODO: Update title with other info
gMainWindow_Root = AxWin3_Widget_GetRoot(gMainWindow);
AxWin3_SetWindowTitle(gMainWindow, "Acess Text Editor"); // TODO: Update title with other info
gMainWindow_Root = AxWin3_Widget_GetRoot(gMainWindow);
@@
-69,10
+69,19
@@
int main(int argc, char *argv[])
AxWin3_RichText_SetCursorPos (gMainWindow_TextArea, 0, 0);
AxWin3_RichText_SetCursorType (gMainWindow_TextArea, AXWIN3_RICHTEXT_CURSOR_VLINE);
AxWin3_RichText_SetCursorBlink (gMainWindow_TextArea, 1);
AxWin3_RichText_SetCursorPos (gMainWindow_TextArea, 0, 0);
AxWin3_RichText_SetCursorType (gMainWindow_TextArea, AXWIN3_RICHTEXT_CURSOR_VLINE);
AxWin3_RichText_SetCursorBlink (gMainWindow_TextArea, 1);
+
+ // <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");
+ // </testing>
+
AxWin3_ShowWindow(gMainWindow_TextArea, 1);
// TODO: Status Bar?
AxWin3_ShowWindow(gMainWindow_TextArea, 1);
// TODO: Status Bar?
+ AxWin3_MoveWindow(gMainWindow, 50, 50);
AxWin3_ShowWindow(gMainWindow, 1);
AxWin3_ShowWindow(gMainWindow, 1);
+ AxWin3_FocusWindow(gMainWindow);
// Main loop
AxWin3_MainLoop();
// Main loop
AxWin3_MainLoop();
UCC
git Repository :: git.ucc.asn.au