MFC CDateTimeCtrl show none - c++

I put a CDateTimeCtrl on a dialog, and defined its property of "Show None" on.
It makes the checkbox near the date, checked.
I want the dialog's default value to be this checkbox unchecked.
How can I handle this property and set its value?

CDateTimeCtrl* dt = NULL;
GetDlgItem(DATE_TIME_CTRL, dt);
dt->SetTime();

Related

How to get value from a bar chart on oracle apex when clicking a specific bar?

I have a bar chart on an oracle-apex page, I want to get the value from a bar when I click on it.
How can this be done?
You can create a new Modal Page with one Item to receive the value.
On you Barchart page go to Series -> Link -> select Redirect Page in This aplication-> and choose the target.
In the Link Builder set Page field as your Modal Page Number and Set Items filed name = item in your modal page to receive the value

How to set modal dialog title dynamically in oracle apex 18

I want to set modal dialog title dynamically based on an interactive element.
ex) In page 50, I've made an Interactive Grid and set the link on "Title" column, when user click on title column, a modal dialog appears.
I want to set the title of that modal dialog to title column's content.
But modal dialog's title doesn't change dynamically.
In this case, how can I apply the titles dynamically?
I've seen many solution related to this question, but I can't solve my problem.
Let's say, your model page number is 51. Here are step by step approach [TESTED] to dynamically change title of model page:
Create a hidden item in your model page, let's say the hidden item name is P51_Title.
In Interactive report -> title column link -> click on link builder box -> set values -> add Hidden item as P51_TITLE under Name and value as '#Title#' Column (#ColumnName#).
In model page 51 static region header (title property), add hidden item value as &P51_TITLE. (dot is mandatory to add at last. This is substitution string with & and dot(.) before and after of item name respectively)
save both the pages and run. when you will click on title column link, the link will be redirecting to the model page and title data will be passed through URL to hidden item in the session, so model page header will automatically change based on title data from report.
I made such dialogcreate js function.
It moves popup page Title to modal dialog title.
So, dynamic calculated title &P51_TITLE. would be applied automatically.
$(document).on("dialogcreate", ".ui-dialog--apex", function(e) {
var lDialog = $(this);
lDialog.find('iframe').on('load',function () {
lDialog.children(".ui-dialog-content")
.dialog("option", "title", $(this.contentDocument).find('title').html());
});
});
I am very disappointed that something like this (or any other solution) do not work in apex modal pages by default!

Bootstrap Modal select dropdown expanding outside window

I currently have a select dropdown which is expanding outside the modal window. Is it a better design to increase the window height and keep the dropdown inside it ? ( in which case how to do it ?)
or better keep using this current design ?
in your CoffeeScript you can grab the click event of your dropdown, and reset the height of your modal window:
toggleModalHeight = ->
$('#your_drop_down').on 'click', (event) ->
$('#modal_id').css('height','new height here')
$(document).ready toggleModalHeight
#For avoid Turbolinks issues
$(document).on 'page:load', toggleModalHeight
Within the toggleModalHeight function you can even calculate the new height of your modal and set it properly. Hope have helped you.

Checkbox menu items in wxPython

I Have a subclass of wx.Frame in which I have constructed a fully functioning editor with a menu and multiline text input. I next need to create a checkbox menu item inside a menu created with this code:
self.menuBar = wx.MenuBar()
self.menuBar.Append(self.viewMenu, "&View")
self.SetMenuBar(self.menuBar)
Using this code:
self.HideToolbarMenuItem = self.viewMenu.Append(wx.ID_ANY, "Hide Toolbar", self.HideToolbarHelp, kind=wx.ITEM_CHECK)
How do I add event handling to it or get it's value (True or False)? I am not interested yet in how to hide the toolbar.
EDIT: The menu does show the checkbox, and it can be selected
Use self.HideToolbarMenuItem.IsChecked() and a normal event handler. Example:
def OnBoxChecked(self, event):
if self.HideToolbarMenuItem.IsChecked():
self.statusbar.SetStatusText('Checked')
else:
self.statusbar.SetStatusText('Not Checked')

How to hide the keyboard that pops up in RubyMotion?

How does one hide the virtual keyboard that pops up in a text field?
The button that hides it does not seem to appear and in my case, the next screen that loads (which does not have a text field) will still have the keyboard in the loaded position.
Thanks!
Update:
Using the following allows the keyboard to return:
def textFieldShouldReturn textField
textField.resignFirstResponder
'YES'
end
However, it still remains open upon the next screen.
it should be true instead of 'YES' and don't forget to set the textfield delegate
def textFieldShouldReturn textField
textField.resignFirstResponder
true
end