[syslinux] Comboot menu crashes when it goes off screen

Aaron McSorley aaron.mcsorley at amd.com
Mon Apr 5 13:11:52 PDT 2004


Resetting the position at a certain menu level would do the trick. I like the
look and feel of the menu except for the part when the sub menus hit the
right side of the screen and wrap around to the left. I would like it to stop
or bounce back when it hits the edge of the screen. This could be simulated by
setting the menu position to 0,0 at about level 4.

Could you give an example on how to set menulevel. I dont get any result when
I set it to a number like 2 or 3. 

If I do something like:
 
unsigned int menupos_handler(unsigned int par_tl, unsigned int menu_width,
                             int child_index, int menulevel)
{
  return menulevel + 0x0313;
}

I get the main menu in the corner and all submenus show up at row 3 column 13.
That's kind of neat but, I dont think thats how it's supposed to work.


-Aaron




On Mon, 5 Apr 2004, ganapathy murali krishnan wrote:

> It is possible to do that easily (almost trivial change).
> 
> But the question is whether it should be done. In your menupos_handler, 
> you get the menulevel as a parameter. So in your case (4 menu's arch -> 
> mboard -> vendor -> revision) each of the menu's will come with a 
> different value of menulevel (0=arch, 1=mboard, 2=vendor, 3=revision). 
> So you should be able to decide the position based on that.
> 
> Actually I did think about it for some time, whether I should give the 
> exact menu also as a parameter. I decided that the general look and feel 
> of the system should only depend on the parent menu's position, the 
> selected item and level of submenu. In particular it should not depend 
> on the actual submenu chosen. But I am open for arguments as to why I 
> should let it depend on the actual menu in question.
> 
> - Murali
> 
> Aaron McSorley wrote:
> 
> >It works!
> >
> >Now, is there a way to use this handler multiple times so different
> >submenus can have different position values.
> >
> >-Aaron
> >
> >
> >On Fri, 2 Apr 2004, ganapathy murali krishnan wrote:
> >
> >  
> >
> >>You write your own menupos_handler (like in complex.c) and register the 
> >>handler.
> >>
> >>So all you need to do is to copy the code for the menupos_handler from 
> >>complex.c and modify it to suit yourself..
> >>and add the line
> >>
> >>"reg_handler(NULL,&menupos_handler);" before you start creating the menu 
> >>entries.
> >>
> >>- Murali
> >>
> >>Aaron McSorley wrote:
> >>
> >>    
> >>
> >>>Ok, but can you give an example of how to do this in simple.c
> >>>
> >>>
> >>>On Fri, 2 Apr 2004, ganapathy murali krishnan wrote:
> >>>
> >>> 
> >>>
> >>>      
> >>>
> >>>>Let me know if it works... Then I can submit this patch to SYSLINUX.
> >>>>
> >>>>- Murali
> >>>>
> >>>>   
> >>>>
> >>>>        
> >>>>
> >>>
> >>> 
> >>>
> >>>      
> >>>
> >>
> >>    
> >>
> >
> >
> >_______________________________________________
> >SYSLINUX mailing list
> >Submissions to SYSLINUX at zytor.com
> >Unsubscribe or set options at:
> >http://www.zytor.com/mailman/listinfo/syslinux
> >Please do not send private replies to mailing list traffic.
> >
> >
> >  
> >
> 
> 
> 





More information about the Syslinux mailing list