🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #35701

Re: GEM question

#35701
From: Kenneth Soohoo
Date: Fri, 30 Dec 1988 17:51
49 lines
2252 bytes
In article <3092@ihuxv.ATT.COM> foster@ihuxv.ATT.COM (r. foster) writes:
>I am having a problem with using a dialog box that I was wondering
>if someone has the answer to. The program sequence I am using goes like
>this:
>
>form_center(tree,&cx,&cy,&cw,&ch);
>form_dial(FMD_START,cx,cy,cw,ch,0,0,0,0);

	You should hide your mouse before doing an objc_draw().

>objc_draw(tree,0,MAX_DEPTH,cx,cy,cw,ch);
>SHOW_MOUSE
>setnum=-1;
>do {
>	n=form_do(tree,SETSEL);
>	switch (n) {
>		case SET0:
>		case SET1:
>		case SET2:
>		case SET3:
>			strcpy(s1,selptr[n]->te_ptext);
>		/*	tree[n].ob_state &= ~SELECTED;  Return to normal */
		Why's this commented out?
>			HIDE_MOUSE
>			objc_draw(tree,SETSEL,0,cx,cy,cw,ch); 
>			SHOW_MOUSE
>			break;
>			etc.
>
><<Some deleted>> The problem that I am having is
>that when I select one of the BOXTEXT objects with the mouse, the
>box reverses as it should except for the small rectangle under the
>mouse. Multiple selects keep leading to ever more checkerboarded
>boxes. 

	Well, if this ain't it, you must be mixing graf_mouse() and
some other version of mouse on/off like v_show_c() v_hide_c(). When you
use these two functions, you should pick one and stick to it, don't
mix them, or GEM get's confused...

	Also, if you forgot to hide your mouse _anywhere_ in the program,
you can end up with problems like these.  AND if you don't reset GEM after
confusing it (i.e. you're in a shell and don't exit to the desktop) GEM
can continue to be very confused and you my never be able to see that
you fixed your bug :-).
-- 
Kenneth Soohoo			{ames,imagen,portal}!atari!kens
Atari Engineering
"So Atari doesn't necessarily agree with me, so what!"
Technical Details
Message-ID: <1281@atari.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!rutgers!gatech!purdue!decwrl!sun!imagen!atari!kens
References: <3092@ihuxv.ATT.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!rutgers!gatech!purdue!decwrl!sun!imagen!atari!kens
From: kens@atari.UUCP (Kenneth Soohoo)
Newsgroups: comp.sys.atari.st
Subject: Re: GEM question
Summary: hide before objc_draw, don't mix mouse shows/hides
Keywords: GEM
Message-ID: <1281@atari.UUCP>
Date: 30 Dec 88 17:51:58 GMT
References: <3092@ihuxv.ATT.COM>
Reply-To: kens@atari.UUCP (Kenneth Soohoo)
Distribution: na
Organization: Atari (US) Corporation, Sunnyvale, California
Lines: 49