I am creating a calendar app with C++Builder using the following view:
But I want to create a calendar which includes the following view:
The TCalendarView documentation states:
CalendarView displays the month view by default, but allows you to configure a different default view.
You can use the DisplayMode property for that purpose:
Indicates the initial display mode.
DisplayMode is an enumerated property with the following values:
Month
Year
Decade
This property indicates the initial display mode and shows the current display mode when a user interacts with the control. To change the display mode, you can reset the DisplayMode property programmatically.
Related
I am currently working on a project where the given user needs to fill out a form to add an activity. There is a filter which selects which month this applies to. There is a calendar where a date is selected from. The issue is that the calendar works properly when the current date is in the selected month as such:
The current month popup view
The current month filter
But when the filter is applied to a month that isn't the current one, the view lacks behind as such:
The current month filter
The error full popup
I have tried the use of the active start date yet, I can't seem to ensure that the active start date is applied for the month. Are there any known solutions? I have my code snippet attached below:
Code of the parameters
Code of the React Component Returned
The date is given by another component which is updated with the use state according to the filter applied.
I have a calendar view where the user can move events around. The calendar view is configured to operate on two fields date_min and date_max. These fields are modified inside the object when user moves the appointment around.
However, these fields are also defined to use a constraint that restricts them to a subset of values. I have managed to get the client to display an error if the user moves an object to a new position, but I was not able to get the calendar view to reset the position of the moved object when a move results in an error.
How do I do this?
Instead, what happens is that the appointment stays on the new errornous position in the calendar view, but the fields in the object are not updated still. So the appointment in the calendar view only returns to the correct position when the user resets the calendar view.
I have a WinForms app that uses this control and I would like to prevent the user from typing in a date. We want to make them have to use the popup calendar to make the date selection.
I tried setting ReadOnly of course but that puts the whole control into the read only state.
Our version of DevExpress is: 9.1.9.0
You can accomplish this task using the RepositoryItemButtonEdit.TextEditStyle property.
Assign the DisableTextEditorvalue with this property. In this mode a button editor is displayed in its normal way. However, editing and selecting text is not allowed.
Code snippet:
dateEdit1.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor;
In my JSPX page, I created a search page by drag-n-dropping the View Criteria (VC) to the page. By default the component's are text box. What I want to do is change some of them to use other components, such as the selectOneChoice component, with binding from another Entity Object (EO), or maybe add a date picker to it.
Is this possible? Or do I have to stick with the defaults?
This is all stuff that can be done in your view object under Attributes. For date attributes, make sure that the type is set to date. I've'nt done this one but for the selectOneChoice component, I'm assuming you can define a list of values on the desired attribute that is based on another view object. Also look in the Control Type field of the Control Hints when you edit an attribute. If you are using bind variable with your search I believe you can define these properties there also.
I'm creating an web site MSI using WiX. I have a custom action (written in C#) that fills a combo box with the descriptions of the web sites in IIS so the user can select an existing web site to install to.
Works fine - apart from the fact that there's no item selected when the dialog page is first shown. I'd like the first site in the list to be selected by default.
Any idea how I might do this? None of the "obvious" (to me) things seem to work.
I'm using the latest version of WiX.
Each row has a value and the control has a property. The property will have the value of the selected row. There is no concept of control.value or control.selecteditem.value in this language.
There is actually a possibility to preselect exact value for a combobox - just set the property, which is connected to the combobox, in your Custom Action's code to the desired value and it will get preselected in the UI.
For example, if you have a combobox
<Control Id="WebSiteCombobox" Type="ComboBox" Property="IIS_WEBSITE_ID" Width="320" Height="16" X="20" Y="80" ComboList="yes" Sorted="yes"/>
then, in you custom action's c# code:
foreach (Site site in iisSites)
{
//code to fill the combobox
}
session["IIS_WEBSITE_ID"] = iisSites.First().Id.ToString(); //Or to any other value you want to be preselected