1. Re: No Close Window (was: EuGrid Not Returning Row)

Michelle,

If you run the "RunDemos.exw" program that comes with Win32Lib, & then find
the demo "wstyles.exw" in the tab list under "More Examples", & run it by
double-clicking on its name, you will see a number of window styles which,
in at least the later versions of wstyles.exw, show you the correct style
name to use in creating each of those windows (& can copy the style to the
clipboard if you double-click on a window).  Some of those that are included
are windows which don't have the normal close box.  And if you right click
on "wstyles.exw" in "RunDemos.exw", you will see the code that implements
each window.

One style that will do what you want is:  {WS_DLGFRAME};
another is: {WS_CAPTION};
for popup windows, one is: {WS_DLGFRAME , WS_POPUP};
another is: {WS_BORDER , WS_POPUP};
another is: {WS_POPUP, WS_BORDER, WS_SYSMENU};
and: {WS_POPUP} has no border at all.

Dan Moyer

----- Original Message -----
From: <mrogers at mail.ccs.bia.edu>
To: "EUforum" <EUforum at topica.com>
Sent: Monday, April 07, 2003 10:13 AM
Subject: Re: EuGrid Not Returning Row


>
> I know that this is a simple question, that I should be able to find
without
> having to ask.  ANND..I KNOW that I've seen an example somewhere...but I
can't
> find where I saw it.
>
> Could someone tell me "off the top of your head"...how I make a window
that
> doesn't allow the user to close it, except by clicking the button (or
> whatever) that I want them to click?
>
> Thanks,
> Michelle Rogers
>
> Phil Russell wrote:
>
> >
> > C.K.
> >
> > You need to do:
> >
> > <snip>
> > -- sequence to hold current cell info
> > sequence cell
> > -- get current cell in {row, column_id} format
> > cell = EGW_GetCurrentCell( grid )
> > </snip>
> >
> > cell[1] now contains the current row
> > cell[2] now contains the current column id
> >
> > NB:
> > The EGW_GetCellProperty function is only valid when you are processing
> > an EGW_CellFormat message, at which point you can use it
> > to get/set individual cell drawing properties (see the documentation).
> > If you use it outside of this context it will have no effect and witll
> > always return False...
> >
> > HTH
> >
> > Phil
> >
> > C. K. Lester wrote:
> > > How do I get EuGrid to return the row number of the currently selected
> > > cell?
> > > Here's what I try but it always returns zero:
> > >
> > > procedure bttn_RemoveAttr_onClick (integer self, integer event,
sequence
> > > params)--params is ()
> > >  junk = EGW_GetCurrentCell ( grid1 )
> > >  junk = EGW_GetCellProperty (grid1, junk[1] , EGW_CELL_ROW) -- get
index
> > >  of
> > > selected attribute item
> > >  removeAttr( junk )
> > > end procedure
> > > setHandler( bttn_RemoveAttr, w32HClick,
> > > routine_id("bttn_RemoveAttr_onClick"))
> > >
> > >
> > TOPICA - Start your own email discussion group. FREE!
>
>
>
> TOPICA - Start your own email discussion group. FREE!
>

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu