kxDialog Hi,
I just work on a "graphics library" , which will provide an easy access to common controls (later) *g*
A first version plus sample app you can find here:
http://testserver.protron.de/kxDialog.zip
Frank
lost- 07-12-2006
hi! ;0 looks pretty good... But crashes in Virtual kolibri: edit control (?, or it is openFile?) crashes, and show info button do nothing ( my floppy is broken, so only emu test ATM)
I`m writing GUI library too, but in c++. Demo soon ;)
Matt9876- 07-12-2006
Works fine in real mode. Looks good.
derPENGUIN- 07-12-2006
the "show info" has no function atm, it is just a button for demonstration. The MsgDlg widget does not work jet :(. And the edit field will be later a listbox, but I stopped at this point the graphic design, because I recognized, that I have to implement an own event handler. (This informations are not interesting, if you are not a programmer ;-) )
lost
What about code size, if you make it in cpp? The size of my GUI apps expands to much, but I dont know, where to shrink it. (Its because of data definitions, but the code is designed to get a GUI designer like bcb or delphi much later. (I am a delphi coder, as you can see in property naming))
lost- 07-13-2006
What about code size? You mean source or filesize?
source example:
//#include "meos/system.h"
#include "meos/memory.h"//TODO:MOVE TO system.h
#include "sikwl/sikwl.h"
using namespace sikwl;
extern void meMain() asm("meMain");
void meMain()
{
mainWindow* wnd=new mainWindow("Example2: Some Static Controls",200,200,300,100,0x00CCFFCC|SKINNED_WINDOW);
wnd->addWidget((sikWidget*)new sikLabel("LABEL!!!",30,30,200,200));
wnd->show();
while(wnd->run());
wnd->close();
}
compiled version is about 2.4 KB, but library built with -O3 flag (maximum optimization) and with -Os (code size optimization) it`s even smaller + we can use mtpack to pack application. :)
Yes, that is near to that, what I do... ;-)
I've updated a new version, visually nothing changed, but now with event handler. That was quite hard for me as an asm beginner, but its funny. Now I will continue developing more usefull widgets.
Greets, Frank
hidnplayr- 07-18-2006
keep up the good work! ;)
derPENGUIN- 07-23-2006
Thank you for your motivation.
There is an update available. not yet with new widgets again, but this changes:
* apps can be closed with ALT-F4
* clickable widgets can get focus
* focussed widgets interpret ENTER as click
* TAB switches all focussable widgets
At this point I have a question: It is possible to different between TAB and SHIFT-TAB? The keycode seems to be the same in KoOS.
mike.dld- 07-23-2006
They are the same, but you can get state of 'modifiers' with function 66/3 (includes Shift/Ctrl/Alt (left and right separately), Caps/Scroll/Num Lock).
hidnplayr- 07-23-2006
derPenguin: you need to use another sysfunction to read scancodes i guess ;)
Forumer™ is Voted #1 Free Forum Hosting provider
Build your own community today with the largest message board hosting company.