Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Mar 1995 12:54:02 +0100
From:      epkmat@kaepkcc1.ericsson.se (Jorgen Mattsson)
To:        oi-users@freefall.cdrom.com
Subject:   Columns in OI_scroll_menu
Message-ID:  <199503171154.MAA07975@kac207.ericsson.se>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199503171154.MAA07975>