From owner-oi-users Mon Mar 13 06:45:40 1995 Return-Path: oi-users-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id GAA10538 for oi-users-outgoing; Mon, 13 Mar 1995 06:45:40 -0800 Received: from gw1.att.com (gw1.att.com [192.20.239.133]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id GAA10529 for ; Mon, 13 Mar 1995 06:45:38 -0800 From: kurt@floyd.emsp.att.com To: freefall.cdrom.com!owner-oi-users@ig2.att.att.com (Carol Chou), oi-users@freefall.cdrom.com Received: from floyd.emsp.att.com by ig1.att.att.com id AA22576; Mon, 13 Mar 95 09:46:16 EST Date: Mon, 13 Mar 95 09:13 EST Message-Id: <9503130945.AA22648@floyd.emsp.att.com> Subject: Re: OI on solaris Original-To: ig2.att.att.com!freefall.cdrom.com!owner-oi-users@ig1.att.att.com (Carol Chou), oi-users@freefall.cdrom.com Content-Type: binary Sender: oi-users-owner@FreeBSD.org Precedence: bulk [4~[4~[4~[4~[4~[4~[4~[4~ [4~[4~ From owner-oi-users Wed Mar 15 15:24:59 1995 Return-Path: oi-users-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id PAA01418 for oi-users-outgoing; Wed, 15 Mar 1995 15:24:59 -0800 Received: from mail1.new-york.net (mail1.new-york.net [165.254.2.54]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id PAA01412 for ; Wed, 15 Mar 1995 15:24:58 -0800 Received: from athena.fi.gs.com by mail1.new-york.net (PMDF V4.3-10 #5880) id <01HO64QO60ZK003XYW@mail1.new-york.net>; Wed, 15 Mar 1995 15:36:29 -0500 (EST) Received: from nyeqmhub.eq.gs.com by gs.com (PMDF V4.3-10 #7425) id <01HO64NWL9WW9D9T2G@gs.com>; Wed, 15 Mar 1995 15:34:15 -0500 (EST) Received: from pcsdnfs1.eq.gs.com (pcsdnfs1.eq.gs.com [154.4.19.11]) by nyeqmhub.eq.gs.com (8.6.10/8.6.4) with ESMTP id PAA27186 for ; Wed, 15 Mar 1995 15:36:21 -0500 Received: from pcsdw2.eq.gs.com (pcsdw2.eq.gs.com [154.4.19.52]) by pcsdnfs1.eq.gs.com (8.6.10/8.6.4) with SMTP id PAA11865 for ; Wed, 15 Mar 1995 15:36:50 -0500 Received: by pcsdw2.eq.gs.com (4.1) id AA02636; Wed, 15 Mar 95 15:34:16 EST Date: Wed, 15 Mar 1995 15:34:16 -0500 (EST) From: David Ngai Subject: Bringing a window to the top. To: oi-users@freefall.cdrom.com Message-id: <9503152034.AA02636@pcsdw2.eq.gs.com> Content-transfer-encoding: 7BIT Sender: oi-users-owner@FreeBSD.org Precedence: bulk Hi, Does anybody know a way to make an obscurred window rise to the top? or to "always" stay on top? i tried the OI function allow_map_raised but that seems to only work with siblings. :( (or am I missing something really really basic here?) Dave Ngai __________ | | David Ngai Email : ngaid@pcsdnfs1.eq.gs.com |Goldman | Private Client Technology | ngaida@mvsemail.wan.gs.com |Sachs & | Goldman, Sachs & Co. | Phone : (212)-902-3104 |Co. | One New York Plaza 45th FL | | | New York, NY 10004-2456 | Fax : (212)-357-5005 ---------- From owner-oi-users Wed Mar 15 15:35:17 1995 Return-Path: oi-users-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id PAA01632 for oi-users-outgoing; Wed, 15 Mar 1995 15:35:17 -0800 Received: from marvin.boulder.openware.com (marvin.boulder.openware.com [192.245.99.138]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id PAA01626 for ; Wed, 15 Mar 1995 15:35:11 -0800 Received: from boulder.openware.com (localhost.boulder.parcplace.com [127.0.0.1]) by marvin.boulder.openware.com (8.6.9/8.6.9) with ESMTP id QAA04570; Wed, 15 Mar 1995 16:32:19 -0700 Message-Id: <199503152332.QAA04570@marvin.boulder.openware.com> To: David Ngai Subject: Re: Bringing a window to the top. Cc: oi-users@freefall.cdrom.com In-reply-to: Your message of Wed, 15 Mar 1995 15:34:16 EST Date: Wed, 15 Mar 1995 16:32:16 MST From: Warner Losh Sender: oi-users-owner@FreeBSD.org Precedence: bulk : Does anybody know a way to make an obscurred window : rise to the top? : : or to "always" stay on top? Well, in general, you don't want to do this because you are fighting with the window manager. However, if you want to pick that fight, here's how :-) Basically, you put a visibility notify on the outside X window, and when it becomes obscured, you raise that window. This is from a program I wrote where 'top' is an override redirect window (think toolbar menu), but it should work with non-override redirect windows as well. void raise_me( const XEvent *ep, void *argp ) { if (ep->xany.type == VisibilityNotify && ep->xvisibility.state != VisibilityUnobscured) XRaiseWindow( ((OI_d_tech *) argp)->display(), ((OI_d_tech *)argp)->outside_X_window()); } int main( int argc, char ** argv ) { // ... top = oi_create_box( "top", 1, 1 ); cp->dispatch_insert( top->outside_X_window(), VisibilityNotify, VisibilityChangeMask, &raise_me, (void *) top ); // ... } Warner From owner-oi-users Thu Mar 16 05:23:25 1995 Return-Path: oi-users-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id FAA08760 for oi-users-outgoing; Thu, 16 Mar 1995 05:23:25 -0800 Received: from jpmorgan.jpmorgan.com (jpmorgan.jpmorgan.com [146.149.99.127]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id FAA08754 for ; Thu, 16 Mar 1995 05:23:22 -0800 Received: from tcpg01a.ny.jpmorgan.com by jpmorgan.jpmorgan.com (8.6.10/fma-120691.2); id IAA09464; Thu, 16 Mar 1995 08:23:18 -0500 Received: from newton.ny.jpmorgan.com (newton.ny.jpmorgan.com [146.149.2.33]) by tcpg01a.ny.jpmorgan.com (8.6.10/cjy.sub.1.0) with ESMTP id IAA15847 Received: from landau.ny.jpmorgan.com (landau.ny.jpmorgan.com [146.149.3.22]) by newton.ny.jpmorgan.com (8.6.9/8.6.9) with SMTP id IAA29781; Thu, 16 Mar 1995 08:23:16 -0500 Received: by landau.ny.jpmorgan.com (4.1/SMI-4.1) id AA12419; Thu, 16 Mar 95 08:23:14 EST Message-Id: <9503161323.AA12419@landau.ny.jpmorgan.com> To: Warner Losh Cc: David Ngai , oi-users@freefall.cdrom.com Subject: Re: Bringing a window to the top. In-Reply-To: Your message of "Wed, 15 Mar 1995 16:32:16 MST." <199503152332.QAA04570@marvin.boulder.openware.com> Date: Thu, 16 Mar 1995 08:23:13 -0500 From: Tom LaStrange Sender: oi-users-owner@FreeBSD.org Precedence: bulk > : Does anybody know a way to make an obscurred window > : rise to the top? > : > : or to "always" stay on top? > > Well, in general, you don't want to do this because you are fighting > with the window manager. > > However, if you want to pick that fight, here's how :-) Basically, > you put a visibility notify on the outside X window, and when it > becomes obscured, you raise that window. This is from a program I > wrote where 'top' is an override redirect window (think toolbar menu), > but it should work with non-override redirect windows as well. Hope you never get two of these windows up where one obscures the other... -- Tom LaStrange toml@mercury.com toml@jpmorgan.com (on assignment at) Mercury Technologies, Inc. 53 Wall St. NYC, NY 10005 From owner-oi-users Thu Mar 16 06:03:11 1995 Return-Path: oi-users-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id GAA09428 for oi-users-outgoing; Thu, 16 Mar 1995 06:03:11 -0800 Received: from relay3.UU.NET (relay3.UU.NET [192.48.96.8]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id GAA09422 for ; Thu, 16 Mar 1995 06:03:09 -0800 Received: from uucp4.UU.NET by relay3.UU.NET with SMTP id QQyhhw13728; Thu, 16 Mar 1995 09:03:01 -0500 Received: from wfg.UUCP by uucp4.UU.NET with UUCP/RMAIL ; Thu, 16 Mar 1995 09:03:01 -0500 Received: from predator.wfg.com by wfg.com (4.1/wfg1) id AA15239; Thu, 16 Mar 95 07:58:16 CST Received: from deathray.wfg.com by predator.wfg.com (4.1/SMI-4.1) id AA16544; Thu, 16 Mar 95 07:58:17 CST Received: by deathray.wfg.com (5.x/SMI-SVR4) id AA02975; Thu, 16 Mar 1995 07:58:01 -0600 From: kenk@nfshost1.wfg.com (Ken Konecki) Message-Id: <9503161358.AA02975@deathray.wfg.com> To: dkbfp-dev!shinu@uunet.uu.net Cc: oi-users@freefall.cdrom.com In-Reply-To: <9503071418.AA06423@dkbfpny.com> (dkbfp-dev!shinu@uunet.uu.net) Subject: Re: Menu hanging/refresh problem Reply-To: kenk@wfg.com Date: 16 Mar 1995 07:55:20 -0600 Sender: oi-users-owner@FreeBSD.org Precedence: bulk >>>>> "shinu" == Shinu Gupta writes: shinu> Hi OI Gurus: I am using OI 4.5 under SunOS 4.1.3 running OLWM. shinu> When the dialog is dismissed, the menu remains hanging. It's a known problem with olwm. Consequently, there's not much you can do about it via OI mechanisms. -- Ken Konecki kenk@wfg.com -or- ...!uunet!wfg!kenk "One does not seriously attack the expertise of a scientist using the undefined phrase 'butt-head'" From owner-oi-users Thu Mar 16 06:19:45 1995 Return-Path: oi-users-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id GAA09772 for oi-users-outgoing; Thu, 16 Mar 1995 06:19:45 -0800 Received: from relay3.UU.NET (relay3.UU.NET [192.48.96.8]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id GAA09766 for ; Thu, 16 Mar 1995 06:19:43 -0800 Received: from uucp2.UU.NET by relay3.UU.NET with SMTP id QQyhhx16746; Thu, 16 Mar 1995 09:19:27 -0500 Received: from wfg.UUCP by uucp2.UU.NET with UUCP/RMAIL ; Thu, 16 Mar 1995 09:19:27 -0500 Received: from predator.wfg.com by wfg.com (4.1/wfg1) id AA15292; Thu, 16 Mar 95 08:14:51 CST Received: from deathray.wfg.com by predator.wfg.com (4.1/SMI-4.1) id AA16624; Thu, 16 Mar 95 08:14:51 CST Received: by deathray.wfg.com (5.x/SMI-SVR4) id AA02988; Thu, 16 Mar 1995 08:14:35 -0600 From: kenk@nfshost1.wfg.com (Ken Konecki) Message-Id: <9503161414.AA02988@deathray.wfg.com> To: ngaid@pcsdnfs1.eq.gs.com Cc: oi-users@freefall.cdrom.com In-Reply-To: <9503152034.AA02636@pcsdw2.eq.gs.com> (message from David Ngai on Wed, 15 Mar 1995 15:34:16 -0500 (EST)) Subject: Re: Bringing a window to the top. Reply-To: kenk@wfg.com Date: 16 Mar 1995 07:58:01 -0600 Sender: oi-users-owner@FreeBSD.org Precedence: bulk >>>>> "ngaid" == David Ngai writes: ngaid> Does anybody know a way to make an obscurred window rise to the ngaid> top? XRaiseWindow(obj->display( ), obj->outside_X_window( )); where obj is any d_tech object. Be aware, however, that unless the window has the override_redirect attribute set, the window manager determines whether the window is actually raised. ngaid> or to "always" stay on top? This is really a function of the window manager. Some window managers have the ability to specify windows to always stay on top, some don't. However, you can probably fake it by trapping VisibilityNotify events and forcing the window to the top unless it is unobscured. Be aware however that some users may go ballistic if they have a window they can't obscure. -- Ken Konecki kenk@wfg.com -or- ...!uunet!wfg!kenk "One does not seriously attack the expertise of a scientist using the undefined phrase 'butt-head'" From owner-oi-users Thu Mar 16 07:26:28 1995 Return-Path: oi-users-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id HAA10934 for oi-users-outgoing; Thu, 16 Mar 1995 07:26:28 -0800 Received: from gw1.att.com (gw1.att.com [192.20.239.133]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id HAA10926 for ; Thu, 16 Mar 1995 07:26:21 -0800 From: kurt@floyd.emsp.att.com To: David Ngai , oi-users@freefall.cdrom.com Received: from floyd.emsp.att.com by ig1.att.att.com id AA29192; Thu, 16 Mar 95 10:26:58 EST Date: Thu, 16 Mar 95 10:26 EST Message-Id: <9503161026.AA10825@floyd.emsp.att.com> Subject: Re: Bringing a window to the top. Original-To: David Ngai , oi-users@freefall.cdrom.com Content-Type: binary Sender: oi-users-owner@FreeBSD.org Precedence: bulk [4~ From owner-oi-users Thu Mar 16 10:23:00 1995 Return-Path: oi-users-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id KAA18309 for oi-users-outgoing; Thu, 16 Mar 1995 10:23:00 -0800 Received: from pure (pure.pure.com [192.232.1.1]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id KAA18272 for ; Thu, 16 Mar 1995 10:22:51 -0800 Received: from helios.pure.com by pure (5.65c/PURE-SERVER-2.0) id AA19688; Thu, 16 Mar 1995 10:24:51 -0800 Date: Thu, 16 Mar 1995 10:24:51 -0800 From: perry@pure.com (Perry Clarke) Message-Id: <199503161824.AA19688@pure> Received: by helios.pure.com (4.1/CLIENT-1.0) id AA08919; Thu, 16 Mar 95 10:24:49 PST To: oi-users@freefall.cdrom.com Subject: Getting the selection in an OI_abbr_menu Reply-To: perry@pure.com Sender: oi-users-owner@FreeBSD.org Precedence: bulk [OI 4.5, Solaris 5.4] I'm having a bit of trouble finding out which is the selected cell in an OI_abbr_menu. None of the members which relate to the currently selected cell will admit to anything being selected. For example, the following code fragment always prints "num_selected -1" although the menu obviously has a currently selected item: else if ( obj->is_derived_from( "OI_abbr_menu" ) ) { printf("\nSetOptionsFromFields: num_selected %d\n", ((OI_menu *)obj)->num_selected() ); } I've also tried iterating through the menu cells. I can print their names but none of them will admit to being selected. I know that I could use a callback to record the changing selection and assume that the last change was the one I wanted but I'm trying to keep this simple and just use the vanilla OI objects. What's the trick? Perry -- Perry Clarke perry@pure.com <> peregrine@eworld.com (408) 524 3058 Pure Software, Sunnyvale, CA From owner-oi-users Thu Mar 16 10:44:51 1995 Return-Path: oi-users-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id KAA20934 for oi-users-outgoing; Thu, 16 Mar 1995 10:44:51 -0800 Received: from marvin.boulder.openware.com (marvin.boulder.openware.com [192.245.99.138]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id KAA20915 for ; Thu, 16 Mar 1995 10:44:46 -0800 Received: from garya.boulder.openware.com (garya.boulder.openware.com [198.135.223.34]) by marvin.boulder.openware.com (8.6.9/8.6.9) with ESMTP id LAA25541; Thu, 16 Mar 1995 11:42:21 -0700 Received: (from garya@localhost) by garya.boulder.openware.com (8.6.9/8.6.9) id LAA29316; Thu, 16 Mar 1995 11:44:31 -0700 Date: Thu, 16 Mar 1995 11:44:31 -0700 From: Gary Aitken Message-Id: <199503161844.LAA29316@garya.boulder.openware.com> To: perry@pure.com, oi-users@freefall.cdrom.com Subject: Re: Getting the selection in an OI_abbr_menu Sender: oi-users-owner@FreeBSD.org Precedence: bulk > I'm having a bit of trouble finding out which is the selected cell in an > OI_abbr_menu. None of the members which relate to the currently selected > cell will admit to anything being selected. > > For example, the following code fragment always prints "num_selected -1" > although the menu obviously has a currently selected item: > > else if ( obj->is_derived_from( "OI_abbr_menu" ) ) > { > printf("\nSetOptionsFromFields: num_selected %d\n", > ((OI_menu *)obj)->num_selected() ); > } > > I've also tried iterating through the menu cells. I can print their names > but none of them will admit to being selected. > > I know that I could use a callback to record the changing selection and > assume that the last change was the one I wanted but I'm trying to keep > this simple and just use the vanilla OI objects. > > What's the trick? The OI_abbr_menu probably has an underlying menu type of OI_button_menu. OI_button_menu objects have cells which are selected only during the period while they are actually firing. The abbr_menu shows the current default cell, but the cell is not selected; it is simply the only one visible. Try asking for the default cell and see what you get. Or change the underlying menu type to some form of OI_excl_*_menu. From owner-oi-users Thu Mar 16 11:05:21 1995 Return-Path: oi-users-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id LAA23418 for oi-users-outgoing; Thu, 16 Mar 1995 11:05:21 -0800 Received: from mailer.jhuapl.edu (mailer.jhuapl.edu [128.244.198.31]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id LAA23412 for ; Thu, 16 Mar 1995 11:05:19 -0800 Received: from euler.jhuapl.edu by mailer.jhuapl.edu (5.65/DEC-Ultrix/4.3) id AA17843; Thu, 16 Mar 1995 14:04:17 -0500 Received: by euler.jhuapl.edu.jhuapl.edu (4.1/SMI-4.1) id AA09809; Thu, 16 Mar 95 14:04:15 EST Date: Thu, 16 Mar 95 14:04:15 EST From: krh@euler.jhuapl.edu (Kevin R. Holloway) Message-Id: <9503161904.AA09809@euler.jhuapl.edu.jhuapl.edu> To: oi-users@freefall.cdrom.com, perry@pure.com Subject: Re: Getting the selection in an OI_abbr_menu Sender: oi-users-owner@FreeBSD.org Precedence: bulk Perry, > I'm having a bit of trouble finding out which is the selected cell in an > OI_abbr_menu. None of the members which relate to the currently selected > cell will admit to anything being selected. > > For example, the following code fragment always prints "num_selected -1" > although the menu obviously has a currently selected item: > > else if ( obj->is_derived_from( "OI_abbr_menu" ) ) > { > printf("\nSetOptionsFromFields: num_selected %d\n", > ((OI_menu *)obj)->num_selected() ); > } From owner-oi-users Fri Mar 17 03:55:26 1995 Return-Path: oi-users-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id DAA04379 for oi-users-outgoing; Fri, 17 Mar 1995 03:55:26 -0800 Received: from mailgate.ericsson.se (mailgate.ericsson.se [130.100.2.2]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id DAA04354 for ; Fri, 17 Mar 1995 03:54:58 -0800 Received: from kaepkcc1.ericsson.se (kaepkcc1.ericsson.se [136.225.40.2]) by mailgate.ericsson.se (8.6.11/1.0) with ESMTP id MAA26663 for ; Fri, 17 Mar 1995 12:54:35 +0100 Received: from kac207.ericsson.se (kac207 [136.225.40.207]) by kaepkcc1.ericsson.se (8.6.11/8.6.11) with ESMTP id MAA16181 for ; Fri, 17 Mar 1995 12:54:03 +0100 From: epkmat@kaepkcc1.ericsson.se (Jorgen Mattsson) Received: by kac207.ericsson.se (8.6.11/client-1.3) id MAA07975; Fri, 17 Mar 1995 12:54:02 +0100 Date: Fri, 17 Mar 1995 12:54:02 +0100 Message-Id: <199503171154.MAA07975@kac207.ericsson.se> To: oi-users@freefall.cdrom.com Subject: Columns in OI_scroll_menu X-Sun-Charset: ISO-8859-1 Sender: oi-users-owner@FreeBSD.org Precedence: bulk Hello OI users, I have got a problem with column alignment in OI_scroll_menu. This occurred when we updated our OI version from 3.4 to 4.5. Pseudo code for arranging column layout: menu cell font ="-*-lucidatypewriter-medium-r-normal-sans-*-120-*-*-*-*-*-*"; scroll menu title font ="-*-lucidatypewriter-bold-r-normal-sans-*-120-*-*-*-*-*-*"; OI_scroll_menu* scroll_menu; OI_menu_cell* dummy_cell; char header[] = "Column1\tColumn2"; OI_number tab_stop[2]; > > tab_stop[1] = 10; tab_stop[2] = 10; scroll_menu->set_title(header); dummy_cell->set_label(header); scroll_menu->set_tabs_custom(tab_stop, 1); > > The result is that the space between Column1 and Column2 in the title is larger than the space between Column1 and Column2 in the menu cell. Why ??? In OI 3.4 we got exactly the same space. We are using OI 4.5(Beta release), Solaris 2.4 (SunOS5.4), Openwindows 3.4. I had exactly the same problem with OI 4.5 (ordinary release), SunOS 4.1.3, Openwindows 3.0). Any ideas are welcome. Best Regards Jörgen Mattsson EP Consulting Group AB epkmat@kaepk.ericsson.se From owner-oi-users Fri Mar 17 11:08:11 1995 Return-Path: oi-users-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id LAA06487 for oi-users-outgoing; Fri, 17 Mar 1995 11:08:11 -0800 Received: from marvin.boulder.openware.com (marvin.boulder.openware.com [192.245.99.138]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id LAA06481 for ; Fri, 17 Mar 1995 11:08:07 -0800 Received: from garya.boulder.openware.com (garya.boulder.openware.com [198.135.223.34]) by marvin.boulder.openware.com (8.6.9/8.6.9) with ESMTP id MAA19349; Fri, 17 Mar 1995 12:05:48 -0700 Received: (from garya@localhost) by garya.boulder.openware.com (8.6.9/8.6.9) id LAA04401; Fri, 17 Mar 1995 11:47:38 -0700 Date: Fri, 17 Mar 1995 11:47:38 -0700 From: Gary Aitken Message-Id: <199503171847.LAA04401@garya.boulder.openware.com> To: epkmat@kaepkcc1.ericsson.se, oi-users@freefall.cdrom.com Subject: Re: Columns in OI_scroll_menu Sender: oi-users-owner@FreeBSD.org Precedence: bulk > I have got a problem with column alignment in OI_scroll_menu. > This occurred when we updated our OI version from 3.4 to 4.5. > > Pseudo code for arranging column layout: > menu cell font ="-*-lucidatypewriter-medium-r-normal-sans-*-120-*-*-*-*-*-*"; > scroll menu title font ="-*-lucidatypewriter-bold-r-normal-sans-*-120-*-*-*-*-*-*"; > > OI_scroll_menu* scroll_menu; > OI_menu_cell* dummy_cell; > char header[] = "Column1\tColumn2"; > OI_number tab_stop[2]; > > > > > tab_stop[1] = 10; > tab_stop[2] = 10; > scroll_menu->set_title(header); > dummy_cell->set_label(header); > scroll_menu->set_tabs_custom(tab_stop, 1); > > > > > The result is that the space between Column1 and Column2 in the title is larger > than the space between Column1 and Column2 in the menu cell. Why ??? > In OI 3.4 we got exactly the same space. Not sure. As Tom LaStrange posted a while ago, a test case goes a long way. So far, in attempting to replicate this, I've discovered that you should probably use indices 0 and 1, not 1 and 2, in the tab_stop vector :-) In any case, here is a test case which I built against the 4.6 beta code and it works fine. There were a few changes in this area between 4.5 and 4.6, so it might be broken on 4.5. Try it out and let me know. If it works in 4.5, you'll have to come up with a real test case. ======================================================================== #include void main (int argc, char**argv) { OI_d_tech *wp ; OI_scroll_menu *smp ; OI_number tab_stop[2]; static char header[] = "Column1\tColumn2"; OI_menu_cell *dummy_cell; if (OI_init(&argc,argv,"OITest")) { wp = oi_create_box("main",300,300) ; // wp->set_layout(OI_layout_row) ; wp->set_associated_object(wp->root(),10,10,OI_ACTIVE) ; dummy_cell = oi_create_menu_cell("dmy", header) ; smp = oi_create_scroll_menu("sm", OI_scroll_bar_right, 5, OI_button_menu::clsp, 1, &dummy_cell, OI_vertical, header) ; tab_stop[0] = 10; tab_stop[1] = 10; smp->set_title(header); dummy_cell->set_label(header); smp->set_tabs_custom(tab_stop, 1); smp->set_font("-*-lucidatypewriter-bold-r-normal-sans-*-120-*-*-*-*-*-*") ; dummy_cell->set_font("-*-lucidatypewriter-medium-r-normal-sans-*-120-*-*-*-*-*-*") ; // smp->layout_associated_object(wp,10,10,OI_active) ; smp->set_associated_object(wp,10,10,OI_active) ; OI_begin_interaction() ; } return ; } From owner-oi-users Fri Mar 17 15:38:20 1995 Return-Path: oi-users-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id PAA00162 for oi-users-outgoing; Fri, 17 Mar 1995 15:38:20 -0800 Received: from marvin.boulder.openware.com (marvin.boulder.openware.com [192.245.99.138]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id PAA00156 for ; Fri, 17 Mar 1995 15:38:16 -0800 Received: (from robert@localhost) by marvin.boulder.openware.com (8.6.9/8.6.9) id QAA22383; Fri, 17 Mar 1995 16:18:51 -0700 Date: Fri, 17 Mar 1995 16:18:51 -0700 From: Robert Vacante Message-Id: <199503172318.QAA22383@marvin.boulder.openware.com> To: oi-users@freefall.cdrom.com Subject: WE WANT YOU-to beta test OI 4.6 & ObjectBuilder 2.6 Cc: robert@marvin.boulder.openware.com Sender: oi-users-owner@FreeBSD.org Precedence: bulk The latest and greatest version of Object Interface 4.6/ObjectBuilder 2.6 is now in beta release, and according to customers that have it, it looks to be pretty solid! If you are a current support customer, and would like get a first look at the new features, while helping us insure product quality, send mail to oi-support@boulder.openware.com requesting to be added as a beta site. Please include complete information about your environment (platform, OS, and compiler) as well as about yourself. (name, address, phone, fax, email etc.) Also specify if xtkit should be included. Upon receipt of a signed beta agreement, we will ship you media and docs, and will make software available to you via FTP. We are looking for sites running with equipment from HP, Sun and IBM who are willing to exercise this release, and let us know what they find. Thanks in advance; your input is always appreciated.