Hello,
Yes, "cmd->curmenupos" changing inside the loop
MOVE UP:
cmd->curmenupos = (cmd->curmenupos + cmd->curmenusize - 1) % (cmd->curmenusize);
MOVE DOWN:
cmd->curmenupos =...
Type: Posts; User: zradu
Hello,
Yes, "cmd->curmenupos" changing inside the loop
MOVE UP:
cmd->curmenupos = (cmd->curmenupos + cmd->curmenusize - 1) % (cmd->curmenusize);
MOVE DOWN:
cmd->curmenupos =...
perhaps a more elegant solution is what I'm looking for.
This solution have a problem:
Example:
Number of stations in data base = 75
1 If cursor in in first line of MENU and I wont to...
Sorry, in my first post is rong code:
#define NUM_STATIONS 15
must be
#define MENU_SIZE 15
the loop must run for all number of stations from database: num_stations = stations in data base,...
I try to optimize from this:
#define MENU_SIZE 15
int i;
char text[ 32 ];
const int num_stations = station_get_num_stations( cmd->station );
I have this code and I wont to optimize them:
here is a scrolling menu with max 15 line and loop must run for all station from database ( num_stations = number of stations from data base ).
...
How to move up or down Item in List using C and GList (Doubly-Linked Lists) code
In abstraction I know what should be done, but in practice not handle it.
For down button:
When select a List...
I write code to extract data from xmltv listings and display them perchannel in page with 15 line. How to make to scroll up and down line by line in page (from buffer) until last line information...
int epg_show_perchannel( tv_osd_t* osd, int page, station_mgr_t *stationmgr, xmltv_t *xmltv, int channel )
{
if (!page)
return 0;
if ( xmltv ){
const int buf_length =...