i am not sure whether my question is correct or if its a duplicate Question. I have a main form with buttons that open form 2 ,3 and 4 . What i want is that when form 2 is minimized i want to show the minimized form 2 at the bottom of the main form instead of the windows taskbar. Any hints?? What are the events?
Related
I'm having a situation in Extjs where I have to display one window for 3 button clicks. Let me be clear, I have one window "A", that "A" window I have to show on click of Button 1, Button 2, Button 3. Is there any way to do this because of course, I'm getting the duplicate id error while I'm accessing the same window on Button 2 and Button 3 clicks. BTW I want to show all 3 windows on the page at a time.
I have got a problem with the SideMenu (not on top-style): Form A has got a SideMenu. In the SideMenu there is a Button to show Form B. Form B has got a Button to show Form C. And Form C has got a Button to show Form A again. If I go through this chain (call A, then B, then C and then back to A), the SideMenu on Form A is still open when form A is activated from the Button in Form C. Even if I call closeSideMenuBar() when Form B is started it remains open.
Do you have any idea how to fix this? I doubt that the transition of the SideMenuBar will not finish it's job when another form is shown directly. Maybe there is a way to prevent this transition?
There was a regression with the old side menu bar that should already be fixed if you do an update client libs which you can do by:
Right click the project
Select Codename One Settings
Select Basic
Press "Update Client Libs"
I'm using a LayeredLayout to overlay a TextArea with a small button in the upper right-hand corner of the TextArea (the button is used to insert a time-stamp to easily date the manual text entries).
I want the small button to receive the events when the user 'clicks' on it and at also allow the user to click in the TextArea below to edit the text manually. However, when I use LayeredLayout, only that last added component will receive the events. Meaning either only the textArea is active and the small button cannot be pushed, or the button can be pushed, but the user cannot click the TextArea to initiate the edit. Hope the description is clear enough to understand.
As far as I could see, none of the other existing Layouts lends themselves to this case. Is there a way to achieve this?
Thanks in advance for any ideas or suggestions.
Both receive events when clicked, we use this pattern often. I'm assuming you tried to push the button while you were editing which is problematic since editing delegates pointer events to the native OS editing code.
See:
Form current = new Form("TextAreaButton", BoxLayout.y());
TextArea ta = new TextArea("Text of Text Area");
ta.addActionListener(e -> Log.p("Text is: " + ta.getText()));
Button b = new Button("");
b.addActionListener(e -> ta.setText(""));
FontImage.setMaterialIcon(b, FontImage.MATERIAL_CLEAR);
current.add(
LayeredLayout.encloseIn(ta,
BorderLayout.east(b))
);
current.show();
I have 2 windows form applications.
From Main application, on button clicked, I want to change form color of target application.
You must pass Form1 to the second form, then on the second form you can do something like this
Form1.BackColor = Color.Green;
Did not check if that is the correct syntax as i answered this on my phone.
In my Windows Mobile project, I have a form (let's call it form M to help keep thing straight) that I need to display modally, so I am using the ShowDialog method on a new copy of the form. When I show it from a form (form A) that takes up the whole screen (WindowState Maximized, Location 0,0, all other properties default except for name, the designer picks this up and shows it without a title bar), it shows up fine with the title bar intact.
However, if I display another modal window on top of this form (form B) that takes up the whole screen and uses the same form properties as form A, and then try to show the modal dialog form M from that form, the title bar is not visible and I can see the top part of form B behind it. Form M also has all default properties except for ControlBox False, and as such shows up in the designer with the title bar.
Any ideas as to what to look for? I have tried just about every combination of manipulating the properties of the parent and modal forms (WindowState, FormBorderStyle, ControlBox, TopMost, etc.) and have not found a combination that works yet.
It exhibits the same behavior both in the Windows Mobile 6 Classic emulator and on my device.
Here is what the form M is supposed to look like, which it does when shown on top of form A:
Good Form http://imagebin.antiyes.com/images/0710161001266357909_33.png
And when form M is displayed on top of form B (and form A):
Bad Form http://imagebin.antiyes.com/images/0020949001266357931_33.png
(These screen captures are taken from my Dell Axim X51V, which has a 480x640 screen.)
This project worked fine in the past, I just converted it from VS2005 to VS2008, and I am wondering of something in the conversion is causing this to happen.
EDIT: I noticed that this is happening with other forms with title bars in my application that try to show on top of form B, and it is exhibiting the same behavior. If when this happens, I press the Calendar hardware button to open up the calendar application, and then press Ctrl+Q (I am using MyMobiler for screen shots and keyboard control of the device), the Calendar window goes away and the form M shows up, this time with the title bar showing just fine.