-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathcontrols-native.html
More file actions
394 lines (337 loc) · 22.3 KB
/
controls-native.html
File metadata and controls
394 lines (337 loc) · 22.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
<!DOCTYPE html>
<html lang="en" data-theme="dark">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Native Platform Controls - HarbourBuilder Docs</title>
<link rel="stylesheet" href="../assets/css/docs.css">
<script src="https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.min.js"></script>
<script>mermaid.initialize({startOnLoad:true, theme:'dark'});</script>
</head>
<body>
<div class="header">
<a class="logo" href="index.html"><span>HB</span> HarbourBuilder Docs</a>
<nav>
<input class="search-box" type="text" placeholder="Search docs..." oninput="doSearch(this.value)">
<button class="lang-btn active">EN</button>
<a class="lang-btn" href="../es/index.html">ES</a>
<a class="lang-btn" href="../pt/index.html">PT</a>
<button class="theme-toggle" onclick="toggleTheme()">☼</button>
</nav>
</div>
<div class="sidebar">
<div class="nav-section">
<h3 id="getting-started">Getting Started</h3>
<a href="index.html">Overview</a>
<a href="quickstart.html">Quick Start</a>
<a href="installation.html">Installation</a>
<a href="architecture.html">Architecture</a>
</div>
<div class="nav-section">
<h3 id="component-palette">Component Palette</h3>
<a href="controls-standard.html">Standard (11)</a>
<a href="controls-additional.html">Additional (10)</a>
<a href="controls-native.html" class="active">Win32 / Cocoa / GTK3 (9)</a>
<a href="controls-system.html">System (2)</a>
<a href="controls-dialogs.html">Dialogs (6)</a>
<a href="controls-database.html">Data Access (9)</a>
<a href="controls-datacontrols.html">Data Controls (8)</a>
<a href="controls-internet.html">Internet (9)</a>
<a href="controls-threading.html">Threading (8)</a>
<a href="controls-ai.html">AI (7)</a>
<a href="controls-erp.html">ERP / Business (12)</a>
</div>
<div class="nav-section">
<h3 id="ide-features">IDE Features</h3>
<a href="form-designer.html">Form Designer</a>
<a href="code-editor.html">Code Editor</a>
<a href="debugger.html">Debugger</a>
<a href="ai-assistant.html">AI Assistant</a>
</div>
<div class="nav-section">
<h3 id="platforms">Platforms</h3>
<a href="platform-windows.html">Windows</a>
<a href="platform-macos.html">macOS</a>
<a href="platform-linux.html">Linux</a>
</div>
</div>
<div class="content">
<div class="breadcrumbs">
<a href="index.html">Docs</a> <span>/</span>
<a href="controls-standard.html">Component Palette</a> <span>/</span> Win32 / Cocoa / GTK3
</div>
<h1>Native Platform Controls</h1>
<p>The Win32 / Cocoa / GTK3 tab provides complex controls that map directly to each platform's advanced native widgets. These controls offer rich functionality with full OS integration.</p>
<!-- TTabControl -->
<h2 id="tabcontrol">TTabControl <span class="badge new">CT_TABCONTROL = 33</span></h2>
<p>Tabbed page container. Each tab hosts a panel of controls, enabling multi-page interfaces.</p>
<table>
<tr><th>Property</th><th>Type</th><th>Default</th><th>Description</th></tr>
<tr><td><code>nTabIndex</code></td><td>Numeric</td><td>0</td><td>Currently active tab (0-based)</td></tr>
<tr><td><code>nTabCount</code></td><td>Numeric</td><td>0</td><td>Number of tabs (read-only)</td></tr>
<tr><td><code>nTabPosition</code></td><td>Numeric</td><td>0</td><td>0=Top, 1=Bottom, 2=Left, 3=Right</td></tr>
<tr><td><code>lHotTrack</code></td><td>Logical</td><td>.F.</td><td>Highlight tabs on mouse hover</td></tr>
</table>
<table>
<tr><th>Event</th><th>Category</th><th>Description</th></tr>
<tr><td><code>OnChange</code></td><td>Action</td><td>Active tab changed</td></tr>
<tr><td><code>OnChanging</code></td><td>Action</td><td>Tab is about to change (can cancel)</td></tr>
</table>
<table>
<tr><th>Platform</th><th>Native Widget</th></tr>
<tr><td><span class="badge win">Windows</span></td><td>WC_TABCONTROL (SysTabControl32)</td></tr>
<tr><td><span class="badge mac">macOS</span></td><td>NSTabView</td></tr>
<tr><td><span class="badge linux">Linux</span></td><td>GtkNotebook</td></tr>
</table>
<pre><span class="cm">// Create a tabbed form</span>
@ <span class="nb">10</span>, <span class="nb">10</span> <span class="cmd">TABCONTROL</span> oTab <span class="cmd">OF</span> oForm <span class="cmd">SIZE</span> <span class="nb">400</span>, <span class="nb">300</span>
oTab:<span class="fn">AddTab</span>( <span class="st">"General"</span> )
oTab:<span class="fn">AddTab</span>( <span class="st">"Details"</span> )
oTab:<span class="fn">AddTab</span>( <span class="st">"Notes"</span> )</pre>
<!-- TTreeView -->
<h2 id="treeview">TTreeView <span class="badge new">CT_TREEVIEW = 20</span></h2>
<p>Hierarchical tree display with expandable/collapsible nodes. Ideal for file browsers, category trees, and organizational charts.</p>
<table>
<tr><th>Property</th><th>Type</th><th>Default</th><th>Description</th></tr>
<tr><td><code>lShowLines</code></td><td>Logical</td><td>.T.</td><td>Show connecting lines between nodes</td></tr>
<tr><td><code>lShowButtons</code></td><td>Logical</td><td>.T.</td><td>Show expand/collapse buttons</td></tr>
<tr><td><code>lCheckBoxes</code></td><td>Logical</td><td>.F.</td><td>Show checkboxes next to items</td></tr>
<tr><td><code>lSorted</code></td><td>Logical</td><td>.F.</td><td>Auto-sort nodes alphabetically</td></tr>
<tr><td><code>oSelected</code></td><td>TreeNode</td><td>NIL</td><td>Currently selected node</td></tr>
</table>
<table>
<tr><th>Event</th><th>Category</th><th>Description</th></tr>
<tr><td><code>OnChange</code></td><td>Action</td><td>Selected node changed</td></tr>
<tr><td><code>OnExpanding</code></td><td>Action</td><td>Node about to expand</td></tr>
<tr><td><code>OnCollapsing</code></td><td>Action</td><td>Node about to collapse</td></tr>
<tr><td><code>OnDblClick</code></td><td>Action</td><td>Node double-clicked</td></tr>
<tr><td><code>OnEdited</code></td><td>Action</td><td>Node label edited</td></tr>
</table>
<table>
<tr><th>Platform</th><th>Native Widget</th></tr>
<tr><td><span class="badge win">Windows</span></td><td>WC_TREEVIEW (SysTreeView32)</td></tr>
<tr><td><span class="badge mac">macOS</span></td><td>NSOutlineView</td></tr>
<tr><td><span class="badge linux">Linux</span></td><td>GtkTreeView (tree model)</td></tr>
</table>
<pre><span class="cm">// Build a category tree</span>
@ <span class="nb">10</span>, <span class="nb">10</span> <span class="cmd">TREEVIEW</span> oTree <span class="cmd">OF</span> oForm <span class="cmd">SIZE</span> <span class="nb">200</span>, <span class="nb">300</span>
oRoot := oTree:<span class="fn">AddItem</span>( <span class="st">"Products"</span> )
oRoot:<span class="fn">AddChild</span>( <span class="st">"Electronics"</span> )
oRoot:<span class="fn">AddChild</span>( <span class="st">"Clothing"</span> )
oRoot:<span class="fn">Expand</span>()</pre>
<!-- TListView -->
<h2 id="listview">TListView <span class="badge new">CT_LISTVIEW = 21</span></h2>
<p>Multi-column list in report mode (LVS_REPORT). Each item is a row with N cells; column headers come from <code>aColumns</code>.</p>
<table>
<tr><th>Property</th><th>Type</th><th>Default</th><th>Description</th></tr>
<tr><td><code>aColumns</code></td><td>Array</td><td>{"Column1","Column2","Column3"}</td><td>Column headers (max 8)</td></tr>
<tr><td><code>aItems</code></td><td>Array</td><td>{}</td><td>Rows; each element is an array of strings, one per column (max 64 rows)</td></tr>
<tr><td><code>aImages</code></td><td>Array</td><td>{}</td><td>PNG/ICO paths for ImageList (max 16); required for Icon/SmallIcon modes</td></tr>
<tr><td><code>nViewStyle</code></td><td>Numeric</td><td>2</td><td>0=Icon, 1=List, 2=Report, 3=SmallIcon</td></tr>
</table>
<table>
<tr><th>Method</th><th>Description</th></tr>
<tr><td><code>SetColumns( aCols )</code></td><td>Set headers from string array</td></tr>
<tr><td><code>SetItems( aRows )</code></td><td>Replace all rows; <code>SetItems({})</code> clears</td></tr>
<tr><td><code>AddItem( aCells )</code></td><td>Append a row at the end</td></tr>
<tr><td><code>SetImages( aPaths )</code></td><td>Load PNG/ICO into ImageList 32x32 + 16x16; row N uses icon <code>N % count</code></td></tr>
</table>
<table>
<tr><th>Event</th><th>Category</th><th>Description</th></tr>
<tr><td><code>OnClick</code></td><td>Action</td><td>Item clicked</td></tr>
<tr><td><code>OnDblClick</code></td><td>Action</td><td>Item double-clicked</td></tr>
<tr><td><code>OnColumnClick</code></td><td>Action</td><td>Column header clicked (for sorting)</td></tr>
<tr><td><code>OnChange</code></td><td>Action</td><td>Selection changed</td></tr>
</table>
<table>
<tr><th>Platform</th><th>Native Widget</th></tr>
<tr><td><span class="badge win">Windows</span></td><td>WC_LISTVIEW (SysListView32) with LVS_REPORT + LVS_EX_FULLROWSELECT|GRIDLINES</td></tr>
<tr><td><span class="badge mac">macOS</span></td><td>NSTableView multi-column</td></tr>
<tr><td><span class="badge linux">Linux</span></td><td>GtkTreeView + GtkListStore</td></tr>
</table>
<h3>xBase syntax</h3>
<pre><span class="cm">// Define ListView with 3 columns</span>
@ <span class="nb">50</span>, <span class="nb">20</span> <span class="cmd">LISTVIEW</span> oLV <span class="cmd">OF</span> oForm <span class="cmd">SIZE</span> <span class="nb">480</span>, <span class="nb">250</span> ;
<span class="cmd">COLUMNS</span> <span class="st">"Name"</span>, <span class="st">"Age"</span>, <span class="st">"City"</span>
oLV:<span class="fn">AddItem</span>( { <span class="st">"Alice"</span>, <span class="st">"30"</span>, <span class="st">"New York"</span> } )
oLV:<span class="fn">AddItem</span>( { <span class="st">"Bob"</span>, <span class="st">"25"</span>, <span class="st">"Los Angeles"</span> } )
oLV:<span class="fn">AddItem</span>( { <span class="st">"Charlie"</span>, <span class="st">"40"</span>, <span class="st">"Chicago"</span> } )
</pre>
<h3>Editing in the Inspector</h3>
<p>When a TListView control is selected in the designer, the inspector exposes two editable properties:</p>
<ul>
<li><strong>aColumns</strong> — click the <code>...</code> button to open the array editor. One column header per line.</li>
<li><strong>aItems</strong> — click the <code>...</code> button to open the dedicated <em>ListView Items Editor</em>: a grid showing the columns from <code>aColumns</code>, one row per item, double-click any cell to edit it in place. Buttons <code>+ Add</code> / <code>- Del</code> / <code>Up</code> / <code>Down</code> manage rows. Enter commits, Esc cancels.</li>
</ul>
<p>The code generator emits the <code>@ ... LISTVIEW ... COLUMNS ...</code> command followed by one <code>:AddItem({...})</code> call per row.</p>
<h3>Storage format</h3>
<p>Internally <code>aColumns</code> and <code>aItems</code> are serialized as strings:</p>
<ul>
<li><code>aColumns</code>: headers separated by <code>|</code> — e.g. <code>"Name|Age|City"</code></li>
<li><code>aItems</code>: rows separated by <code>|</code>, cells within each row by <code>;</code> — e.g. <code>"Alice;30;NY|Bob;25;LA"</code></li>
</ul>
<h3>View styles</h3>
<p>The <code>nViewStyle</code> property appears in the inspector as a dropdown with the enumerated values (<code>vsIcon</code>, <code>vsList</code>, <code>vsReport</code>, <code>vsSmallIcon</code>). Changing the value at runtime refreshes the control immediately. The <strong>Icon</strong> and <strong>SmallIcon</strong> modes require an ImageList to display icons.</p>
<h3>Editing images in the Inspector</h3>
<p>The <code>aImages</code> property opens a dedicated <em>ListView Images Editor</em> dialog when you click <code>...</code>: list of paths plus <code>+ Add</code> (file picker .png/.ico/.bmp), <code>- Del</code>, <code>Up</code>, <code>Down</code> buttons. Images load at runtime via GDI+, scaled to 32x32 (vsIcon) and 16x16 (vsSmallIcon). Per-row assignment is round-robin: <code>row[N]:icon = aImages[N mod len(aImages)]</code>.</p>
<pre><span class="cm">// Define ListView with icons</span>
@ <span class="nb">50</span>, <span class="nb">20</span> <span class="cmd">LISTVIEW</span> oLV <span class="cmd">OF</span> oForm <span class="cmd">SIZE</span> <span class="nb">480</span>, <span class="nb">250</span> ;
<span class="cmd">COLUMNS</span> <span class="st">"Name"</span>, <span class="st">"Age"</span> ;
<span class="cmd">ITEMS</span> <span class="st">"Alice;30"</span>, <span class="st">"Bob;25"</span> ;
<span class="cmd">IMAGES</span> <span class="st">"user.png"</span>, <span class="st">"admin.png"</span>
oLV:nViewStyle := <span class="nb">0</span> <span class="cm">// Icon mode: shows 32x32 PNGs</span>
</pre>
<!-- TProgressBar -->
<h2 id="progressbar">TProgressBar <span class="badge new">CT_PROGRESSBAR = 22</span></h2>
<p>Visual indicator of operation progress. Supports determinate (percentage) and indeterminate (marquee) modes.</p>
<table>
<tr><th>Property</th><th>Type</th><th>Default</th><th>Description</th></tr>
<tr><td><code>nMin</code></td><td>Numeric</td><td>0</td><td>Minimum value</td></tr>
<tr><td><code>nMax</code></td><td>Numeric</td><td>100</td><td>Maximum value</td></tr>
<tr><td><code>nPosition</code></td><td>Numeric</td><td>0</td><td>Current progress value</td></tr>
<tr><td><code>lMarquee</code></td><td>Logical</td><td>.F.</td><td>Indeterminate (animated) mode</td></tr>
</table>
<table>
<tr><th>Platform</th><th>Native Widget</th></tr>
<tr><td><span class="badge win">Windows</span></td><td>PROGRESS_CLASS (msctls_progress32)</td></tr>
<tr><td><span class="badge mac">macOS</span></td><td>NSProgressIndicator</td></tr>
<tr><td><span class="badge linux">Linux</span></td><td>GtkProgressBar</td></tr>
</table>
<pre><span class="cm">// Progress bar for file processing</span>
@ <span class="nb">200</span>, <span class="nb">20</span> <span class="cmd">PROGRESSBAR</span> oProgress <span class="cmd">OF</span> oForm <span class="cmd">SIZE</span> <span class="nb">300</span>, <span class="nb">20</span> <span class="cmd">RANGE</span> <span class="nb">0</span>, <span class="nb">100</span>
oProgress:<span class="fn">nPosition</span> := <span class="nb">45</span></pre>
<!-- TRichEdit -->
<h2 id="richedit">TRichEdit <span class="badge new">CT_RICHEDIT = 23</span></h2>
<p>Rich text editor supporting bold, italic, underline, colors, fonts, and paragraph formatting (RTF).</p>
<table>
<tr><th>Property</th><th>Type</th><th>Default</th><th>Description</th></tr>
<tr><td><code>cText</code></td><td>String</td><td>""</td><td>Plain text content</td></tr>
<tr><td><code>cRTFText</code></td><td>String</td><td>""</td><td>Rich text (RTF) content</td></tr>
<tr><td><code>lReadOnly</code></td><td>Logical</td><td>.F.</td><td>Prevent editing</td></tr>
<tr><td><code>lWordWrap</code></td><td>Logical</td><td>.T.</td><td>Wrap long lines</td></tr>
<tr><td><code>nSelStart</code></td><td>Numeric</td><td>0</td><td>Selection start position</td></tr>
<tr><td><code>nSelLength</code></td><td>Numeric</td><td>0</td><td>Selection length</td></tr>
</table>
<table>
<tr><th>Event</th><th>Category</th><th>Description</th></tr>
<tr><td><code>OnChange</code></td><td>Action</td><td>Content changed</td></tr>
<tr><td><code>OnSelChange</code></td><td>Action</td><td>Selection changed</td></tr>
<tr><td><code>OnKeyDown</code></td><td>Keyboard</td><td>Key pressed</td></tr>
</table>
<table>
<tr><th>Platform</th><th>Native Widget</th></tr>
<tr><td><span class="badge win">Windows</span></td><td>RICHEDIT_CLASS (RichEdit20W)</td></tr>
<tr><td><span class="badge mac">macOS</span></td><td>NSTextView (RTF enabled)</td></tr>
<tr><td><span class="badge linux">Linux</span></td><td>GtkTextView (with Pango markup)</td></tr>
</table>
<!-- TTrackBar -->
<h2 id="trackbar">TTrackBar <span class="badge new">CT_TRACKBAR = 34</span></h2>
<p>Slider control for selecting a numeric value within a range. Used for volume, zoom, and similar adjustments.</p>
<table>
<tr><th>Property</th><th>Type</th><th>Default</th><th>Description</th></tr>
<tr><td><code>nMin</code></td><td>Numeric</td><td>0</td><td>Minimum value</td></tr>
<tr><td><code>nMax</code></td><td>Numeric</td><td>100</td><td>Maximum value</td></tr>
<tr><td><code>nPosition</code></td><td>Numeric</td><td>0</td><td>Current slider position</td></tr>
<tr><td><code>nTickFreq</code></td><td>Numeric</td><td>1</td><td>Tick mark frequency</td></tr>
<tr><td><code>lHorizontal</code></td><td>Logical</td><td>.T.</td><td>Horizontal orientation</td></tr>
</table>
<table>
<tr><th>Event</th><th>Category</th><th>Description</th></tr>
<tr><td><code>OnChange</code></td><td>Action</td><td>Slider position changed</td></tr>
</table>
<table>
<tr><th>Platform</th><th>Native Widget</th></tr>
<tr><td><span class="badge win">Windows</span></td><td>TRACKBAR_CLASS (msctls_trackbar32)</td></tr>
<tr><td><span class="badge mac">macOS</span></td><td>NSSlider</td></tr>
<tr><td><span class="badge linux">Linux</span></td><td>GtkScale</td></tr>
</table>
<!-- TUpDown -->
<h2 id="updown">TUpDown <span class="badge new">CT_UPDOWN = 35</span></h2>
<p>Spin button (up/down arrows) typically paired with an edit control for numeric input.</p>
<table>
<tr><th>Property</th><th>Type</th><th>Default</th><th>Description</th></tr>
<tr><td><code>nMin</code></td><td>Numeric</td><td>0</td><td>Minimum value</td></tr>
<tr><td><code>nMax</code></td><td>Numeric</td><td>100</td><td>Maximum value</td></tr>
<tr><td><code>nPosition</code></td><td>Numeric</td><td>0</td><td>Current value</td></tr>
<tr><td><code>nIncrement</code></td><td>Numeric</td><td>1</td><td>Step increment</td></tr>
<tr><td><code>oBuddy</code></td><td>Control</td><td>NIL</td><td>Associated edit control</td></tr>
<tr><td><code>lWrap</code></td><td>Logical</td><td>.F.</td><td>Wrap from max to min</td></tr>
</table>
<table>
<tr><th>Event</th><th>Category</th><th>Description</th></tr>
<tr><td><code>OnChange</code></td><td>Action</td><td>Value changed (up/down clicked)</td></tr>
</table>
<table>
<tr><th>Platform</th><th>Native Widget</th></tr>
<tr><td><span class="badge win">Windows</span></td><td>UPDOWN_CLASS (msctls_updown32)</td></tr>
<tr><td><span class="badge mac">macOS</span></td><td>NSStepper</td></tr>
<tr><td><span class="badge linux">Linux</span></td><td>GtkSpinButton</td></tr>
</table>
<!-- TDateTimePicker -->
<h2 id="datetimepicker">TDateTimePicker <span class="badge new">CT_DATETIMEPICKER = 36</span></h2>
<p>Date and/or time picker with a dropdown calendar. Provides locale-aware formatting.</p>
<table>
<tr><th>Property</th><th>Type</th><th>Default</th><th>Description</th></tr>
<tr><td><code>dValue</code></td><td>Date</td><td>Date()</td><td>Selected date/time</td></tr>
<tr><td><code>dMinDate</code></td><td>Date</td><td>NIL</td><td>Minimum selectable date</td></tr>
<tr><td><code>dMaxDate</code></td><td>Date</td><td>NIL</td><td>Maximum selectable date</td></tr>
<tr><td><code>cFormat</code></td><td>String</td><td>""</td><td>Custom display format (e.g. "yyyy-MM-dd")</td></tr>
<tr><td><code>nKind</code></td><td>Numeric</td><td>0</td><td>0=Date, 1=Time, 2=DateTime</td></tr>
</table>
<table>
<tr><th>Event</th><th>Category</th><th>Description</th></tr>
<tr><td><code>OnChange</code></td><td>Action</td><td>Selected date/time changed</td></tr>
<tr><td><code>OnDropDown</code></td><td>Action</td><td>Calendar dropdown opened</td></tr>
<tr><td><code>OnCloseUp</code></td><td>Action</td><td>Calendar dropdown closed</td></tr>
</table>
<table>
<tr><th>Platform</th><th>Native Widget</th></tr>
<tr><td><span class="badge win">Windows</span></td><td>DATETIMEPICK_CLASS (SysDateTimePick32)</td></tr>
<tr><td><span class="badge mac">macOS</span></td><td>NSDatePicker</td></tr>
<tr><td><span class="badge linux">Linux</span></td><td>GtkCalendar + GtkPopover</td></tr>
</table>
<pre><span class="cm">// Date picker for invoice date</span>
@ <span class="nb">80</span>, <span class="nb">120</span> <span class="cmd">DATETIMEPICKER</span> oDtp <span class="cmd">OF</span> oForm <span class="cmd">SIZE</span> <span class="nb">150</span>, <span class="nb">24</span>
oDtp:<span class="fn">cFormat</span> := <span class="st">"dd/MM/yyyy"</span></pre>
<!-- TMonthCalendar -->
<h2 id="monthcalendar">TMonthCalendar <span class="badge new">CT_MONTHCALENDAR = 37</span></h2>
<p>Inline monthly calendar control. Displays a full month grid for date selection.</p>
<table>
<tr><th>Property</th><th>Type</th><th>Default</th><th>Description</th></tr>
<tr><td><code>dValue</code></td><td>Date</td><td>Date()</td><td>Selected date</td></tr>
<tr><td><code>dMinDate</code></td><td>Date</td><td>NIL</td><td>Minimum selectable date</td></tr>
<tr><td><code>dMaxDate</code></td><td>Date</td><td>NIL</td><td>Maximum selectable date</td></tr>
<tr><td><code>lMultiSelect</code></td><td>Logical</td><td>.F.</td><td>Allow selecting a date range</td></tr>
<tr><td><code>lShowToday</code></td><td>Logical</td><td>.T.</td><td>Highlight today's date</td></tr>
</table>
<table>
<tr><th>Event</th><th>Category</th><th>Description</th></tr>
<tr><td><code>OnSelect</code></td><td>Action</td><td>Date selected</td></tr>
<tr><td><code>OnSelChange</code></td><td>Action</td><td>Selection range changed</td></tr>
</table>
<table>
<tr><th>Platform</th><th>Native Widget</th></tr>
<tr><td><span class="badge win">Windows</span></td><td>MONTHCAL_CLASS (SysMonthCal32)</td></tr>
<tr><td><span class="badge mac">macOS</span></td><td>NSDatePicker (NSClockAndCalendarDatePickerStyle)</td></tr>
<tr><td><span class="badge linux">Linux</span></td><td>GtkCalendar</td></tr>
</table>
<div class="info-box info">
<strong>9 Native Platform Controls</strong>
<p>These controls use advanced OS-specific widgets for maximum native look and feel.
HarbourBuilder automatically maps each control to the correct widget on Windows (Win32), macOS (Cocoa), and Linux (GTK3).</p>
</div>
<div class="toc-rail">
<h4>On This Page</h4>
<a href="#tabcontrol" class="toc-h2 active">TTabControl CT_TABCONTROL = 33</a>
<a href="#treeview" class="toc-h2">TTreeView CT_TREEVIEW = 20</a>
<a href="#listview" class="toc-h2">TListView CT_LISTVIEW = 21</a>
<a href="#progressbar" class="toc-h2">TProgressBar CT_PROGRESSBAR = 22</a>
<a href="#richedit" class="toc-h2">TRichEdit CT_RICHEDIT = 23</a>
<a href="#trackbar" class="toc-h2">TTrackBar CT_TRACKBAR = 34</a>
<a href="#updown" class="toc-h2">TUpDown CT_UPDOWN = 35</a>
<a href="#datetimepicker" class="toc-h2">TDateTimePicker CT_DATETIMEPICKER = 36</a>
<a href="#monthcalendar" class="toc-h2">TMonthCalendar CT_MONTHCALENDAR = 37</a>
</div>
<script src="../assets/js/docs.js"></script>
</body>
</html>