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
Usermode/AxWin3 - Cleaning up and adding client widget support
[tpg/acess2.git]
/
Usermode
/
Applications
/
axwin3_src
/
Interface
/
main.c
diff --git
a/Usermode/Applications/axwin3_src/Interface/main.c
b/Usermode/Applications/axwin3_src/Interface/main.c
index
698b2d4
..
99df835
100644
(file)
--- a/
Usermode/Applications/axwin3_src/Interface/main.c
+++ b/
Usermode/Applications/axwin3_src/Interface/main.c
@@
-7,6
+7,7
@@
*/
#include <stdlib.h>
#include <axwin3/axwin.h>
*/
#include <stdlib.h>
#include <axwin3/axwin.h>
+#include <axwin3/widget.h>
// === GLOBALS ===
tHWND gSidebar;
// === GLOBALS ===
tHWND gSidebar;
@@
-24,12
+25,10
@@
int main(int argc, char *argv[])
// Create sidebar
// TODO: Use the widget library instead
// Create sidebar
// TODO: Use the widget library instead
- gSidebar = AxWin3_CreateWindow(NULL, "Widget", 0, 0, NULL, sidebar_callback);
-
// TODO: Get screen dimensions somehow
// TODO: Get screen dimensions somehow
+ gSidebar = AxWin3_Widget_CreateWindow(NULL, 32, 600, 0);
- // Size the window
- AxWin3_SetWindowPos(gSidebar, 0, 0, 32, 600);
+ AxWin3_MoveWindow(gSidebar, 0, 0);
// Show!
AxWin3_ShowWindow(gSidebar, 1);
// Show!
AxWin3_ShowWindow(gSidebar, 1);
UCC
git Repository :: git.ucc.asn.au