nanogui: how to run microwin with console!
Subject:
RE: [nanogui] how to run microwin with console!
From:
Simon Wood ####@####.####
Date:
15 Aug 2001 14:57:26 -0000
Message-Id: <44632C76B97BD211AF6B00805FADCAB2087907C2@exchange.saltaire.pace.co.uk>
> -----Original Message-----
> From: zhang jijun ####@####.####
> Sent: Wednesday, August 15, 2001 3:26 AM
> To: ####@####.####
> Subject: [nanogui] how to run microwin with console!
>
> the other is: I have programed a program that is to show the file
> directory and the file name but I can't to select the directory to up and
> down this directory or the file to operate with the light bar that should
> be controled with keyboard .Please tell me how to do with what function? if
> you have some demos about the file operation that we can select one file
> and can copy or delete the selected file plese send me !
[Simon Wood]
Are you asking how to read the keyboard (or whatever
buttons your device has) from the Microwindows application?
You should be able to get keyboard events with
GR_EVENT_KEY_DOWN (etc).
There are some examples of this is src/demos/nanox/nxterm.c
You will also have to enable a keyboard driver in the config.h
file. If you only have a few buttons (on processor PIO for
example) you will probably have to write your own keyboard
driver. see src/drivers/kdb_xxx.c
There are a couple of toolkits that support Microwindows, I
think both of these have a file selection dialog.
Search for TinyWidgets and FLTK.