Thread View: comp.windows.interviews
1 messages
1 total messages
Started by Kolja Kaehler
Sun, 10 Jan 1993 18:22
[IV3.1beta] begin_style(), how ?
Author: Kolja Kaehler
Date: Sun, 10 Jan 1993 18:22
Date: Sun, 10 Jan 1993 18:22
42 lines
1634 bytes
1634 bytes
Hi,
I built an application which consists of a canvas and a menu. To allow
customization of colors, I want to specify something like this in my
.Xdefaults:
App.background: blue # bg color of canvas
App.menu.background: white # bg color of menubar/items
The first one was no problem, but - of course - all glyphs got a blue
background.
To customize my menu, I thought the way to go would be like this:
AppMenu::AppMenu(void)
{
WidgetKit *kit = WidgetKit::instance();
BarInfo *i;
MenuItem *item;
kit->begin_style("menu"); // this should set the current style
MenuBar = kit->menubar(); // use the new style to build menu
for (i = menubar; i->name != nil; i++) {
item = kit->menubar_item(i->name);
item->menu(MenuPane(i->menu));
MenuBar->append_item(item);
}
kit->end_style(); // return to root style
}
If I run this, my program segfaults somewhere in ivResource::ref() ... :-(
(*after* working through the above, but before mapping anything to the screen)
Please help!
Kolja
--
------------------------------------------------------------------------------
Kolja Kaehler <kk@cs.tu-berlin.de>
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads