[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: problem getting menuitems name in a menu
From: |
Jürgen Pfeifer |
Subject: |
RE: problem getting menuitems name in a menu |
Date: |
Sat, 6 Jul 2002 17:46:46 +0200 |
No. To dereference the individual items you sould use the
overloaded [] operator which prevents you from accessing
the item array out of bounds.
Jürgen
> -----Original Message-----
> From: Isabelle, Francois [mailto:address@hidden
> Sent: Tuesday, July 02, 2002 5:32 PM
> To: 'address@hidden'
> Subject: problem getting menuitems name in a menu
>
>
> I'm sorry I can't give you a proper patch but I ran into a
> problem getting menuitems name in a menu.
> ===============================
> in cursesm.h at line 295 : should read:
>
> // Items of the menu
> inline NCursesMenuItem** items() const {
> return my_items;
> }
>
> instead of
> // Items of the menu
> inline NCursesMenuItem* items() const {
> return *my_items;
> }
>
>
> so we can dereference individual menu items
>
> Francois Isabelle
> address@hidden
>
>
>
> _______________________________________________
> Bug-ncurses mailing list
> address@hidden http://mail.gnu.org/mailman/listinfo/bug-ncurses
>