Defines whether a completely typed part moves on to the next part.
Get
| C# | bool Boolean = object.AutoAdvance; |
| VB.NET | Boolean = object.AutoAdvance As Boolean |
| C++ | VARIANT_BOOL Boolean = object->AutoAdvance; VARIANT_BOOL Boolean = object->GetAutoAdvance(); |
| C | HRESULT object->get_AutoAdvance(VARIANT_BOOL* Boolean); |
Put
| C# | bool object.AutoAdvance = Boolean; |
| VB.NET | object.AutoAdvance = Boolean As Boolean |
| C++ | VARIANT_BOOL object->AutoAdvance = Boolean; void object->PutAutoAdvance(VARIANT_BOOL Boolean); |
| C | HRESULT object->put_AutoAdvance(VARIANT_BOOL Boolean); |
object
Boolean
Defines whether a completely typed part moves on to the next part.
The AutoAdvance property defines whether a date field control moves to the next part (day, month, year, ...) once the user has typed a part completely, for example two digits of a month. The default is True. p Without automatic advance, the user moves between parts using the arrow keys, Tab or the separator characters. The setting applies to segment editing (EditStyle).
comboFirstDay.SelectedIndex = (int)cal.FirstDayOfWeek;
comboViews.Items.AddRange(new object[] { "All", "Month and year", "Month only" });
comboViews.SelectedIndex = Math.Max(0, Array.IndexOf(viewSets, cal.AllowedViews));
checkTrailing.Checked = cal.ShowTrailingDates;
checkTodayButton.Checked = cal.ShowTodayButton;
checkHighlightToday.Checked = cal.HighlightToday;
checkClearButton.Checked = cal.ShowClearButton;
checkDropOnFocus.Checked = fieldDate.DropOnFocus;
checkAutoAdvance.Checked = fieldDate.AutoAdvance;
checkThemes.Checked = sftCalendar.UseThemes;
initialized = true;
ShowSelection();
DoLayout();
}
comboFirstDay.SelectedIndex = CInt(cal.FirstDayOfWeek)
comboViews.Items.AddRange(New Object() {"All", "Month and year", "Month only"})
comboViews.SelectedIndex = Math.Max(0, Array.IndexOf(viewSets, cal.AllowedViews))
checkTrailing.Checked = cal.ShowTrailingDates
checkTodayButton.Checked = cal.ShowTodayButton
checkHighlightToday.Checked = cal.HighlightToday
checkClearButton.Checked = cal.ShowClearButton
checkDropOnFocus.Checked = fieldDate.DropOnFocus
checkAutoAdvance.Checked = fieldDate.AutoAdvance
checkThemes.Checked = sftCalendar.UseThemes
initialized = True
ShowSelection()
DoLayout()
End Sub
break;
}
case IDC_DROPONFOCUS:
for (int i = 0; i < FIELDS; ++i)
m_Fields[i]->DropOnFocus = vbChecked;
break;
case IDC_AUTOADVANCE:
for (int i = 0; i < FIELDS; ++i)
m_Fields[i]->AutoAdvance = vbChecked;
break;
case IDC_COLORS:
for (UINT ctlId = IDC_DATE; ctlId <= IDC_CALENDAR; ++ctlId)
SetColorScheme(ctlId, fChecked);
break;
case IDC_THEMES:
ForEachControl([&](auto& ctl) { ctl->UseThemes = vbChecked; });See Also SftDate Object | Object Hierarchy | Editing