Invalidate the screen after closing popup
Hello world
I have 2 classes, say MenuClass and a PopUpClass citing the click MenuClass button. When I close the PopUpClass I want to MenuClass to paint all over it. I use invaliate() now, but no result:
//button in PopUpClass protected boolean navigationClick(int status, int time) { this.getScreen().close(); invalidate(); return true; }
OK, I understand. Here is a way, I hope you will implement a variation on this depending on yourself, as the implementation I describe is not really how I'd do, but it is how it is easier to explain. :
You have Popup1Screen, which displays the choices. There are also two public methods called, additional
getSelectedFocusBitmap()
and
getSelectedUnfocusBitmap()
returning selected bitmaps.
In your MenuScreen, you have a button called popup1Button, which calls Popup1Screen. You have also a FieldChangeListener. Purposes of argument, we will say that this listening port is your MenuScreen.
Thus, in
fieldChanged (field f, int context) {}
..
}
Have the following items:
If (f == popup1Button) {}
Popup1Screen popup1screen = new Popup1Screen();
UiApplication.getUiApplication.pushModal (popup1screen);
Will return here when the screen is closed
Bitmap newFocusBitmap = popup1screen.getSelectedFocusBitmap ();
Bitmap newUnfocusBitmap = popup1screen.getSelectedUnfocusBitmap ();
Now, change the bitmaps in popup1Button and, of course, it is repainted, you invalidate() it
but you should not, so don't do that if you need to. .
..
} else...
Hope that makes sense
Tags: BlackBerry Developers
Similar Questions
-
Refresh the screen after the removal of the UI elements
Hello world
I create a screen in which I use listfield to display data online as a way each line has a button Delete. I want to know how to refresh the screen after the deletion of data or a row of the screen?
Because you actually using a HorizontalFieldManager to display each line, to remove it, you must remove the information in the underlying data store and then delete it HFM of his Manager. That's it, removing the HFM will refresh the screen.
-
Qosmio G20-127: failure to screen after closing the lid on Vista
Hello
I have a Qosmio G20-127 and I recently installed Vista Ultimate (32 bit). I managed to put everything in its place (except the magic buttons, but the drivers are not on yet), but I have a problem that makes me seriously reconsider coming back to XP MCE.
When I close the lid of my computer, the screen turns off of course, but when I open again, it does not turn, but it stays black. And I can't turn it on again no matter what. I have to turn off the entire computer and it is quite unrealistic.
Funny is that after a restart for about 20-30 minutes, I can open and close the lid normally, but the same problem occurs after a bit more time to work on the computer.
The problem persists even though I disabled everything remotely connected to the closing of the cover.Does anyone have a solution?
Hello English
Try you update the BIOS on the VISTA OS?
I can imagine you will always find something new and unusual, but please note that Vista is not supported by the OS for Qosmio G20 (Vista drivers are not available on the Toshiba download page) and you can expect that from time to time, you will discover new disturbing behavior.
I recommend you to install and configure Vista as described in the topic of s Francisco, configure OS for your needs, and be happy if you use Vista without any serious problems. In my opinion, for OS installation and configuration software Qosmio is Toshiba laptop more complicated template, and you will never be able to configure it as a supported and preinstalled WXP MCE. Commands supported are tested and bugs are fixed, but not with Vista on Qosmio G20.
Sorry my friend. Sounds stupid, but maybe that's just the truth. By the way: I like Qosmio G20. Maybe I'll buy one if the price is Ok.
Good bye
-
region of refresh on the page parent after closing popup inframe
Hello
I have parent page with several regions, and one of the reports is related popup to another page using inframe. All these are works fine but now iam trying to a parent region partially regenerate after closing the window contextual inframe, I tried apex.submit (region1) but it does not work? no idea how can I update this after the closure of the window popup?
Best regards and thank you
Hi Gor_Mahia,
Gor_Mahia wrote:
Here are the details,
application ID = 46268
page ID = 13
demo123/demo123
proj2010 = workspace
Use the links in the second column IR
Once again thanks for your time.
Check your application now. The interactive report is refreshing on the closure of the modal dialog box using the method of dynamic, such action described in the blog post:
Monkey on Oracle: Modal popup with dynamic Actions
Here are the changes:
- Edited your action dynamic and value:
In the section "Advanced":
Scope of the event: Dynamics
In 'true Actions:
Action edited your "run the Javascript Code" and "Code" to modified:
From:
/* prevent default behavior on click */ var e = this.browserEvent; e.preventDefault(); /* Trigger JQuery UI dialog */ var horizontalPadding = 30; var verticalPadding = 30; $('').dialog({ title: "Edit Employee", autoOpen: true, width: 700, height: 300, modal: true, close: function(event, ui) { apex.event.trigger('#P13_AFTER_MODAL','select',''); $(this).remove(); apex.submit('edit-IR'); }, overlay: { opacity: 1.0, background: "black"} }).width(700 - horizontalPadding).height(300 - verticalPadding); return false;
NOTE: remove the apex.submit call in the function close to the code below so that it submits the page.
TO
/* prevent default behavior on click */ var e = this.browserEvent; e.preventDefault(); /* Trigger JQuery UI dialog */ var horizontalPadding = 30; var verticalPadding = 30; $('').dialog({ title: "Edit Employee", autoOpen: true, width: 700, height: 300, modal: true, close: function(event, ui) { apex.event.trigger('#P13_AFTER_MODAL','select',''); $(this).remove(); }, overlay: { opacity: 1.0, background: "black"} }).width(700 - horizontalPadding).height(300 - verticalPadding); return false;
I hope this helps!
Kind regards
Kiran
-
Satellite L10-232: black screen after closing the lid.
Hello
I moved my laptop (satellite L10-232) in another room, it wasn't stop (just closed it). When I opened it there was nothing on the screen and the battery is not empty (processor still does some things). Anyone know how I can fix this problem?
Thank you
Easy...
PowerManagement is weaker and less stable features on any laptop. (especially with the defective batteries).
NEVER try to count on the home screen etc. It will work time 999 and 1000 it don't.
Now, you're done with a laptop computer hanging.
The ways:
1. the easy way:
-push the power button and keep your finger on it for 10 seconds. (5 is enough, 10 to be sure)
-remove the battery
-plugin powercable
-push the powerbutton2. the less gentle way:
-remove the power cable
-Remove the battery
-wait 24 hours
-Insert the power cable
-push the power button3. the hard way: make sure THAT YOUR HARD DISK IS NOT PASSWORD PROTECTED, to OTHER YOU LOOSE YOUR DATA.
trying to understand hat is the startup key sequence to reset the BIOS at startup. (it should be described in your manual somewhere)4. the hardest way:! ONLY BY A PROFESSIONAL!
IF MAKE SURE THAT YOUR DISK IS NOT PROTECTED BY WORD, OTHERWISE YOU LOSE YOUR DATA.
The laptop must be open and all batteries must be removed. All the capacitors must be emptied (leaving a laptop without the battery for 72 h). Then turn on
the laptop.Please note that I can't be held responsible for any damage or loss of data under any circumstances.
-
computer screen is moved to the left after closing it with the iPad inside
ORIGINAL TITLE: I need help! iEMERGENCY laptop,
(asus) on and it was normal that I put my iPad on the keyboard and sort of closed until the screen hit the iPad when I came back my screen were I click and get things moved to the left all Ive tried to change and I need HELP! my normal computer except the current screen were I enter things moved to a differnet HELP Please!
Hello
You are not clear in your explanations.
do you mean that the screen has turned sideways?
If Yes, read this:
Try pressing Ctrl + Alt + key direction, or Ctrl + Alt + a other arrow keys
Also, you can try this:
Right-click on an empty part of the desktop > Graphics Options > then Rotation.
If it's something else, please explain in more detail
"pushed to the left everything."
"pushed one side of differnet.
See you soon.
-
The download of the Calibre manual appears on the screen whenever I close a Web site. I deleted all references to the manual of the caliber of my computer, so I guess that Firefox is accessed whenever I have access to a Web site. Could it happen? In any case how can I stop it?
Thank you for your support.Thanks again for your response. I think I solved the problem. It seems I had inadvertently "pinned" manual. If I managed to find, and then click the option "detach", he was no longer listed.
Kind regards
Estelle -
Satellite C855-1CH - cannot control the brightness after closing / opening lid
Hello
I have a problem with windows 7 64 and amd 7610 m driver, when I installed the driver from toshiba site, have problem with hibernate.
When I closed the lid and unplugged AC adapter / CC, and after a few minutes/hours, I turn on the computer the light are the same (my brightness with battery equals 30% and 100% of turnover) and cannot be modified with the function keys and power option did monitor brightness, but I only reboot the system, the back,.
How to solve this problem?
I'm trying to install the driver of the 7600/7500 AMD and battery time passed quickly with down in brightness in 1.5/2 hours (with 7610 m 2.5/3) and fan work card strong mother, while I use in solitaire.
Thanks for the help!
If someone can help me, contact me.
> When I closed the lid
The laptop goes into hibernation or standby mode once the lid has been closed or just the screen turns off?
I'm not quite sure if its really a problem of display driver.
Other FN keys work correctly?It seems that the C855-1CH Satellite was sold without any preinstalled system and looks that you have installed the Win 7 64 bit in your own hand.
Were all Win 7 drivers as properly installed VAP?What is the BIOS? Is up to date? If this is not the case, try to update.
-
Windows blocked to disconnect the screen after trying to stop
I put in this forum, as the other post was in the wrong forum.
Windows Vista Home Edition on a HP desktop computer. I try to stop, and the rest of the computer with logging off the screen with the little circle thingy goes round and round. It doesn't go away until I have press and hold the power button for a while then turns off the computer. It will not stop by itself. When I restart it once I get it shut down with the power button, it gives me a screen saying windows was not shut down properly and gives me different choices on how to restart it. I choose start windows normally and windows starts fine, but will not be closed. It gets stuck at logging off the screen. What the heck is wrong?I did the boot, but that did not help either. I scanned with Adaware SE, but he found nothing. The computer would leave answering programs as long it has been used. I tried to install the updates for Vista which took forever because he would leave just to install the updates. Finally, after many trials and lots of swearing, I got all the updates that are installed and the HP updates. I installed AVG and it had to scan the computer. He found nothing. It seems that updates could have solved the problem.
-
Change the GUI on the underside of the screen after onsavepromt
I have a screen of settings with the editfields, boxes and everything. When I change something on the screen and press ESC key box a dialog box will appear with save, throw and the Cancel button. I want to save the data entered in the recordstore. So I replace the onsavepromt method and I am able to save data successfully. The problem is I want to change the graphical interface of the screen just below the sreen of parameters with respect to the changed data. I tried to push the screen below that programmatically. But he returned exception. How do I moify the screen below him register promt?
The best way to proceed is to use a pushModal on your screen settings, then the code after the pushModal will be called after the your setting screen closed. So, you can refresh your GUI.
-
Menu text freezes on the screen after clicking
Hello!
Whenever I click on an option in Photoshop CC, the menu button is frozen on the screen. I will attach a few pictures to better illustrate the problem.
This is my screen after the opening and closing of a file. The respective part of the menu remains frozen on the screen:
After clicking on a plugin button in the menu "filter":
It happens every time on any button. The only way to erase the screen-ahem, the only way I know - is through the control panel screen resolution. I just have to go to a different resolution in both directions, and it works. The thing is, this bug will come back as soon as I use the menu, which is, thus, very often because I rely heavily on some plugins or actions with no shortcuts.
I have Windows 7 64 bit, an ATI Radeon HD 6500 M graphics card and a Bamboo of Wacom tablet.
I have to guess a video driver problem (upgrade from AMD site), or a utility program that mess with menu design and has a few bugs.
-
Does anyone else have problems with windows being placed off screen when waking up their MacBook Pro from sleep mode or when using an external monitor?
I have a 15 "rMBP and regularly connect with lid closed to a Dell screen 4K P2715Q. Whenever I wake up from sleep, many of my windows are off-center and move the windows from the edge of the rightmost to the Center.
I can't say with certainty if it is specific to the application or for all windows, but Mail.app and Messages certainly do.
I will do some tests later and post updates. Thank you!
Hello
I take this in system preferences > displays the mirror effect is on?
What resolutions are two screens to?
How to wake up the laptop from sleep?
If it is by lifting the lid is on the Mac you see it?
If it's the position carries no report available to the larger screen? (i.e. If the laptop could match the larger screen resolution would be the 'shift' appear in the same place, as the laptop was a cut from the larger screen).
In system preferences > displays which is the screen to 'drive '?
21:17 Wednesday. May 4, 2016
iMac 2.5 Ghz i5 2011 (El Capitan)
G4/1GhzDual MDD (Leopard 10.5.8)
MacBookPro (Snow Leopard 10.6.8) 2 GB
Mac OS X (10.6.8).
iPhone and iPad (2) -
Cannot adjust the brightness of the screen after Windows 8.1 update
Hello
After you have installed Windows 8.1, I can't adjust the brightness of the screen more. I checked and updated all the drivers and nothing helped. There used to be a brightness slider in the control panel in the power settings. It's over now. I've looked everywhere for a solution, but I can't seem to find it. Any help would be greatly appreciated.
Here are the specs of my computer:
HP Pavilion 23-F213W Smart Touch
Windows 8.1
Thank you
Many All in One computers are able to use HP MyDisplay in this http://www.portrait.com/dtune/hpc/enu/index.htmlplace. There is a list of maps videos supported on this page and should help to restore the video controls setting.
-
Portege M400-146: Rotation of the screen after disconnecting
Does anyone noticed a problem where, after disconnection and switch to Tablet mode, the screen rotation button doesn't seem to work correctly?
What do you mean with doesn't seem to work correctly?
What happens when you use this button after disconnection and switch to Tablet mode? -
zBook 14 - cannot change the resolution of the screen after update
After I installed software updates the portable suggested to me, my screen resolution went suddenly from 1900 x 1200 at 1200 x 720 after reboot and it won't let me change it, not even to a lower resolution. I'm very frustrated, because I need the computer week next for visualization work and I really need the screen works well.
It doesn't let me change the resolution. Graphics and display drivers are up-to-date and functioning according to Device Manager. I did a system restore, but that just do everything worse although the resolution worked once again thing, I had to run a repair of the start several times before that my laptop would be starting another property again. This does not resolve the issue, given that the display drivers are not working properly (videos have been viewed very badly) and even after updating the computer won't start again, so I had made another system of recovery and now I'm to the point where I can not change the resolution and starting to be really frustrating. Also, (if it even starts) Windows is constantly freezing, forcing me to hard reboot.Thanks for any help, that all the world can offer.
This looks like a lot of problems, you have there.
First thing I would say is to do a check of the basic material. Your laptop will be built Diagnostics the F2 button on the HP logo. The hard drive on a test extended (approximately 45 minutes - 2 hours) and the memory test. If these two go, consider downloading of UEFI diagnoses from the above drivers download section. In all honestly, I think this unnecessary step for most, it tells not usually defects that are already not obvious. But he should have a graphics test, if it will throw a failure even if it is faulty is another matter but when even, of a value of a test.
If all else fails, download on the phone for the HP warranty.
If anything fails, run the memory on memtest86 + for about 12 to 24 hours. Download you, it's free, burn it to a cd and the start of it. And it works simply, in case of error, you have a fault memory.
If anything fails on any diags, then nothing is most likely false, cool reimageries windows probably will solve the problem and its probably just a form of spyware or corruption of driver or something. Backup your data, reinstall a new copy of windows.
But in my experience, from doubtful, repairs etc... freezing randomly and other problems are often a sign of a failing hard drive. And diagnostic tests are not always 100% to pick up a failing drive. For the most part, but not always. So, if its still high reading after a reimage, review the reader always a potential source of the problem.
To the extent where it won't let you change the resolution? What you mean? As for the option is grayed out? Can you maybe post a screenshot and a screenshot of your device with the extended graphics card Manager.
Maybe you are looking for
-
Satellite A30 stops when you run Norton
Hello. I have a Satellite A30 which crashes when trying to run Norton. Spec: Satellite A30, Win XP Home SP1, 512 MB RAM, 3 + Ghz processor. We also noticed that the fan seems to be "fully enlightened", even when he's just sitting on the desktop with
-
How can I add music to my library iCloud music which was not purchased on itunes?
My family have a shared iTunes library on an iMac which consists of songs taken from disks and purchased songs on several iTunes accounts. We have to take all the music that we love him and place it on our separate devices. Recently, we have subscrib
-
detonators with microSDHC 32 GB?
32 GB cards work well with the rocket? any significant problems or lag?
-
Unable to reinstall McAfee Virus Scan Plus
MC McAfee shows me in red on the screen of the Security Center. This morning, I was shown in yellow and he says Privacy Center version8.0 new is 10. I have "virus scan more ' I bought and install when the subscription expires" McAfee total privacy s
-
Hello Please let me know if this is possible. Seems to me like a current need, but I can't find a way to achieve this. I wish that the laptop to sleep when I close the lid (battery / plugged - matter), except when I have a connected external display.