1. JOHN THOMAS
  2. PowerBuilder
  3. Wednesday, 30 January 2019 16:06 PM UTC

Hi community  - somehow I undocked my System Tree window and I cannot make it dock again. I read the help link below and tried the #2 item, but this does not enable docking. Very annoying. Any ideas? Thanks.

 

=====================

The Workspace page in the System Tree provides you with an overview of your work. By expanding the workspace and the objects it contains, you can see the content and structure of your target.

You can work directly with all the objects in the workspace. For example, you can edit, run, search, or regenerate a window using its pop-up menu in the System Tree. In this exercise you reposition, close, and open the System Tree. You can reposition the System Tree in relation to the main window using its drag bar. You can also change the way the System Tree, Clip, and Output windows are arranged.

  1. Click the Output () button in the PowerBar1 to display the Output window.

  2. Select Tools > System Options from the menu bar. Clear the Horizontal Dock Windows Dominate checkbox on the General page and click OK.

    The System Tree and Clip windows now occupy the full height of the main window.

  3. Click and hold the drag bar at the top of the System Tree. Drag the System Tree to position it above, below, or to the right of the painter workspace.

    The painter workspace is the gray (blank) area, initially to the right of the System Tree, where painters are displayed when you open an object.

    When you start dragging the System Tree, a gray rectangular outline is displayed. It indicates the area that the System Tree would occupy if you released the mouse button.

  4. When the gray rectangular outline is positioned where you want the System Tree to be displayed, release the mouse button.

    The System Tree is displayed in the new location.

  5. Close the System Tree by clicking the SysTree () button in the PowerBar1.

    The current workspace remains open, but the System Tree closes. Closing the System Tree leaves more space for the painter workspace views.

  6. Reopen the System Tree by clicking the SysTree button in the PowerBar1 again.

  7. Select Tools > System Options from the menu bar. Select the Horizontal Dock Windows Dominate checkbox on the General page and click OK.

    You change back to the default selection for this design-time property.

  8. Close the Clip and Output windows by clicking their buttons () and () on the PowerBar1 or by clicking the small x in the corner of each window.

  9. Right-click tutorial workspace and select Close from the pop-up menu.

    The workspace closes. No workspaces are displayed in the System Tree.

Kevin Ridley Accepted Answer Pending Moderation
  1. Wednesday, 30 January 2019 18:43 PM UTC
  2. PowerBuilder
  3. # 1

Can't you start over again by doing View->Layout->Default ?

 

Comment
There are no comments made yet.
JOHN THOMAS Accepted Answer Pending Moderation
  1. Wednesday, 30 January 2019 18:58 PM UTC
  2. PowerBuilder
  3. # 2

hi Kevin, thanks. No, there's no option like that in the Powerbar, I know what you're talking about because I did that a number of times in old PB12. It's the weirdest damn thing, I hit some key combo and it undocked the System Tree window (which I always have open) and now the thing just floats, has no popup menu, just a little tiny "x" close button in upper right, and no other menu/options will enable it or make it respond. I was wondering if there was a setting in one of the ini files that I could clear or something. 

Comment
  1. Kevin Ridley
  2. Wednesday, 30 January 2019 19:57 PM UTC
It's not in the Powerbar, it's on the main menu: View -> Layout -> Default. As Chris also mentioned you should be able to change the INI file too, although the menu should be a little easier to do.
  1. Helpful
  1. JOHN THOMAS
  2. Wednesday, 30 January 2019 20:10 PM UTC
hi Kevin...know what you mean, but the the View menu only shows up when you have an object open...it is not there when the System Tree is open (only), and even when it is there for an object, View -> Layout -> Default rearranges the object layout but not the System Tree. I'm going to try Chri's Dock entry once I get access to the folder (it is read-only right now, probably by default). Thanks.
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 30 January 2019 19:09 PM UTC
  2. PowerBuilder
  3. # 3

Hi John;

  This should work to restore the System Tree for you to factory ...

1) Close your PB2017 IDE

2) Locate your "working" PB.ini file. It should be located in the following folder:

    C:\Users\YourName\AppData\Local\Appeon\PowerBuilder 17.0

3) Open the PB.ini in NotePad and locate the [PB] section

4) Look for the key entry "DOCK="

5) Remove the DOCK line all together

6) Save the changed PB.ini file

7) Re-Start your IDE

   Your IDE should now be back to factory with the System Tree back in the top left corner.

HTH

Regards ... Chris

 

Comment
There are no comments made yet.
JOHN THOMAS Accepted Answer Pending Moderation
  1. Wednesday, 30 January 2019 19:23 PM UTC
  2. PowerBuilder
  3. # 4

thanks Chris, interesting. My PB.ini is below and there is no DOCK key in the [PB] section...maybe we should add one, open, close, then remove it? I'll try anything haha.

 

[PB]
CompilerWarnings=1
DashesInIdentifiers=1
DatabaseWarnings=1
Maximized=1
PromptOnExit=0
StripComments=0
WebLink1=&Community Q&&A,https://community.appeon.com/
WebLink2=&Online Product Manuals,https://www.appeon.com/support/documents/appeon_online_help/appeon_online_help.htm
WebLink3=&PowerBuilder Education,https://www.appeon.com/appeon-u
WebLink4=&Technical Support,https://www.appeon.com/developers/get-help.html
EditorFontHeight=10
EditorFontName=Tahoma
PrinterFontHeight=10
PrinterFontName=Courier New
XPStyleTB=1
LatestProductNews=0

[Application]
DefLib=C:\Users\Public\Documents\Appeon\PowerBuilder 17.0\Code Examples\Example App\pbexamfe.pbl
WorkingDir=C:\Program Files (x86)\Appeon\PowerBuilder 17.0
$C:\Users\Public\Documents\Appeon\PowerBuilder 17.0\Code Examples\Example App\pbexamfe.pbl(examples)=C:\Users\Public\Documents\Appeon\PowerBuilder 17.0\Code Examples\Example App\pbexamfe.pbl;C:\Users\Public\Documents\Appeon\PowerBuilder 17.0\Code Examples\Example App\pbexamw3.pbl;C:\Users\Public\Documents\Appeon\PowerBuilder 17.0\Code Examples\Example App\pbexamd2.pbl;C:\Users\Public\Documents\Appeon\PowerBuilder 17.0\Code Examples\Example App\pbexamfn.pbl;C:\Users\Public\Documents\Appeon\PowerBuilder 17.0\Code Examples\Example App\pbexammn.pbl;C:\Users\Public\Documents\Appeon\PowerBuilder 17.0\Code Examples\Example App\pbexamuo.pbl;C:\Users\Public\Documents\Appeon\PowerBuilder 17.0\Code Examples\Example App\pbexamw1.pbl;C:\Users\Public\Documents\Appeon\PowerBuilder 17.0\Code Examples\Example App\pbexamw2.pbl;C:\Users\Public\Documents\Appeon\PowerBuilder 17.0\Code Examples\Example App\pbexamd1.pbl;C:\Users\Public\Documents\Appeon\PowerBuilder 17.0\Code Examples\Example App\pbexamsa.pbl;
$C:\Users\Public\Documents\Appeon\PowerBuilder 17.0\Code Examples\Example App\pbexbm.pbl(benchmark)=C:\Users\Public\Documents\Appeon\PowerBuilder 17.0\Code Examples\Example App\pbexbm.pbl;

[Window]
GridOn=0
GridShow=1
GridX=8
GridY=8
Status=0

[Menu]

[Database]
AutoQuote=1
Columns=8
NoCatalog=No
ReadOnly=0
ShowIndexKeys=1
ShowReflnt=1
StayConnected=1
TableDir=1
TableListCache=1800
TableSpace=*
TerminatorCharacter=;
HideComments=0
ShowRefInt=1
ODataInPBClassic=1

[Data Window]
GridOn=0
GridShow=0
GridX=8
GridY=8
new_default_datasource=5
new_default_presentation=2
Outline_Objects=1
PreviewOnNew=no
PreviewRetrieve=1
Preview_RetainData=1
PrintOnNew=Yes
PrintPreviewRulers=No
PrintPreviewZoom=100
Ruler=No
Status=0
stored_procedure_build=1
OverlayLineWidth=1

[Library]
ApplicationExplosion=1
ApplicationScripts=1
DeletePrompt=1
DisplayComments=1
DisplayDates=1
DisplaySizes=1
IncludeApplications=1
IncludeDataWindows=1
IncludeFunctions=1
IncludeMenus=1
IncludePipeLines=1
IncludeQueries=1
IncludeStructures=1
IncludeUserObjects=1
IncludeWindows=1
MenuAttributes=1
MenuScripts=1
SaveBackupsOnOptimize=1
WindowAttributes=1
WindowObjects=1
WindowObjectsAttributes=1
WindowObjectsScripts=1
WindowPicture=1
WindowScripts=1
NormalFont=Courier New
NormalFontHeight=10

[Debug]
VariablesWindow=0
WatchWindow=0

[Machine Code]

[SQL Painter]
Hidecomments=0
Tabitem=1

[PB Welcome]
IsEnable = 1
WebLink = news.appeon.com/start.html

Comment
  1. Chris Pollach @Appeon
  2. Wednesday, 30 January 2019 21:08 PM UTC
You should always have write access. Make sure that you are NOT trying to use the PB.INI in the "Program Files" folder but the one in your user area ...

For example: C:\Users\John\AppData\Local\Appeon\PowerBuilder 17.0
  1. Helpful
  1. JOHN THOMAS
  2. Wednesday, 30 January 2019 21:16 PM UTC
thanks Chris...but no, they installed it here:



C:\Program Files (x86)\Appeon\PowerBuilder 17.0



...and not under our user accounts...probably because there are multiple developers going in. Hence I have to put in for access to the thing. I'll let you know.
  1. Helpful
  1. Chris Pollach @Appeon
  2. Thursday, 31 January 2019 00:29 AM UTC
Hi John;

FYI: The PB.ini in "C:\Program Files (x86)\Appeon\PowerBuilder 17.0" is NOT used by the IDE. It only uses that information once to create the real PB.ini under the MS-Windows Uer's account folder.

Regards ... Chris
  1. Helpful
There are no comments made yet.
JOHN THOMAS Accepted Answer Pending Moderation
  1. Thursday, 31 January 2019 14:09 PM UTC
  2. PowerBuilder
  3. # 5

Hey Chris, re:

FYI: The PB.ini in "C:\Program Files (x86)\Appeon\PowerBuilder 17.0" is NOT used by the IDE. It only uses that information once to create the real PB.ini under the MS-Windows Uer's account folder.

 

You are right, found it there and guess what, added your

Dock=1 2001 0 1 26 50 0 0 320 169 2003 0 1 26 50 0 0 320 169 2002 3 1 26 100 0 0 320 169

...and I am back to Good!  I actually added it in both pb.ini's for good measure. My own already has this

Dock=1 2001 5 1 36 100 13 84 775 510 2003 0 0 36 100 0 0 227 117 2002 3 1 18 100 0 0 227 117

...but it wasn't working. God knows how it ended up with that value or screwed up. Thanks a million for the steady help. 

Comment
  1. Chris Pollach @Appeon
  2. Thursday, 31 January 2019 16:26 PM UTC
Hi John;

That is excellent news .. Happy PB'ing! :-)

Regards ... Chris
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.