1. Tables in Windows

I need to display tabulated data - like 24 hours by 7 days - in a 
Windows program. I can't see any nice way to do this; a fixed-size font 
is not elegant, and multiple windows is even less so. Anybody got any 
ideas?
Andy Drummond

new topic     » topic index » view message » categorize

2. Re: Tables in Windows

> I need to display tabulated data - like 24 hours by 7 days - in a
> Windows program. I can't see any nice way to do this; a fixed-size font 
> is not elegant, and multiple windows is even less so. Anybody got any 
> ideas?
> Andy Drummond

Maybe a list control?
I'm sure there was a control which does exactly what you want, it
shows a spreadsheet like grid, but I can't remember the name and it's
not been wrapped in win32lib.

I suppose you could do it all manually, create a grid of text boxes or
labels or whatever. That shouldn't be to hard to do....

Thomas Parslow (PatRat) ICQ #:26359483
Rat Software
http://www.rat-software.com/
Please leave quoted text in place when replying

new topic     » goto parent     » topic index » view message » categorize

3. Re: Tables in Windows

Andy Drummond wrote:

> So - anyone else out there know where
> I can access a spreadsheet-like table?

Some time back, I had written an emulated 'spreadsheet' style control. I
don't know where the code is; I suspect that you can find it in the archives
somewhere.

-- David Cuny

new topic     » goto parent     » topic index » view message » categorize

4. Re: Tables in Windows

Andy,

----- Original Message -----
From: "Andy Drummond" <kestrelandy at xalt.co.uk>
To: "EUforum" <EUforum at topica.com>
Subject: Tables in Windows


> I need to display tabulated data - like 24 hours by 7 days - in a
> Windows program. I can't see any nice way to do this; a fixed-size font
> is not elegant, and multiple windows is even less so. Anybody got any
> ideas?
> Andy Drummond

Lacking spreadsheets, I'd lay out a checkerboard of labels and write to
them.

About fonts: there is no such animal as a fixed-size font. You may indicate
a size, but unless you paint it as a bitmap you will find that the Windows
user can reset the Windows font size, from small to humongous. And screen
resolution can vary, usually between 640x480 and 1024x768, but that's not
the limit.

I'd assign font size to a variable, depending on those factors, which you
can find in the Registry. Also, remember to check them every time the
program runs. Don't store them (registry or .ini), for Windows 95+ can be
configured with different values for different users. Or store a set of
values for each user (you can find out what users are configured, if any, by
testing the existence of a '%windir\Profiles' directory: every subdirectory
under \Profiles will correspond to a user.)

Gerardo

new topic     » goto parent     » topic index » view message » categorize

5. Re: Tables in Windows

Judith,
you might like to hold off with writing too much code for this, because I'm
putting together a framework in which new controls (pseudo or otherwise) can
be added to win32lib and hopefully also some built-in support for IDEs.

------
Derek Parnell
Melbourne, Australia
"To finish a job quickly, go slower."

----- Original Message -----
From: "Judith" <camping at txcyber.com>
To: "EUforum" <EUforum at topica.com>
Sent: Tuesday, April 10, 2001 8:56 PM
Subject: RE: Tables in Windows


>
>
> In the next release of IDE, there will be table and array handling.
> Coding is almost done. You will be able to drop controls onto a pseudo
> control for the first 'cell' and then right click to define the number
> of rows, columns and spaces between. It is not nearly as nice as David's
> spreadsheet demo because I wanted the table/array to be unspecific.
>
> If David has no objections, is there any interest in a pseudo control in
> IDE that will generate David's spreedsheet and the supporting routines?
>
> Judith
>
>
> David Cuny wrote:
> > Andy Drummond wrote:
> >
> > > So - anyone else out there know where
> > > I can access a spreadsheet-like table?
> >
> > Some time back, I had written an emulated 'spreadsheet' style control. I
> > don't know where the code is; I suspect that you can find it in the
> > archives
> > somewhere.
> >
> > -- David Cuny
> >
> >
>
>
>
>
>

new topic     » goto parent     » topic index » view message » categorize

6. Re: Tables in Windows

Derek Parnell wrote:
> ... I'm putting together a framework in which new 
> controls (pseudo or otherwise) can be added to win32lib 
> and hopefully also some built-in support for IDEs.

Sounds interesting!

-- David Cuny

new topic     » goto parent     » topic index » view message » categorize

7. Re: Tables in Windows

Judith wrote:

> If David has no objections, is there any interest 
> in a pseudo control in IDE that will generate 
> David's spreedsheet and the supporting routines?

I certainly don't have any problems with that.

-- David Cuny

new topic     » goto parent     » topic index » view message » categorize

8. Re: Tables in Windows

Hi Judith,
sorry about the confusing message. I dashed it off just before going to bed
last night.
>
> Hold off on Table/Array or the Spreadsheet? Or both? When do you think
> this framework might be available?

Neither I guess. Certaining not the array stuff. It all depends on how you
are emulating a Spreadsheet control. Hopefully you are not embedding it into
Win32lib.ew file, but using a separate include file for it. It might mean a
small change to the spreadsheet code to use the framework but it's not
mandatory.

The framework is a common communication protocol between win32lib Core and
controls. It means that the code for controls can be encapsulated in its own
separate include files.

IDE support for now is just a routine that can return the function
signatures that a control supports.

> I'm just about done coding Table/Array. If you will be awhile I may
> continue with what I'm doing. I can easily strip it out when your
> routines are available.

I can't see my efforts undermining yours so I urge you to continue doing a
fine job.

------
Derek Parnell
Melbourne, Australia
"To finish a job quickly, go slower."

new topic     » goto parent     » topic index » view message » categorize

9. Re: Tables in Windows

Hi Andy,
I'm experimenting with a Grid control written in Euphoria. It is NOT a
spreadsheet control because it doesn't support formulae.

Yes, individual cells are addressable. The functions to do this include ...

SelectCell( col, row )
MoveToCell ( deltaCol, deltaRow )

I'm a long way off finishing it and I suspect Judith's control will be out
first.

The next win32lib version will be out soon but I'm very busy at the office
and can only work a couple of hours a day on win32lib. Anyhow, v056 should
be alpha available in a few mor days. Hopefully before Easter as I'm going
on a week's camping holiday with the family.

------
Derek Parnell
Melbourne, Australia
"To finish a job quickly, go slower."

----- Original Message -----
From: "Andy Drummond" <kestrelandy at xalt.co.uk>
To: "EUforum" <EUforum at topica.com>
Sent: Wednesday, April 11, 2001 5:39 AM
Subject: RE: Tables in Windows


>
>
> Derek,
> Your addition to Win32Lib sounds good - will the individual cells be
> addressable from an array - sequence - so I can write them from a loop?
> Will they be editable cells, which I need, and can I read them by
> indexed array again?  Yeah, yeah, I know, it's not done yet, go
> mooorreee  sssllloowwwlllyyyy  pplleeaasee. But I need to plan ahead
> according to what will (hopefully) be available in the (very) near
> future.
>
>
> Derek Parnell wrote:
> > Judith,
> > you might like to hold off with writing too much code for this, because
> > I'm
> > putting together a framework in which new controls (pseudo or otherwise)
> > can
> > be added to win32lib and hopefully also some built-in support for IDEs.
> >
> > ------
> > Derek Parnell
> > Melbourne, Australia
> > "To finish a job quickly, go slower."
> >
> > ----- Original Message -----
> > From: "Judith" <camping at txcyber.com>
> > To: "EUforum" <EUforum at topica.com>
> > Sent: Tuesday, April 10, 2001 8:56 PM
> > Subject: RE: Tables in Windows
> >
> >
> > >
> > >
> > > In the next release of IDE, there will be table and array handling.
> > > Coding is almost done. You will be able to drop controls onto a pseudo
> > > control for the first 'cell' and then right click to define the number
> > > of rows, columns and spaces between. It is not nearly as nice as
David's
> > > spreadsheet demo because I wanted the table/array to be unspecific.
> > >
> > > If David has no objections, is there any interest in a pseudo control
in
> > > IDE that will generate David's spreedsheet and the supporting
routines?
> > >
> > > Judith
> > >
> > >
> > > David Cuny wrote:
> > > > Andy Drummond wrote:
> > > >
> > > > > So - anyone else out there know where
> > > > > I can access a spreadsheet-like table?
> > > >
> > > > Some time back, I had written an emulated 'spreadsheet' style
control. I
> > > > don't know where the code is; I suspect that you can find it in the
> > > > archives
> > > > somewhere.
> > > >
> > > > -- David Cuny
> > > >
> > > >
> > >
> > >
> > >
> <snip>
>
>
>
>
>

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu