Re: [Pgui-devel] more about PIMs

2001-08-08 Thread Micah Dowty
Actually, after reading the gdbm example programs it looks like gdbm itself is just like a perl hash. The interface to gdbm is very simple. Here's an example, sans error checking: GDBM_FILE pfile = gdbm_open("tstgdbm", 512, GDBM_WRCREAT, 00664, 0); datum key = {"foo", strlen("foo")+1};

Re: [Pgui-devel] Help needed: Cursor blanking from client app

2001-08-08 Thread Micah Dowty
Here's an example: --8<-- #include int main(int argc, char **argv) { pgInit(argc,argv); pgDriverMessage(PGDM_CURSORVISIBLE, atoi(argv[1])); pgFlushRequests(); } -->8-- If this program was compiled as 'pgcursor' you could use 'pgcursor 0' to turn off the cursor and 'pgc

Re: [Pgui-devel] more about PIMs

2001-08-08 Thread John Utz
i think i can suggest a direction to pursue that would work around the deficieny that you pointed out wrt to hierarchical data and gdbm: perl has a TiedHash (or something) module that maps perl hashes to gdbm. for non-perloids, a hash in perl is a marvelous data structure ( or lack thereof :-) )

[Pgui-devel] Help needed: Cursor blanking from client app

2001-08-08 Thread Pascal Bauermeister
Hi, does anybody know how to blank the cursor from a client application (not from a driver) ? I suppose one must send a PGDM_CURSORVISIBLE command, but how is the exact form ? Thanks, Pascal -- Pascal Bauermeister Head of Software Development SMARTDATA PSE-A / EPFL CH-1015 La

Re: [Pgui-devel] Scroll bar crashing the server

2001-08-08 Thread Micah Dowty
Found the problem. I didn't see it earlier because I was running at 320x240 instead of 640x480 I guess? When the scroll area is larger than or equal to it's preferred size, the scrollbar isn't necessary. This was causing a divide by zero when the scroll bar resolution was set to zero. It might

Re: [Pgui-devel] Scroll bar crashing the server

2001-08-08 Thread Olivier Bornet
Hello Micah, > I tried demo.c, but can't reproduce this bug. Make sure you have the > latest pgserver and client library. If it still doesn't work, let me > know exactly what CPU, theme, and resolution you are using. The attached file seem to correct the bug for me, both on Linux and XCopilot.

Re: [Pgui-devel] Scroll bar crashing the server

2001-08-08 Thread Olivier Bornet
Hello Micah, On Tue, Aug 07, 2001 at 07:37:42PM -0700, Micah Dowty wrote: > I tried demo.c, but can't reproduce this bug. Make sure you have the > latest pgserver and client library. If it still doesn't work, let me > know exactly what CPU, theme, and resolution you are using. Here is what I do