I have a an APEX page which has a button on, when they click the button it opens another page on top of the main page, I'm trying to set the width and height of this popup window. I tried the following in the 'inline' box under the CSS section in the page properties but it doesnt overrule the main CSS like it says its suppose to, can anyone see any problems with it?
.body{
width:200px;
height:200px;
}
I dont really want to set it in the shared componants because i only need this IE window/page to be a specific size.
Will these sizes also set the size of the IE window or just the page?
You can't do this with CSS.
You could try to use the window.resizeTo function as seen here : Javascript set browser window size
Edit your popup page, and add the code to the "Execute when Page Loads" section: window.resizeTo(200,200);
I tried this in IE8 and firefox and it works.
Related
Hello I am using SP 2013 online and on the my main page, I have a button "Add new item" Like this
When I click it, it open a new form and replace the current window which I don't want. So right now it behaves this way:
What I want is: that when I click on the button it pop up the new form window above the opened window. This pic shows the desired behavior.
How can I achieve this in SharePoint? I am a new user of SharePoint. Please help me to figure it out.
thanks in advance.
There is an option in custom lists to launch forms as a pop up or dialog box as you've displayed.
To get this to happen:
You can always try > List Settings > Advanced Settings > Launch forms in a dialog? Yes
Just be aware that if a user has pop up blockers set on their browser it may open up in the window (your first screen shot) or not at all.
See if that helps.
I am having trouble using multiple CMFCEditBrowseCtrl controls in a dialog. There is no problem with only one, but with two or more, the browse button is hidden. If I try using the EnableBrowseButton method, I get a generic browse button with ellipsis, as if it were a custom browse mode; clicking this does nothing. If I try getting the browse mode with GetMode, I find that it is set to None, even though I have explicitly set the browse mode property to File Browse. What is causing this errant behavior?
CMFCEditBrowseCtrl::OnChangeLayout
Redraws the current edit browse control.
try to Use this function
https://github.com/Microsoft/cpp-docs/blob/master/docs/mfc/reference/cmfceditbrowsectrl-class.md
I've got a ListControl box and I want to enable a textbox if the user clicks on a button there.
I've allready tried to update the dialog via an "OnLeftButtonUp" function which works quite well if I click outside the ListControl but when I click INSIDE the box nothing happens...
Any ideas why?
Cheers
I recently add HiSlider im my website.
I am using it at the front page an on 95% page loads the slider is being covered by the blocks of the page (which are supposed to be below,after, the slider).Sometimes on page load everything is working correctly.(I have the slider in an other page too link to a menu.By clicking the menu the slider in this page is working)
Any ideas?
have a look at the CSS z-index property.
#your-hi-slider-id{
z-index: 99;
}
Edit: I see this is not the problem you're having,
Because the page sometimes works, I believe the javascript may be excecuted before the page is ready
function init(){
//initialize your slider here
}
<body onload="init()">
I have a C++ MFC MDI application. I have a tool bar with some buttons on it. I need to add some check boxes to this toolbar and i need them to have custom bitmaps just as my buttons do. Thanks
EDIT:
By bitmpas i refer to the pixel images that can be created using the tool bar editor in visual stuidos 2008. I would like a picture (of my creation) instead of the usual tick box.
You don't use checkboxes on toolbars.
You should rather use regular buttons in Check mode. That means that the button stays pressed when user releases it. Clicking it a second time releases the button. This is the same behaviour as a checkbox.
You can either set a toolbar button as checkable by code:
m_ToolBar.SetButtonStyle(nButtonId, TBBS_CHECKBOX);
Or by enabling the corresponding property in the resource editor.
If you want to modify the image displayed when the button is pressed, in your ON_UPDATE_COMMAND_UI handler, use m_ToolBar.GetButtonInfo() to check if the image matches the state. If not, change it using m_ToolBar.SetButtonInfo() and specify the index of an extra image added to the image list of the toolbar.
The following is a link which might help you
http://www.ucancode.net/Visual_C_Control/Place-Combo-Edit-Box-Progress-Control-On-ToolBar-CToolBar-VC-Example.htm