Is it possible to show SimpleDialog internally? - mahapps.metro

I didn't really find any way to show SimpleDialog internally in MetroWindow. Is it possible?
Note: SimpleDialog has been renamed with CustomDialog.

Have you seen the documentation for dialogs? I also recommend to have a look at the sample application.

I was just looking at this myself. To show the dialog internally you use the ShowMetroDialogAsync Method on the MetroWindow:
From a user control:
((MetroWindow)Window.GetWindow(this)).ShowMetroDialogAsync(myMetroDialog);
And you can close it from inside the dialog using the MetroWindow.HideMetroDialogAsync:
parentWindow.HideMetroDialogAsync(this);

Related

How to set active tab in Tab from Material UI by code

First time asking on SO, I know that this question was asked lot of times. I already visit all those posts but without sucess unfortunately.
As the title says, I need to change the active tab by code. I am using the material ui scrollable tabs with react.
I thought that the project I am working on maybe it has something bad, so I made this codesandbox to try without success aswell.
Could you please give me a hint on how to do this on the given example?
Thanks in advance for all the help, this community is awesome!
Best regards
If I understand correctly, you are looking for a way to manually set a tab, without hitting the actual tab button.
If yes, all you need to do is to change the state that holds the tab's value using setValue and provide the number of the tab you want to go (starting from 0).
e.g. setValue(2) will take you to the third tab.
You can take a look on this. I have created a static button that change the state to a specific number, just to demonstrate the idea.

programmatically open a bootstrap select

I need to programmatically open a bootstrap select, not show like documentation says
(it affects displaying)
It seems to be a missing method, so how can it be done?
Use the toggle method. It programmatically toggles the bootstrap-select menu open/closed.
$('.selectpicker').selectpicker('toggle');
I tried the documentation and it wasn't working for me either, so I did some research and apparently opening a select list is not an easy thing to do programatically with JavaScript.
check out this Post and this Post.
What I would probably recommend is to use a Bootstrap .btn-dropdown instead of a select list if possible?

how to change the position of textfield in adf forms?

Hi friends i am using jdev 11g release2 (11.1.2.4.0).I want to create a registration form from dragging datas from data control and my question was how to change or move the position of textfield in that form into different areas?
You should be using various layout components to achieve the layout you want, and remember that layout components can be nested to create more complex layouts.
See some examples here:
http://jdevadf.oracle.com/adf-richclient-demo/faces/feature/layoutForm.jspx
You can use the view source menu to see how they achieved that.
http://jdevadf.oracle.com/adf-richclient-demo/faces/feature/layoutBasics.jspx
Please be a bit more clear in your query. From what I was able to make out:
You can either use the "code view" of the JDev to move the code which represents the component to a different location or use the "Design view" to drag and move the component.
I would recommend the first approach as it makes it easier to manage the code/layout
You can change the position of the fields within the form or you can drag them out. However for this you should try out some tests and see which suits you best. I think if you surround each attribute with "Panel label and message" you will have a better view of your page.

How would you dim a container/panel like a modal Msg?

I'm trying to implement a view that requires a response from the server to update itself, so I'd like to 'dim' the container and show a spinner while it's asynchronously loading information from the server and then 'undim' when it's finished.
I've seen the same effect from the background of a Msg/Panel and would like to implement exactly the same thing with a spinner in the middle.
I think you want to use the regular extjs loadMask, let us know if you need help using it.
If you are looking for how to create a modal window in Sencha touch, then this is the best example.
http://www.sencha.com/forum/showthread.php?122382-Can-I-have-a-quot-popup-quot-panel-opened-on-clicking-a-button
You can mask the panel using loadmask configuration

Windows show/hide toggle control

I'm trying to create a window control where you can toggle the state from hidden to shown, that hides/shows some stuff when not hidden.
Something like this:
Is there any built in control to handle this? Or do I have to implement it myself?
And what would be the best method to implement something like this?
Thanks in advance..
(Also is there a name for this? I have no idea what to call it)
You'll have to implement it yourself, but it's just a button with an icon on it that changes when you click it! Should be a breeze :-) Another way to do it is have 2 buttons in the same position and they hide one another when clicked - can be simpler to do.

Resources