1. John Bailey
  2. PowerBuilder
  3. Thursday, 11 April 2024 16:12 PM UTC

I Use the DataWindow Syntax tool during development and would like to add an icon to the PB menu bar.

From PB help --

The DWSyntax tool, available on the Tool tab in the New dialog box,
makes it easy to specify dot notation, Describe, Modify, and SyntaxFromSQL statements.

To access DWSyntax, select File>New and select the Tool tab.
Select the type of statement you want to create from the Syntax menu:

I can define a custom icon to open the New selection window,
but cannot automatically open the Tool tab nor the DWSyntax tool.

@File.New~.~.~. opens the new selection window shown above.

I would really appreciate if someone knows how to do this.

Thankyou.

Roland Smith Accepted Answer Pending Moderation
  1. Friday, 12 April 2024 01:11 AM UTC
  2. PowerBuilder
  3. # 1

Several of the DLL files in the IDE are actually PowerBuilder code.

You can add a toolbar button that opens the DW Syntax window with the following values:

 

Command Line:   wizard:?entry=k60_dwsyntax_sheet

Item Text:      DW Syntax

Item Microhelp: DataWindow Syntax

 

If you want a custom toolbar image, open Regedit and find this key:


HKEY_CURRENT_USER\Software\Sybase\PowerBuilder\22.0\Toolbar\Command

 

The keys below that are numbers that are icon resource numbers in one of the dll files for the chosen .

You can add a string value called PicPath and give it the full path filename of a 16x16 bitmap to use instead of the chosen one. I haven't tried an icon file myself, it might work.

Comment
  1. Roland Smith
  2. Friday, 12 April 2024 01:15 AM UTC
The following files in the IDE folder are PowerBuilder code:

pbadd.dll, pbdwo.dll, pbgen.dll, pbw1x.dll,

pbw2x.dll, pbw3x.dll, pbw4x.dll, pbw5x.dll,

pbwdw.dll, pbwiz.dll, pbwps.dll, pbwzp.dll
  1. Helpful 1
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.