PhAB Construction Question

Hello – Thanks for reading my query.

I am trying to use PhAB to build an application similar to the QNX4
Photon File Manager. I want to have a window with directories listed
on the left of the base window, and a window with files listed on the
right.

How does one create the two windows such that one can change the width
of the directory window and then have the file window adjust to this
change.

How do I lay this all out in PhAB–it is not clear to me how I place
new windows on top of the base window (there are the tabs and borders
that are larger than the actual window). If I do have to create new
windows for the directory and file lists, I would somehow like to
position these windows relative to other widgets on the base window.

I don’t need really detailed info; just some pointers to things to
look at.

Might there be some example code around somewhere that would
demonstrate these concepts.

Thanks for your time and help,
Greg Laird

Hi Greg,

The way you get the PtTree widget and PtList widget to resize when
either is moved is by:

  1. Create your base window.
  2. add a PtDivider widget to the base window
  3. Add 2 PtPane widgets to the base window
  4. Then select the 2 pane widgets and use the transfer button ( on the
    toolbar) and have their parent widget be the PtDivider. You can play
    around with sizing the PtDivider and get it the size you want. The panes
    will automatically fill the divider widget. (You must add the panes at
    the same time - if not you won’t be able to get the second one in)
  5. Add the PtList or PtTree widgets to the panes. Whichever you want
    to use. Anchor the widget to the pane they are in.
    Run the application and you should be able to resize the panes with the
    divider just like the File Manager application.

Hope this helps.
Regard
Brenda

Greg Laird wrote:

Hello – Thanks for reading my query.

I am trying to use PhAB to build an application similar to the QNX4
Photon File Manager. I want to have a window with directories listed
on the left of the base window, and a window with files listed on the
right.

How does one create the two windows such that one can change the width
of the directory window and then have the file window adjust to this
change.

How do I lay this all out in PhAB–it is not clear to me how I place
new windows on top of the base window (there are the tabs and borders
that are larger than the actual window). If I do have to create new
windows for the directory and file lists, I would somehow like to
position these windows relative to other widgets on the base window.

I don’t need really detailed info; just some pointers to things to
look at.

Might there be some example code around somewhere that would
demonstrate these concepts.

Thanks for your time and help,
Greg Laird

First, keep everything in a single window. Look into the PtDivider widget.
I have not really used it. But, I think what you want to do is to place 2
planes inside of a window seperated by the divider widget, Then you can
place your other objects inside of the planes. The divider widget shouold
have examples.


Bill Caroselli – 1(530) 510-7292
Q-TPS Consulting
QTPS@EarthLink.net


“Greg Laird” <glaird@teleport.com> wrote in message
news:3c07e797.18186678@inn.qnx.com

Hello – Thanks for reading my query.

I am trying to use PhAB to build an application similar to the QNX4
Photon File Manager. I want to have a window with directories listed
on the left of the base window, and a window with files listed on the
right.

How does one create the two windows such that one can change the width
of the directory window and then have the file window adjust to this
change.

How do I lay this all out in PhAB–it is not clear to me how I place
new windows on top of the base window (there are the tabs and borders
that are larger than the actual window). If I do have to create new
windows for the directory and file lists, I would somehow like to
position these windows relative to other widgets on the base window.

I don’t need really detailed info; just some pointers to things to
look at.

Might there be some example code around somewhere that would
demonstrate these concepts.

Thanks for your time and help,
Greg Laird

Thanks Bill. I tried it and it works!

On Sat, 1 Dec 2001 09:55:56 -0800, “Bill Caroselli”
<qtps@earthlink.net> wrote:

First, keep everything in a single window. Look into the PtDivider widget.
I have not really used it. But, I think what you want to do is to place 2
planes inside of a window seperated by the divider widget, Then you can
place your other objects inside of the planes. The divider widget shouold
have examples.


Bill Caroselli – 1(530) 510-7292
Q-TPS Consulting
QTPS@EarthLink.net


“Greg Laird” <> glaird@teleport.com> > wrote in message
news:> 3c07e797.18186678@inn.qnx.com> …
Hello – Thanks for reading my query.

I am trying to use PhAB to build an application similar to the QNX4
Photon File Manager. I want to have a window with directories listed
on the left of the base window, and a window with files listed on the
right.

How does one create the two windows such that one can change the width
of the directory window and then have the file window adjust to this
change.

How do I lay this all out in PhAB–it is not clear to me how I place
new windows on top of the base window (there are the tabs and borders
that are larger than the actual window). If I do have to create new
windows for the directory and file lists, I would somehow like to
position these windows relative to other widgets on the base window.

I don’t need really detailed info; just some pointers to things to
look at.

Might there be some example code around somewhere that would
demonstrate these concepts.

Thanks for your time and help,
Greg Laird