Hi Friends,
I'm migrating to PB 2021, and the most recent PFC. My old PFC files are over 20 years old! We have several windows that use something like "home made" split bar in conjunction with the linking service. We had written code to do our own split bar, and that still works fine, but I thought I'd try out the PFC split bar, as it seems to have a lot less code involved.
I reviewed the PFC example app, and decided to try a very simple split-bar in my main app. I have a window with a tree view on the left (inherited from u_tv), a split bar in the middle (inherited from u_st_splitbar), and a list view on the right (inherited from u_lv). I copied the code from the example into my new window, modifying the object names accordingly. The only code in the example is the the pfc_preopen event.
Here's my code:
// Register the controls with the Vertical SplitBar
st_v1.of_Register(tv_1, st_v1.LEFT)
st_v1.of_Register(lv_1, st_v1.RIGHT)
// Window Resize Behavior
of_SetResize(True)
// Left Side Object
inv_resize.of_Register(tv_1, 0, 0, 0, 100)
inv_resize.of_Register(st_v1, 0, 0, 0, 100)
// Right side object
inv_resize.of_Register(lv_1, 0, 0, 100, 100)
I can move the split bar and the tv and lv resize horizontally accordingly. But the tv and lv are the same size they were when I designed the screen. They aren't resizing to fill up the screen. Neither horizontally or vertical. I'm thinking I need something more than the code above, but can't figure out what it would be. There's nothing else in PFC example.
TIA,
~~~Tracy