CorelDraw & VBA
Back to the Main Menu
VBA Introduction
Artistic Text
Paragraph Text
Finding & Changing Text
Master Layers
Opening Other Applications
User Interface
Event Programming
Storing User Data
Error Handling
Speeding Up CorelDraw
CQL
VBA Security
Dialog Boxes & Tools
 
Guide to CorelDraw VBA

Dialog Boxes & Tools


Advanced users will probably use this section more than intermediate programmers.
It may not even be useful but I provide it anyway.
It opens and closes Dialog Boxes and Selects Tools without the use of the cursor.

'Place the following line, which is for 64 bit systems, outside a Sub or Function.
Declare PtrSafe Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hWnd As LongPtr, ByVal Msg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long

'Insert the following line inside a Sub or Function where you replace the variable wParam with a number.
    SendMessage AppWindow.Handle, 273, wParam, 0

The SendMessage command, depending on the number you use for wParam, will open Dialog Boxes or Select Tools.
The table below is not complete. It is based on CorelDraw X6. Newer versions probably have additional numbers.
I have probably missed many wParam numbers that I have not documented.
You will notice that I have only looked at 1 to 57,600 but it actually goes to 123,141 and probably beyond.
If you come across any I have missed send me an email and I will included them.

Dialog Box, ToolBar or ToolwParam
Select the Smear Tool204
Select the Virtual Segment Delete Tool205
Select the Pick Tool212
Select the Pick Tool213
Export Dialog Box21216
Print Dialog Box21217
Palette Editor Dialog Box32772
Save changes Dialog box32773
Tools - Options Dialog box with Toolbox highlighted32774
Tools - Options Dialog box with Workspace - Customization highlighted32775
Run Script Dialog box32776
Open Corel Script Manager Docker32777
Open CorelDraw Help on the internet.32779
Open CorelDraw Help on the internet.32787
Default Color Management Settings32806
Open Color Palette Manager Docker32830
Open Palette Dialog box32833
Open Create a New Document Dialog box32854
Open Drawing Dialog box32856
Select the Text Tool32894
Toggles Toolbox Toolbar32966
Toggles Property Toolbar32971
Find Dialog Box33035
Find Dialog Box33036
Find Dialog Box33037
Find Dialog Box33038
Find Dialog Box33039
Wrong File Format or Could Not Open Dialog Box33040
Save33192
Toggles the Status Bar33193
Tools - Options Dialog box with General highlighted33200
Tools - Options Dialog box with Display highlighted33201
Tools - Options Dialog box with Edit highlighted33202
Open Find Wizard Dialog box33203
Open Replace Wizard Dialog box33204
Open Save Before Closing Dialog box33210
Open CorelDraw Help on the internet.33220
Open Add-In Manager Dialog box33232
Tools - Options Dialog box with Document - Guidelines highlighted33233
Tools - Options Dialog box with Document - Presets highlighted33234
Try to open a document on the internet33244
Try to open a document on the internet33245
Try to open a document on the internet33246
Tries to send document on the internet33254
Tries to send document on the internet33255
Tries to send document on the internet33256
Tries to send document on the internet33257
Tries to send document on the internet33258
Tries to send document on the internet33259
Tries to send document on the internet33260
Tries to send document on the internet33261
Tries to send document on the internet33262
Page Sorter View33332
Tools - Options Dialog box with Workspace - Customization highlighted33335
Tools - Options Dialog box with Workspace - Snap to Objects highlighted33350
Tools - Options Dialog box with Workspace - Dynamic Guides highlighted33352
Quick Start Dialog box33356
Import Dialog box33540
Export Dialog box33541
Print Dialog box33542
Print Setup Dialog box33544
Print Preview view33545
Collect for Output Dialog box33546
Save Drawing Dialog box33547
Undo33548
Cut everthing on page33549
Delete Selected33551
Paste33553
Delete selection33555
Duplicate Offset Dialg Box33556
Duplicate Selected33557
Copy Properties Dialog Box33558
Select all33559
Insert Page Dialog box33567
Tools - Options Dialog box with Document - Page Size highlighted33570
Tools - Options Dialog box with Document - Grid highlighted33571
Tools - Options Dialog box with Document - Guidelines highlighted33572
Group Selected33580
Ungroup Selected33581
Combine Selected33583
Break Apart Selected33584
Toggles Document Grid33587
Toggles Show Printable Area33589
Tools - Options Dialog box with Workspace - Snap to Objects highlighted33590
Delete selection33591
Select text33593
Toggles Show Show Bleed33598
Clear Transformations33601
Add Perspective33602
Place Inside Power Clip33603
Writing Tools Dialog box33633
Tools - Options Dialog box with Workspace - Text - QuickCorrect highlighted33637
Writing Tools Dialog box33638
Tools - Options Dialog box with Workspace - Text - Spelling highlighted33646
Tools - Options Dialog box with Workspace - Text - Fonts highlighted33647
Export for Office33648
Reduce Font Size to 14pt33655
Reduce Font Size to 13pt33656
Reduce Font Size to 11pt33657
Reduce Font Size to 11pt33658
Select Text Tool if Not Selected Otherwise Fit Text To Curve33660
Create Arrow Head Dialog Box33667
Insert Character Dialog Box33668
Extract Dialog Box33669
Merge Back Dialog box33670
Convert To Bitmap Dialog Box33672
Writing Tools Dialog Box33674
Tools - Option Dialog Box Open at Spelling33676
Tools - Option Dialog Box Open at Text33678
Statistic Dialog Box33679
Revert Dialog Box33708
Lock Object33710
Unlock Object33711
Palette Editor's Save Palette Dialog Box33714
Palette Editor's Save Palette Dialog Box33715
Tools - Option Dialog Box at Display33718
Create Roll Over33720
Toggles Show Page Border33724
Tools - Option Dialog Box at Background33727
Close Document but show Save Changes Dialog Box if Required33733
Overprint Outline33739
Overprint Fill33740
More Internal Bookmarks Dialog Box33769
Edit Internet Properties33770
Edit Internet Properties33771
Edit Internet Properties33772
Edit Internet Properties33773
Edit Internet Properties33774
Edit Internet Properties33775
Edit Internet Properties33776
Edit Internet Properties33777
Edit Internet Properties33778
Edit Internet Properties33779
More URL's Dialog Box33780
Edit Internet Properties33781
Edit Internet Properties33782
Edit Internet Properties33783
Edit Internet Properties33784
Edit Internet Properties33785
Edit Internet Properties33786
Edit Internet Properties33787
Edit Internet Properties33788
Edit Internet Properties33789
Edit Internet Properties33790
Add Rectangle to Edge of page33808
Export Dialog Box as SWF File33844
Export Dialog Box as SWF File33846
Insert page Dialog Box33883
Insert page Dialog Box33884
Align And Distribute Dialog Box33990
CorelDraw Help Topics Dialog Box34003
Export HTML Dialog Box34006
Add a New page After the Active page34010
Add a New Page the Before Active Page34011
Delete the Active Page34012
Rename Active page Dialog Box34015
Convert Outline To Object34016
Toggles between Portrait & Landscape34017
Resize Page Dialog Box34018
Select All34023
Distribute34024
Web Image Optimizer Dialog Box34032
Align34036
Align34037
Align34038
Text Language Dialog Box34200
Tool - Options Dialog Box At Page Size34205
Preview of Web Page at HTML34220
Document Color Settings Dialog Box34221
Toggles Show Page Border34232
Align34235
Loop34238
Insert New Object Dialog Box34562
Barcode Wizard Dialog Box34563
Toggles Rules34564
Toggles Paper Sorter View34571
Full Screen Preview34572
Preview Selected Only34573
Insert Page Dialog Box34582
Insert Page Dialog Box34583
Some type of view34589
Causes a Crash34723
Closes Document but asks if you wish to Save34795
Toggles View Manager Docker35073
Toggles Object Data Manager Docker35076
Toggles Insert Symbol Character Docker35077
Toggles Hint Docker35079
Toggles Lens Docker35082
Toggles Bitmap Color Mask Docker35083
Toggles Color Docker35084
Toggles Object Manager Docker35106
Macros Dialog Box35107
Toggles Tray Docker35109
Toggles Web Connection Docker35110
Opens Scrapbook Docker & Tries to Download.35118
Opens Scrapbook Docker.35119
Opens Scrapbook Docker.35120
Toggles Undo Docker35125
Opens Macro Manager Docker & then CorelDraw Crashes.35126
Select the Rectangle Tool37377
Select the Polygon Tool37478
Select the Star Tool37486
Select the Star Tool37487
Select the Spiral Tool37579
Select the Graph Paper Tool37680
Select the Ellipse Tool37781
Select the Transparency Tool37882
Select the Basic Shapes Tool37894
Select the Arrow Shapes Tool37895
Select the Flowchart Shapes Tool37896
Select the Banner Shapes Tool37897
Select the Callout Shapes Tool37898
Select the Blend Tool38084
Select the Countour Tool38185
Toggle the Countour Docker38186
Select the Distort Tool38286
Select the Artistic Media Tool38488
Select the Artistic Media Tool38489
Select the Artistic Media Tool38490
Select the Artistic Media Tool38491
Select the Artistic Media Tool38492
Select the Artistic Media Tool38496
Select the Artistic Media Tool38497
Select the Artistic Media Tool38498
Select the Artistic Media Tool38499
Select the Artistic Media Tool38501
Browse for Folder Dialog Box38514
Toggles the Artistic Media Docker38546
Select Extrude Tool38791
Toggles Extrude Docker38851
Toggles Free Transform38891
Toggles Free Transform38892
Toggles Free Transform38893
Toggles Free Transform38894
Toggles Free Transform38895
Select Mesh Fill Tool39093
Select Zoom Tool39194
Select PanTool39195
Pan Left39201
Pan Right39202
Pan Down39203
Pan Up39204
Fit To Height39205
Zoom In39208
Zoom Out39209
Zoom to 100%39211
Zoom to Selected39212
Zoom to Fit39213
Zoom to Page39214
Zoom to Width39216
Select Bezier Tool39295
Toggle Envelope Docker39396
Select Envelope Tool39397
Select Copy Envelope Properties39410
Save As Preset File Dialog Box39411
Select Drop Shadow Tool39497
Select Interactive Fill Tool39598
Uniform Fill Dialog Box39600
Fountain Fill Dialog Box39601
PostScript Texture Dialog Box39602
Texture Fill Dialog Box39603
Pattern Fill Dialog Box39604
Pattern Fill Dialog Box39605
Outline Pen Dialog Box39700
Apply a Hairline Width outline39702
Apply a 0.176mm Outline39703
Apply a 0.353mm Outline39704
Apply a 0.706m Outline39705
Apply a 1.411m Outline39706
Apply a 2.822m Outline39707
Apply a 4.233m Outline39708
Apply a 5.644m Outline39709
Apply a 7.056m Outline39710
Apply a 8.467m Outline39711
Outline Color Dialog Box39712
Remove the Outline Color39713
Apply a C0,M0,Y0,K10 Outline Color39714
Apply a C0,M0,Y0,K20 Outline Color39715
Apply a C0,M0,Y0,K30 Outline Color39716
Apply a C0,M0,Y0,K40 Outline Color39717
Apply a C0,M0,Y0,K50 Outline Color39718
Apply a C0,M0,Y0,K60 Outline Color39719
Apply a C0,M0,Y0,K70 Outline Color39720
Apply a C0,M0,Y0,K80 Outline Color39721
Apply a C0,M0,Y0,K90 Outline Color39722
Apply a C0,M0,Y0,K100 Outline Color39723
Select the Shape Tool39901
Select the Knife Tool40002
Select the Eraser Tool40101
Select the Color Eyedropper Tool40201
Select Color Eyedropper Tool - Apply Color40202
Select Attribute Eyedropper Tool40203
Select Horizontal Or Vertical Dimension Tool40960
SelectParallel Dimension Tool40961
Select Angular Dimension Tool40962
Select Segment Dimension Tool40963
Select Smart Fill Tool40974
Select B-Spline Tool40975
Open Outline Tool Bar40976
Open Outline Tool Bar40977
Select 3-Point Callout Tool40978
Open Outline Tool Bar40979
Select Straight-Line Connector Tool41010
Select Right-Angle Connector Tool41011
Select Right-Angle Round Connector Tool41012
Open Connector Tool Bar41013
Select Create Connector Tool (Not actually a std tool)41014
Select Edit Anchor41016
Select Crop Tool41019
Select 2-Point Line Tool41020
Select Freehand Tool41021
Select Polyline Tool41022
Select 3-Point Curve Tool41023
Select Pen Tool41024
Select Roughen Brush Tool41025
Select Smart Drawing Tool41026
Select Smudge Brush Tool41027
Create New Symbol Dialog Box41030
Toggle Symbol Docker41033
Select Table Tool41041
Select 3-Point Ellipse41052
Select 3-Point Rectangle41053
About CorelDraw Dialog Box41985
Camera Raw Lab Dialog Box54722
Brightness/Contrast/Intensity Dialog Box55118
Color Balance Dialog Box55119
Gamma Dialog Box55120
Hue/Saturation/Lightness Dialog Box55121
Invert55142
Posterize Dialog Box55143
Publish to PDF Dialog Box55360
Toggle the Std Menu Bar57221
Toggle the Property Bar57222
Toggle the Toolbox Bar57223
Toggle the Text Toolbar57224
Toggle the Zoom Toolbar57225
Toggle the Internet Toolbar57226
Toggle the Print Merge Toolbar57227
Toggle the Transform Toolbar57228
Toggle the Macros Toolbar57229
Toggle the Layout Toolbar57230
Toggle the Object Flyout Toolbar57231
Toggle Outline Flyout Toolbar57232
Toggle the Interactive Tool Flyout Toolbar57233
Toggle the Drop Shadow Toolbar57234
Toggle the Fill Flyout Toolbar57235
Toggle the Eyedropper Tool Flyout Toolbar57236
Toggle the Interactive Fill Flyout Toolbar57237
Toggle the Perfect Shape Flyout Toolbar57238
Toggle the Trace Toolbar57239
Toggle the Centerline Trace Toolbar57240
Toggle the Outline Trace Toolbar57241
Toggle the Shape Edit Flyout Toolbar57242
Toggle the Pick Tool Flyout Toolbar57243
Toggle the Ellipse Tool Flyout Toolbar57244
Toggle the Rectangle Tool Flyout Toolbar57245
Toggle the Zoom Flyout Toolbar57246
Toggle the Curve Flyout Toolbar57247
Toggle the Snap Toolbar57248
Toggle the Smart Tool Flyout Toolbar57249
Toggle the Crop Tool Flyout Toolbar57250
Toggle the 3-Point Callout Tool Toolbar57251
Toggle the Connector Tool Flyout Toolbar57252
Toggle the Contour Corner Toolbar57253
Toggle the Contour Colors Toolbar57254
Toggle the Dimension Tolls Flyout Toolbar57255
Toggle the Dimension Tolls Flyout Toolbar57256
Toggle the Area Border Modifier Toolbar57257
Toggle the Area Border Modifier Toolbar57258
Toggle the Horizontal Text Alignment Toolbar57259
Toggle New Toolbar 1 a Trace Toolbar57260
Toggle New Toolbar 3 a Perspective & Envelope Docker Toolbar57261
Toggle New Toolbar 4 a Shaping Toolbar57262
Toggle New Toolbar 5 a Close Path, Convert to Outline Toolbar57263
Toggle New Toolbar 10 an Empty Toolbar57264
Toggle New Toolbar 12 a Bitmap Tool Toolbar57265
Toggle the Menu Bar57477
Toggle the Staus Bar57478
?57480
Export Workspace Dialog Box57497
Import WorkSpace - Step 1 of 5 Dialog Box57498
Tools - Options Dialog box with Customization/Commands highlighted57521
Tools - Options Dialog box with Customization/Command Bars highlighted57533
Print Setup Dialog Box57606
Print Dialog Box57607
A View Toolbar57609
Do You Want to Revert To the Last Saved Version Dialog Box57616
Without Closing Current Document, Open a Recent Document57617
Without Closing Current Document, Open a Recent Document57618
Without Closing Current Document, Open a Recent Document57619
Without Closing Current Document, Open a Recent Document57620
Without Closing Current Document, Open a Recent Document57621
Without Closing Current Document, Open a Recent Document57622
Without Closing Current Document, Open a Recent Document57623
Without Closing Current Document, Open a Recent Document57624
Without Closing Current Document, Open a Recent Document57625
Without Closing Current Document, Open a Recent Document57626
Without Closing Current Document, Open a Recent Document57627
Without Closing Current Document, Open a Recent Document57628
Without Closing Current Document, Open a Recent Document57629
Without Closing Current Document, Open a Recent Document57630
Without Closing Current Document, Open a Recent Document57631
Create a New Window57648
Cascade Windows57650
Reset Window Size57651
Reset Window Size57652
CorelDraw Help Topics Dialog Box57670
Save Drawing Dialog Box123141
2018_09_12