1. Win32Lib questions...

Greetings,

I'm using Win32Lib now, and have a few questions I was hoping someone could
answer:

1) Can I create a 'Browse for Folder' dialog?  I don't even know if this is
a standard dialog, but I think it is.  I've seen it in several different
programs, and it always looks exactly the same.

2) I don't know what this control is called, so I'll have to describe it.
In the Windows Explorer (Win95), when the View is set to 'List' and
'Details', the file information is in columns with a clickable title at the
top of each column.  You can click on the title and it will sort the files
according to which title you click.  You can also resize the columns by
dragging the edge of one of the titles.  There are many other apps that use
the same control (if it's properly called a control).  Can I create this in
Win32Lib?

3) Is it possible to create a List control that always fills the window?  I
thought I could just hook the onResize event for the main window, getting
the new size information and resizing the List accordingly; but I don't see
a way to resize a List once it's created.

Thanks in advance for any help,

Ben
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

new topic     » topic index » view message » categorize

2. Re: Win32Lib questions...

Ben Logan wrote:

> Can I create a 'Browse for Folder' dialog?

I suspect that by tweaking the openFile routine, you could get the desired
results.


> I don't know what this control is called, so I'll have to describe it.

It's a common control called a Header; Win32Lib doesn't support it yet.


> 3) Is it possible to create a List control that always fills the window?

Try using setSize().


Hope this helps!

-- David Cuny

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

3. Re: Win32Lib questions...

----- Original Message -----
From: "Ben Logan"
Sent: Tuesday, January 04, 2000 3:14 AM

> 1) Can I create a 'Browse for Folder' dialog?  I don't even know if this
is
> a standard dialog, but I think it is.  I've seen it in several different
> programs, and it always looks exactly the same.

There are two common dialogs in Win32Lib:
getOpenFileName( window, file, filters )  --"Open File" dialog.
getSaveFileName( window, file, filters )  --"Save File" dialog.

Refer to Win32Lib.htm for details.

> 2) I don't know what this control is called, so I'll have to describe it.
> In the Windows Explorer (Win95), when the View is set to 'List' and
> 'Details', the file information is in columns with a clickable title at
the
> top of each column.  You can click on the title and it will sort the files
> according to which title you click.  You can also resize the columns by
> dragging the edge of one of the titles.  There are many other apps that
use
> the same control (if it's properly called a control).  Can I create this
in
> Win32Lib?

This is not currently implemented in Win32Lib but it would be a nice
feature.  I'll leave it to Mr. Cuny for a comment on this.  If it's not too
difficult to implement, I'm sure we'll see it soon.

> 3) Is it possible to create a List control that always fills the window?
I
> thought I could just hook the onResize event for the main window, getting
> the new size information and resizing the List accordingly; but I don't
see
> a way to resize a List once it's created.

The name is deceiving but 'moveWindow' should be able to accomplish this...

-- Brian

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

4. Re: Win32Lib questions...

Brian Broker wrote:

> This is not currently implemented in Win32Lib
> but it would be a nice feature.  I'll leave it to
> Mr. Cuny for a comment on this.

My coding priorities are something like:

   1. Fix the &*%$ font bug in Win32Lib.
   2. Work on fun stuff.
   3. Work on the portable windows graphic library.
   4. Add support for deleting controls to Win32Lib
   5. Optimize the pattern matching code.
   6. Add new controls to Win32Lib - Tree list has top priority.
   7. Work on the Win32Lib IDE.

Subject to change at the slightest whim. smile

-- David Cuny

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

Search



Quick Links

User menu

Not signed in.

Misc Menu