I've got zooming functionality in my application that works great, but when I open a MessageBox, the message box doesn't appear at the same zoomed level as the rest of the interface. Is there anyway I can scale the MessageBox along with the rest of my program? Or will I have to create a custom message box class that allows this?
Thanks. Let me know if I need to explain anything else.
You'll have to create a custom dialog to do this. I'd probably just create a window and then show it as a dialog.
Related
I'm creating a WPF application where the user can click on a symbol and the app will paste that symbol into the application behind it (for example, into a web browser's text box or a Word document).
I'm having trouble with being able to remove the focus of my WPF app, so that when I use SendKeys, the symbol will be pasted into the other application. I am using the following code so far, but I don't want the window to hide, just be unfocused.
Clipboard.SetText("{symbol}")
Hide()
Forms.SendKeys.SendWait("^v")
Show()
Can anyone help? Thanks in advance.
I am trying to add border like message box in windows using codenameone dialog box but I am not able to do it.
Can anyone give me some suggestion. This is what i tried. but its not
working properly.
final Dialog dialog = new Dialog("---MESSAGE---");
dialog.setLayout(new BoxLayout(BoxLayout.Y_AXIS));
dialog.getStyle().setMargin(2,250);
dialog.getStyle().setPadding(2,250);
dialog.show();
You need to use themeing http://www.codenameone.com/how-do-i---create-a-simple-theme.html
They go far beyond what's available in Swing's look and feel. The JOptionPane as it is was desktop specific and doesn't fit on mobile.
Is there any way to create a modeless child window on a Silverlight application? Basically I need to display some detailed information after user clicks on a button. User could keep working on the main page and see the detailed child window at the same time.
Thanks for any reply.
ck
You can use a Popup control for this. Just add your content to the popup and show it.
Tim Heuer has taken the ChildWindow code from the Silverlight Toolkit and refactored it to a modeless implementation. See:
http://silverlightfeeds.com/post/533/Refactoring_Silverlight_ChildWindow_for_a_non-modal_use.aspx
I am developing a WPF application an need checkbox like we do inIphone interface.
I am able to get that done with help of this.
But I want user can silder the slider as they can do in Iphone. So they can either click or silder the slider to toggle the check box.
Thanks in advance
EDIT
Also found this link that enables to use WP7 togglebutton in WPF. But am unable to see any output.
I have a WPF application which contains a WebBrowser control.
Currently, the user can select something within the WebBrowser and can copy the content by dragging it out to another application and dropping it there.
I'd like to be able to stop the user doing this. I'd assumed that there would be a "DragStart" event that I could capture and cancel - but I haven't been able to find something so simple.
Is it possible to capture the start of drag event and cancel it?
Is there a better way to achieve this?
You can implement IDocHostUIHandler::FilterDataObject and filter out common clipboard formats
You don't get access the WPF browser's native interface until the document is ready. Not sure if it would work with the WPF browser class. There is also a bug in Windows Forms to prevent you from customizing its implementation of IDocHostUIHandler.
You can try some wrapper class of the webbrowser ActiveX, such as the one described at http://www.codeproject.com/KB/miscctrl/csEXWB.aspx