HDTenEightyP/NetNews huggingface dataset:
From: n4hgf@kd4nc.uucp (Warren Tucker)
Subject: XVIEW canvas/scrollbar problem
Followup-To: comp.windows.openlook
Reply-To: wba@eng.tridom.com
Organization: KD4NC HAM Packet Radio Gateway
Date: Wed, 16 Dec 1992 19:46:16 GMT

I am posting this for a friend.  Please reply directly
to him, Bill Adams, wba@eng.tridom.com.

Problem summary: XView canvas/scrollbar problem.

The problem: from a user perspective, the scrollbar
proportional indicator does not accurately reflect
the size of the object displayed in a canvas.

The facts: The client application is composed of
a canvas with a vertical scrollbar.
The canvas possesses a panel menu.
The canvas paint size is explicitly set to 
1000x1000.  The scrollbar package, when 
associated with a canvas sets the
SCROLLBAR_OBJECT_LENGTH equal to the size of the
CANVAS (e.g. a vertical scrollbar would have a 
SCROLLBAR_OBJECT_LENGTH equal to CANVAS_HEIGHT).
If the graphic objects painted in the 
canvas (canvas paint window) do not fill the full
CANVAS_HEIGHT, then the scrollbar proportional
indicator appears to the user to be inaccurate.

Three solutions tried to date:

1. Explicitly set the SCROLLBAR_OBJECT_LENGTH to 
   the size of the graphic objects painted in the 
   canvas, in the canvas repaint procedure.  This
   works as long as repaint events are generated
   when the frame is resized.  The problem is that
   when you shrink the size of the frame, repaint
   events are not consumed by the canvas package,
   and the canvas/scrollbar packages reset the
   SCROLLBAR_OBJECT_LENGTH size to that of the
   CANVAS_[WIDTH, HEIGHT].

2. Set the size of the canvas to the exact size needed
   to display the graphic objects.  The problem
   here is that if the window is resized (expanded)
   larger than the size of the paint window, 
   and the MENU button is pressed while the pointer
   is in the canvas view window, but outside the
   canvas paint window, the window menu rather than the
   panel menu is mapped.

3. Installed event handlers for the canvas view window
   and scrollbar.  The scrollbar event handler receives
   no event on a resize (shrink) operation.  Explicitly
   resetting the SCROLLBAR_OBJECT_LENGTH in the 
   canvas view event handler upon the receipt of a WIN_RESIZE
   event does not affect the eventual outcome:
   SCROLLBAR_OBJECT_LENGTH = CANVAS_[WIDTH, HEIGHT].

Any help is this matter is greatly appreciated.

Thanks,

Bill Adams
From: jluk@iam.unibe.ch (Jacky Wing Yun Luk)
Newsgroups: alt.toolkits.xview
Subject: colormap segment problem
Date: 16 Dec 1992 23:15:58 GMT
Reply-To: jluk@iam.unibe.ch
Organization: Dept. of Computer Science, University of Berne, Switzerland

The canvas can show 256 colors when the mouse pointer points to the canvas window, but the background colors will interupt and changed to black. Can anybody tell me how to solve the problem and I will be greatly appreciated.


Thanks in advance !
 Jacky Luk
Newsgroups: alt.toolkits.xview
From: barryl@pissarro.tansu.com.au (Barry Lightbody)
Subject: Devguide V1.1 and V3.0
Reply-To: barryl@pissarro.tansu.com.au
Organization: Sun Microsystems
Date: Thu, 17 Dec 1992 02:48:00 GMT

I am trying to identify the improvements between Devguide V1.1 and Devguide V3.0.

I have recently purchased a third party product Xv++ but it only runs with Devguide 
V3.0, and I only have V1.1.

UNfortunatly there does not appear to be any upgrade path between V1.1 and V3.0 so
I am looking at buying it outright again for approx 1700$ AUD. A substantial increase
in the purchase price for V1.1.

Before I commit this amount of money I would like to know what benefits I will obtain.

Secondly, does anyone have a second hand copy of Devguide V3.0 that there would not 
mind disposing of?.


---
Barry Lightbody    				Phone: +612-395 3474
barryl@cssc-syd.tansu.com.au		        Fax  : +612- 395 322

Newsgroups: alt.toolkits.xview
From: cdt@operon.lanl.gov (Charles Troup)
Subject: Xview Accelerators 
Originator: cdt@operon.lanl.gov
Organization: Los Alamos National Laboratory
Date: Tue, 15 Dec 1992 21:14:19 GMT




Does anyone know how keyboard accelerators work?? 

I am trying to use keyboard accelerators in my application but cannot get them to
work.  I have created a version short sample program using guide 
with a button and have added an#endif accelerator: 

         .
         .
         . 
 
        void Button_Pressed();
 
        /*
         * Initialize XView.
         */
        xv_init(XV_INIT_ARGC_PTR_ARGV, &argc, argv, NULL);
        INSTANCE = xv_unique_key();

        /*                          
         * Initialize user interface components.
         * Do NOT edit the object initializations by hand.
         */
        AccTest_window1 = accTest_window1_objects_initialize(NULL, NULL);

/************* MY ADDED ACCELERATOR  */ 
 
        xv_set(AccTest_window1->window1, FRAME_ACCELERATOR, "f",
               Button_Pressed, AccTest_window1->button1, NULL);

/*********** window1 is the guide created frame..   */ 
  
        /*
         * Turn control over to XView.
         */
        xv_main_loop(AccTest_window1->window1);
        exit(0);
}

/*
 * Notify callback function for `button1'.
 */
void
Button_Pressed(item, event)
        Panel_item      item;
        
        fputs("message", stderr); 
        . 
        .
        .


Using the button with the mouse or the "mouseless" model works. 
But the keyboard accelerator does not seem to do anything?!?!?! 



The Xview programming Manual Version 3 writes:  

"The first value for the attribute FRAME_ACCELERATOR is the event code for 
the unmodified key (not shifted) then when combined with the Meta modifier, 
forms the key sequence for the accelerator. ..." 

I interpreted this to mean that in my test case "Meta+f" would when the frame
is in focus would call "Button_Pressed", but this does not happen.  

Am I interpreting things correctly here?  If so, what am I doing wrong with 
the xv_set call?  Also, How can I get accelerators that do not rely on the 
"Meta" Key?   


Thanks for any help given,   

-- Charles Troup  





Newsgroups: alt.toolkits.xview
From: kautz@research.att.com
Subject: multiple displays?
Date: Mon, 14 Dec 1992 17:10:06 GMT
Distribution: alt
Reply-To: kautz@research.att.com
Organization: AT&T Bell Laboratories

Could someone please mail me a short example of using multiple
display servers under xview?  (There is some information in O'Reilly ch 15,
but I'd like to see an entire application.  Particular questions ---
how to get the *default* screen of the second server; how to manage 
the equivalent of xv_main_loop for multiple servers.)
--
---- Henry Kautz

:internet: 	kautz@research.att.com
:uucp:		allegra!kautz		
Newsgroups: alt.toolkits.xview
From: akpatel@uncc.edu (Alpesh K Patel)
Subject: Question about calling a text window 	
Reply-To: akpatel@uncc.edu
Organization: University of NC at Charlotte
Date: Sun, 20 Dec 1992 03:15:08 GMT


I am trying to call a text window (read-only) when the user presses something. 

        Example ( Help ) <--- User presses this Panel_button
        and a text window will come up .
        But for some reason When the use presses the button it just comes back with nothing. 
 
        My codes follows. 
 
 
 
 
 
         xv_create(panel, PANEL_BUTTON,
        PANEL_LABEL_STRING,     "HELP",
        PANEL_ITEM_COLOR,       CMS_CONTROL_COLORS + BLUE,
        PANEL_NOTIFY_PROC,      pressed,
        NULL);
 
        .
        ,
        .
void
pressed(item, event)
Panel_item item;
Event *event;
{
    Frame       frame;
    Textsw          textsw;
    Canvas          canvas;
    Scrollbar       sbar;
    Notify_value    monitor_scroll();
 
    char *name = (char *)xv_get(item, PANEL_LABEL_STRING);
 
        frame = xv_create(NULL,FRAME,NULL);
        textsw=xv_create(frame,TEXTSW,
                TEXTSW_FILE_CONTENTS, "/tmp/test/help_doc",
                TEXTSW_READ_ONLY, TRUE,
                NULL);
                sbar=xv_get(textsw,TEXTSW_SCROLLBAR);
        notify_interpose_event_func(xv_get(sbar, SCROLLBAR_NOTIFY_CLIENT),
        monitor_scroll, NOTIFY_SAFE);
}
 
 
        I think, it is probabily something wierd that I am doing.
 
        Thank you,
        Alpesh Patel
        E-mail : akpatel@mosaic.uncc.edu

Newsgroups: alt.toolkits.xview
From: akpatel@uncc.edu (Alpesh K Patel)
Subject: Question about calling Text window
Reply-To: akpatel@uncc.edu
Organization: University of NC at Charlotte
Date: Sun, 20 Dec 1992 03:15:46 GMT

I am trying to call a text window (read-only) when the user presses something. 

        Example ( Help ) <--- User presses this Panel_button
        and a text window will come up .
        But for some reason When the use presses the button it just comes back with nothing. 
 
        My codes follows. 
 
 
 
 
 
         xv_create(panel, PANEL_BUTTON,
        PANEL_LABEL_STRING,     "HELP",
        PANEL_ITEM_COLOR,       CMS_CONTROL_COLORS + BLUE,
        PANEL_NOTIFY_PROC,      pressed,
        NULL);
 
        .
        ,
        .
void
pressed(item, event)
Panel_item item;
Event *event;
{
    Frame       frame;
    Textsw          textsw;
    Canvas          canvas;
    Scrollbar       sbar;
    Notify_value    monitor_scroll();
 
    char *name = (char *)xv_get(item, PANEL_LABEL_STRING);
 
        frame = xv_create(NULL,FRAME,NULL);
        textsw=xv_create(frame,TEXTSW,
                TEXTSW_FILE_CONTENTS, "/tmp/test/help_doc",
                TEXTSW_READ_ONLY, TRUE,
                NULL);
                sbar=xv_get(textsw,TEXTSW_SCROLLBAR);
        notify_interpose_event_func(xv_get(sbar, SCROLLBAR_NOTIFY_CLIENT),
        monitor_scroll, NOTIFY_SAFE);
}
 
 
        I think, it is probabily something wierd that I am doing.
 
        Thank you,
        Alpesh Patel
        E-mail : akpatel@mosaic.uncc.edu
From: koreth@spud.Hyperion.COM (Steven Grimm)
Newsgroups: alt.toolkits.xview
Subject: Ultrix XView can't connect to server
Date: 14 Dec 1992 23:55:00 -0800
Organization: Hyperion, Mountain View, CA, USA
NNTP-Posting-Host: spud.hyperion.com

A few people using the Ultrix version of my "WorkMan" CD-player program have
gotten the following message:

XView error: Cannot open connection to window server: xyz:0.0 (Server package)

Where "xyz" is whatever system they're trying to display on.

Is this a known problem with the Ultrix port of XView?  It only seems to
happen to a few people; others are able to use the program without any
trouble.  Is there a workaround, or better still, a fix?  Has anyone else
seen this message from other software?  Unfortunately, I have no Ultrix
machines to play with; otherwise I'd try to figure it out.

-Steve
From: eschwepp@butyng.bu.edu (Edmund Schweppe)
Newsgroups: alt.war
Subject: Re: War & Democracy
Date: 16 Dec 92 04:03:07 GMT
Organization: Boston University Corp. Ed. Center

In article <1992Dec14.035606.29927@midway.uchicago.edu> bitn@midway.uchicago.edu writes:
>In article <92Dec13.224339est.47890@neat.cs.toronto.edu> quoctp@cs.toronto.edu (Quoc Tuan Pham) writes:
>>This came up during a conversation with some friends and we don't know the 
>>answer. Has there ever been a war between two democratic countries?  
>>I don't want to start a debate on what a democracy is. Let's say it's 
>>something like those of the USA, France, Britain, etc. 
>Not counting technicalities, there has never been a war between two 
>democracies, if you mean "democracy" in the modern sense of the word.

How about the War of 1812?

Or the American Civil War, for that matter?

Ed Schweppe - no useful .sig this time
From: michele@deis21.cineca.it (Michele Favalli)
Newsgroups: alt.war
Subject: Re: Re:War&Democracy
Date: 16 Dec 92 18:08:54 GMT
Organization: Dept. of Electronics, Computer Science & Systems, Univ. of Bologna, Italy

In article <elliott.42@oliafd.shel.isc-br.com>, elliott@oliafd.shel.isc-br.com (Elliott Kleinrock) writes:
|> In article <cf=_udS00WB885838O@andrew.cmu.edu> js43+@andrew.cmu.edu (James William Stepanek) writes:
|> >People always love to claim that there have never been wars between two
|> >democracies,orry not quite true. Two off the top of my head are Turkey and
|> >Greece over Cypruss, and pick any given India - Pakistan conflict. There are
|> >undoubtedly more if you look , these are just the easy ones.
|> >James Stepanek
|> >esp

It is quite difficult to consider such countries as full democracies they 
are a mixture of military/economic/racial/religious oligarchies.  
Democracy is not only when the government is elected by the majority of people. 


|> 
|> How about the USA and the CSA (Confederate States of America).
|> 

I don't know nothing on the political institutions of CSA, more infos are welcome 

|> 	- Elliott
|> 
|> 	elliott@oliafd.shel.isc-br.com
|> 	...!{ philabs | yale | oliveb | decvax | iscuva }!oliafd!elliott


Michele Favalli
Newsgroups: alt.war
From: liuyh@vis.toronto.edu (Yuanhui Liu)
Subject: Re: Re:War&Democracy
Organization: Department of Computer Science, University of Toronto
Date: 15 Dec 92 00:25:51 GMT

In article <elliott.42@oliafd.shel.isc-br.com> elliott@oliafd.shel.isc-br.com (Elliott Kleinrock) writes:
>In article <cf=_udS00WB885838O@andrew.cmu.edu> js43+@andrew.cmu.edu (James William Stepanek) writes:
>>People always love to claim that there have never been wars between two
>>democracies,orry not quite true. Two off the top of my head are Turkey and
>>Greece over Cypruss, and pick any given India - Pakistan conflict. There are
>>undoubtedly more if you look , these are just the easy ones.
>>James Stepanek
>>esp
>
>How about the USA and the CSA (Confederate States of America).
>
and war of 1812.
and Spainish-American war of 1898?  I assume Spain had an constitutional
monoarchy then.  

what about the US-Mexian war of 1948?

and of course, in WWI, everybody's parliment declared war on everybody
else, grRussia and Austro-Hungry were probably absolute powers,
the rest of the country more or less have parlimentary rule. so the
question goes back to what is "modern democracy?"   

>	- Elliott
>
>	elliott@oliafd.shel.isc-br.com
>	...!{ philabs | yale | oliveb | decvax | iscuva }!oliafd!elliott
From: wolfone@ccwf.cc.utexas.edu (Patrick Chester)
Newsgroups: alt.war
Subject: Re: War & Democracy
Date: 18 Dec 92 01:21:38 GMT
Distribution: na
Organization: The University of Texas at Austin, Austin TX

In article <1992Dec14.075904.8431@midway.uchicago.edu> bitn@midway.uchicago.edu writes:
]In article <1992Dec14.060817.3986@news.acns.nwu.edu> dmeier@casbah.acns.nwu.edu (Douglas Meier) writes:
]>In article <1992Dec14.035606.29927@midway.uchicago.edu> bitn@midway.uchicago.edu writes:
]>>In article <92Dec13.224339est.47890@neat.cs.toronto.edu> quoctp@cs.toronto.edu (Quoc Tuan Pham) writes:
]>>>This came up during a conversation with some friends and we don't know the 
]>>>answer. Has there ever been a war between two democratic countries?  
]>>>I don't want to start a debate on what a democracy is. Let's say it's 
]>>>something like those of the USA, France, Britain, etc. 
]>>
]>>Not counting technicalities, there has never been a war between two 
]>>democracies, if you mean "democracy" in the modern sense of the word.
]>>
]>Democracy currently doesn't exist as a form of government.  Two democracies
]>have gone to war in the past -- they were the Roman Empire and the Greek City
]>States.
]>-- 
]>Douglas C. Meier		|  I have a trig midterm tomorrow and I'm
]>Northwestern University, ACNS 	|  being chased by Guido the killer pimp.
]>This University is too Commie-	|  -Miles, from "Risky Business"
]>Lib Pinko to have these views.	|  dmeier@casbah.acns.nwu.edu
]
]That's why I said "in the modern sense of the word".  I don't think that he
]meant a "pure democracy" like the Greek city-states.  And how can you call
]the Roman Empire a democracy?  Julius Caesar was not the leader of a 
]democratic state and after him, it was an oligarchy.  At exactly what
]time would you call the Roman empire a democracy??

Before Julius Caesar. When it was a Republic. Also, during the Empire the
Senate still had enourmous powers in the 1st Century C.E. But that was
dependant on the influence of the Emporer somewhat. Pardon my vagueness, I
am trying to remember lectures from about 2 months ago and can't find my
notes.  
 
]-- 
]------------------------------------------------------------------------
]|                         INTER ARMA SILENT LEGES                      |
]| "Worship Ditka NOW."                email:  bitn@midway.uchicago.edu |
]|______________________________________________________________________| 


-- 
Patrick Chester            |----------------------------------------------------
wolfone@ccwf.cc.utexas.edu |"The earth is too fragile a basket in which to keep
Politically Incorrect      |  all your eggs." Robert A. Heinlein
Future Lunar Colonist      |"The meek can *have* the Earth. The rest of us are 
#^%$!! Militarist          |  going to the stars." Robert A. Heinlein
(Of the Sun Tzu mentality) |----------------------------------------------------
From: regeorge@magnus.acs.ohio-state.edu (Robert E George)
Newsgroups: alt.war
Subject: Re: War & Democracy
Date: 15 Dec 92 14:31:00 GMT
Organization: The Ohio State University

In article <6244@vexpert.dbai.tuwien.ac.at> mst@vexpert.dbai.tuwien.ac.at (Mark
us Stumptner) writes:
[deletions]
>
>Also, the question is whether a nation that supports slavery can be
>called a democracy in the modern sense.  (But of course, this would
>apply as well to the War of 1812.)
[deletions]

In the true sense of the word "democracy", a nation can support slavery
and still be a democracy. The word "democracy" merely means that the people
are sovereign; the people rule. It doesn't mean that they rule wisely,
justly, or mercifully. Had slavery been put to plebiscite in the CSA *the
people* would have approved slavery overwhelmingly. (Lincoln received *no
votes* in several of the Southern states in the 1860 election.)

Of late (sometime between 1900 and 1918, it seems) "democracy" has become
a "good" word, which basically means today "any country that I admire or
would like to live in."  Since most people do not (openly) admire
aggressive war, one characteristic a "democracy" has it that it does not
launch aggressive war. Thus, it is the case that no two "democracies" (*using
this new meaningless definition of what a "democracy" is ) have ever been
at war. Nor can they ever be at war.

The problem is not entirely a philosophical or semantic one. We hear people
speaking of how important it is that "democracy" prevail in Russia. Those
people are applying the new definition of "democracy" and want to see Russia
become a peaceful, parliamentrary state ruled by law.

But the problem is that the *real* definition of "democracy" is the old one,
the one about the people ruling! And the people --not just the Russian people,
people anywhere, but especially desperate, hungry people with little political
experience -- are by no means guaranteed to govern wisely, humanely, or justly.
Given the right circumstances, the Russian people could choose -- through
the democratic process - an aggressive government.

Robert George
(speaking only for myself)

"The very essence of individual freedom is equal justice under a rule of
law, a law to which every man shall be subject and which no executive
can modify."
    Senator Robert Taft , March 11, 1944
Newsgroups: alt.war
From: tobeor@pmafire.inel.gov (Ray Hoover)
Date: Fri, 18 Dec 92 15:39:47 GMT
Organization: WINCO
Subject: Re: A question: what means GI?
Summary: 
Followup-To: 
Organization: WINCO
Keywords: 

In article <1992Dec16.115246.302@Informatik.TU-Muenchen.DE> erskine@Informatik.TU-Muenchen.DE (Michael Erskine) writes:
>
>Hi,
>
> whenever I hear or read the word "GI" I wonder what it stands
>for. I guess it's an abbreviation, but for what? My "Oxford Advanced
>Learner's Dictionairy" couldn't help me, it's only comment is 
>"enlisted soldier". Well, that's what I knew before - but for
>what is it an abbreviation????
>
>  
GI stands for Government Issue.  Some sort of black humor which originated in 
the first of second World War.  It was the result of most of the equipment 
issued to the "GI's" being stamped with the letters GI.


Newsgroups: alt.war
From: c34657b@saha.hut.fi (Tuomas Viljanen)
Newsgroups: alt.war
Subject: Re: Re:War&Democracy
Date: 20 Dec 92 08:11:45 GMT
Organization: The Nibelungenlied Incorporated

The only example that pops into my mind of a war between two democracies in
this century is the United Kingdom vs. Finland 1941-1944. As Finland joined
the war against the Soviet Union (Continuation War), to avenge the Winter War
and to retake the territories lost, UK declared war on Finland. The date of
the war declaration happened to be the Independence Day of Finland, 6.12.
But no serious forms of warfare was ever practised, just interning each others'
citizens and confiscating any enemy property. 

Besides, can a kingdom REALLY ever be a democracy  ? ;-)
  ++ Tuomas Viljanen                     ++ For a battle like Crecy, you do ++
  ++ Lahderanta 20 A 19                  ++ not need a military genius like ++
  ++ SF-02720 Espoo FINLAND              ++ Edward III. All you need is an  ++
  ++ 358-0-592175 or c34657b@saha.hut.fi ++ idiot like Duke of Alencon.     ++
Newsgroups: alt.war
From: bitn@ellis.uchicago.edu (nathan elery bitner)
Subject: Re: War & Democracy
Reply-To: bitn@midway.uchicago.edu
Organization: University of Chicago Computing Organizations
Distribution: na
Date: Mon, 14 Dec 1992 07:59:04 GMT

In article <1992Dec14.060817.3986@news.acns.nwu.edu> dmeier@casbah.acns.nwu.edu (Douglas Meier) writes:
>In article <1992Dec14.035606.29927@midway.uchicago.edu> bitn@midway.uchicago.edu writes:
>>In article <92Dec13.224339est.47890@neat.cs.toronto.edu> quoctp@cs.toronto.edu (Quoc Tuan Pham) writes:
>>>This came up during a conversation with some friends and we don't know the 
>>>answer. Has there ever been a war between two democratic countries?  
>>>I don't want to start a debate on what a democracy is. Let's say it's 
>>>something like those of the USA, France, Britain, etc. 
>>
>>Not counting technicalities, there has never been a war between two 
>>democracies, if you mean "democracy" in the modern sense of the word.
>>
>Democracy currently doesn't exist as a form of government.  Two democracies
>have gone to war in the past -- they were the Roman Empire and the Greek City
>States.
>-- 
>Douglas C. Meier		|  I have a trig midterm tomorrow and I'm
>Northwestern University, ACNS 	|  being chased by Guido the killer pimp.
>This University is too Commie-	|  -Miles, from "Risky Business"
>Lib Pinko to have these views.	|  dmeier@casbah.acns.nwu.edu

That's why I said "in the modern sense of the word".  I don't think that he
meant a "pure democracy" like the Greek city-states.  And how can you call
the Roman Empire a democracy?  Julius Caesar was not the leader of a 
democratic state and after him, it was an oligarchy.  At exactly what
time would you call the Roman empire a democracy??

B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B

-- 
------------------------------------------------------------------------
|                         INTER ARMA SILENT LEGES                      |
| "Worship Ditka NOW."                email:  bitn@midway.uchicago.edu |
|______________________________________________________________________| 
Newsgroups: alt.war