Zoom event capture in TreeMap
Hi,
In my code I've declared TreeMap instance and registered an
event handler to capture the zoom event like following:
_treeMap.addEventListener(TreeMapBranchEvent.REQUEST_ZOOM,
branchZoomHandler);
However, in the TreeMap UI, when I zoom a tab, then the
control goes to branchZoomHandler() declared in TreeMap class
instead of the event handler declared in my own class.
Is it possible to capture and handle the ZOOM event in my own
class? If so, it'd be helpful if you provide the sample code for
the same.
Thanks in advance,
Madhav
Hi..
Can you try with getting key code(event.keyCode is 8) for Backspace
See
http://stackoverflow.com/questions/2353550/how-to-capture-a-backspace-on-the-onkeydown-event
Similar Messages
-
Hi
I have developed a flash-RMA which shows some text. The RMA is embedded in a pdf. I discovered that sometimes, when zooming in acrobat/reader the text is not displayed correctly (i.e. linebreaks shift, somtimes the last line of text drops out of the viewingrange).
I have a redrawing-function in my flash-as which forces a correct redraw of the text and fixes this problem. However, so far I have to trigger this function per hand (i.e. using a button).
What I need now is an eventlistener, which calls the function automaticly whenever a zoom-event occurs. I know how to call AS-functions, but I have no clue about event-listeners in Acrobat.You're right, there was a problem with the file.... I can't recall what it was, or how I fixed it, but it was just a minor issue. Anyway, it is the file you can download under http://www.docunamic.de/files/9912/9847/9610/docunamic_video_pdf_seeberger.pdf that originally gave me trouble. When switching languages it worked just fine, but once I started zooming the PDF parts of the text sometimes disappeared like described above.The version you can download has the fix applied, but if necessary I can provide a simplified version to illustrate the problem.
It seems like the Zoomfactor of the PDF is not consistently applied to the scaling of flash-text. That's the basic issue. -
What for a live event capture and edition ?
Hi there,
What software is best for a live event capture and edition ? (for an instant public feedback) a one with the ability to be controlled by a 2-octave midi keyboard.
Can FCP do that ? even partly ?
The idea is to be able to do the same then tv shows (live cuts and effect layers)
thanks,
IonelFCP is a professional non-linear editing application ... not a live event playback device.
If you need a very fast turnaround editing facility you can look at FCP coupled with something like Picture Ready from Gallery, you can download a demo to test
if you're looking at doing a 2 camera live cut/switch then you can consider a dual decklink I/O solution and On-Air 2.0 -
Web event capture and web analytic
hi all,
for web analytic, we can enable the web event captured thru XCM setting.
However, is it necessary to write any modification of jsp, or event class if we are using the standard functionality only?
afterall, does shop ID is captured in every event too in standard too?
Thanks,
ShantiCheck the [Web Analytics - Overview|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/ea/a2d93fac0fec06e10000000a1550b0/content.htm] to see what is captured
-
HT4623 I have Iphone 4s and updated ios7; cannot zoom while capturing videos
I have iphone 45s and updated ios7; now I cannot zoom while capturing videos
I have the same problum ,.
-
Team ,
I've created a session to Capture object_Created , Object_altered and Object_deleted events on to Ring Buffeer target "IN Memory Storage" on a server .Whenever i create alter or drop an object , I see a Result in SSMS Column Name "No Column
Name" and value "1" .
Is there a way we can eradicate this ?
Thanks in advance for your tip !
Rajkumar YeluguThoughts ? Thanks for your time !
Rajkumar Yelugu -
Hi OAF Gurus,
We have requirement to capture LOV events progammatically but on the way I am facing one issue while capturing LOV event.
Actually lovValidate event works as per its functionality and it gets captured when user enter value into th efield and tabs out but lovPrepare event doesn't get captured when I clicked on a torch icon and same is what happening with lovUpdate means both these events doent gets captured.
I have tried in many ways,also by setting Disable Validation Property:true and Use for Validation property:yes but stuck with same issue as before.
Could you please help me on this issue..Its on priority,..
Any pointers would be of great help.
Thanks in Advance.Hi,
lovPrepare fires only when you click on the torch button. It is responsible for passing row level variable to LOV popup page.
Whereas when you (quick) select any value, lovValidate gets fired which is responsible for populating the variables from LOV page back to main page.
When you type a valid value in the field, we dont need to send data from main page to LOV page so there is no need to fire lovPrepare. At the same time, since its a valid value, we need to get other columns values and populate them in other formValues/fields in the row. Hence lovValidate even is a must.
What exactly is your requirement?
May be u can try having a look into Controller file linked to LOV Page (if it is present)
Thanks,
Hrishikesh -
Ibase related information/event capture
Hi friends, this is regarding a business scenario which needs to be mapped into SAP CRM:
Client manufactures engines and these engines are installed in various vehicles. We plan to use installed base for the engines and its various components.
But requirement is that whatever happens to the engine during its lifecycle needs to be captured and reported.
For e.g. an engine in its lifetime maybe installed/uninstalled in various vehicles, its components may have suffered breakdown, service person assigned, repaired, replaced, etc. In other words, there maybe many events associated with an engine.
My question is how to map these events in SAP CRM or is it that this can be done only through ABAP enhancement?Hi,
I got informations on IBASE.In my requirement the product has many component and there sub component. WE planed to use ibase for maintaining the product details with the customer.
Now i was going through forums, there i found many threads where they were facing problems of dispalying complex structure of ibase into ICWC.
What are the best practise to used with IBASE so that such problem can be reduced...
Thanks in advance
Abhinav -
Event capturing and 'render' loops
Right now I'm working on a turn-based strategy game. No problem. After a bit of tweaking I have it figured out to where the whole game is event driven. Any UI interaction triggers a screen re-render. here's the problem . . .
Eventually, I'd like to make a real time strategy game. At that point, I have to start a render loop going. I've subclassed java.awt.Frame to make my own frame which will start this render loop going. So . . . in my main frame I have just a simple loop like this . . . (pardon incorrect syntax . . . this is off the top of my head)
public void startRenderLoop()
Graphics2D g2=(Graphics2D)myBufferStrategy.getDrawGraphics();
render(g2); //defined elsewhere, obviously
g2.dispose();
myBufferStrategy.show();
}All fine and good. I can get animations to show up just fine. Here's the question.
How the bleedin' heck do I capture input events? Where can I find mouse/keyboard input OTHER than through the java.awt.event package? If there IS no other place, how the heck do I capture events? 'cause once that render loop starts off NOTHING gets through. What am I doing wrong?After you implement a listener, you need to add it to the component. For example:
public class MyGame extends Frame implements MouseListener
public MyGame()
this.addMouseListener(this);
public void mousePressed(MouseEvent evt)
//do stuff
public void mouseReleased(MouseEvent evt)
//do stuff
public void mouseClicked(MouseEvent evt)
//do stuff
... (etc.)
}If the keyboard or mouse seem sluggish, make sure you're sleeping or yielding in order to give the event thread some time to work. See here for a good algo to do this:
http://www.javagaming.org/cgi-bin/JGOForums/YaBB.cgi?board=Sound;action=display;num=1050577023 -
In my application I am monitoring a series of sensors that are binary on or off. I need to somehow capture the event where one sensor goes from on to off. Any advice on how this can be done? I'm running LabVIEW 7.1 and windows 2000
Thanks,
JJust do a AND operation between the previous value of the sensor ant NOT the new value. See the attached example.
CC
Chilly Charly (aka CC)
E-List Master - Kudos glutton - Press the yellow button on the left...
Attachments:
OnToOff.zip 12 KB -
InputListofValue PopUp window CANCEL button event capture ?
HI All ,
Jdeveloper version 11.X.6.
i have explained the outline of issue below:
User enter some data on InpuLIstOfValue text field and click on the maginfied Glass, the pop opens and selects some data and click 'OK' ,it will display appropriately on below fields.
but if user enters the wrong data on InpuLIstOfValue text field and clicks on maginfier Glass,no results found on the popup window, so upon click of "CANCEL" button on popup window ,
is there any way to remove the old data on InpuLIstOfValue Filed ?
Basicaly i am looking for the capturing the CANCEL button event on the popUpwindow ,based on event status .
PLase let us know if any hints ?
ThanksStep by step:
1. Create the converter class:
package view.converters;
import java.util.Collection;
import java.util.Collections;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.convert.Converter;
import org.apache.myfaces.trinidad.convert.ClientConverter;
import org.apache.commons.lang.StringUtils;
public class LOVConverter implements Converter, ClientConverter {
public Object getAsObject(FacesContext facesContext, UIComponent uiComponent, String value) {
if (StringUtils.isBlank(value)) {
// cancel event was triggered, so do something
return value; // if value is not an instance of String you need to convert it to its primary type (Number, Date, String, etc)
public String getAsString(FacesContext facesContext, UIComponent uiComponent, Object value)
if (value == null || /* value is empty in its primary type */) {
// cancel event was triggered, so do something
return value.toString();
public String getClientLibrarySource(FacesContext facesContext)
return null;
public Collection<String> getClientImportNames()
return Collections.emptySet();
public String getClientScript(FacesContext facesContext, UIComponent uiComponent)
return null;
public String getClientConversion(FacesContext facesContext, UIComponent uiComponent)
return null;
}2. Declare the converter in faces-config.xml:
<converter>
<converter-id>LOVConverter</converter-id>
<converter-class>view.converters.LOVConverter</converter-class>
</converter>3. Your inputListOfValues should look like this (see the property converter="LOVConverter"):
<af:inputListOfValues popupTitle="Search"
value="#{row.bindings.DepartmentId.inputValue}"
model="#{row.bindings.DepartmentId.listOfValuesModel}"
required="#{bindings.EmployeesView1.hints.DepartmentId.mandatory}"
columns="#{bindings.EmployeesView1.hints.DepartmentId.displayWidth}"
shortDesc="#{bindings.EmployeesView1.hints.DepartmentId.tooltip}"
converter="LOVConverter"
id="ilov1">After that, when the user clicks the Cancel button, both methods (getAsObject and getAsString) should be invoked, and then you would be able to reset the component value (using uiComponent parameter).
AP -
I can't find a way to capture the key events of the special key on multimedia keyboards, just like play/pause, browser or music..
Any ideas?You probably can't. They have their own drivers to handle those specialties and Java (as far as I know) doesn't have support for those.
-
Hi
I want that when user doubleclicks on the any row of alv, the row value should be taken to some workarea.If possible provide some code.
Thanks.Here is a sample program. You need to handle the event DOUBLE_CLICK by using a local event handler class.
REPORT ZRICH_0001.
TABLES: MARA.
DATA: BEGIN OF I_ALV OCCURS 0,
MATNR TYPE MARA-MATNR,
MAKTX TYPE MAKT-MAKTX,
END OF I_ALV.
* CLASS cl_event_receiver DEFINITION Handles Double Click
CLASS CL_EVENT_RECEIVER DEFINITION.
PUBLIC SECTION.
METHODS HANDLE_DOUBLE_CLICK
FOR EVENT DOUBLE_CLICK OF CL_GUI_ALV_GRID
IMPORTING E_ROW E_COLUMN.
PRIVATE SECTION.
ENDCLASS.
* CLASS CL_EVENT_RECEIVER IMPLEMENTATION Handles Double Click
CLASS CL_EVENT_RECEIVER IMPLEMENTATION.
METHOD HANDLE_DOUBLE_CLICK.
PERFORM DRILL_DOWN USING E_ROW-INDEX.
ENDMETHOD.
ENDCLASS.
DATA: ALV_CONTAINER TYPE REF TO CL_GUI_CUSTOM_CONTAINER.
DATA: EVENT_RECEIVER TYPE REF TO CL_EVENT_RECEIVER.
DATA: ALV_GRID TYPE REF TO CL_GUI_ALV_GRID.
DATA: FIELDCAT TYPE LVC_T_FCAT.
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001 .
SELECT-OPTIONS: S_MATNR FOR MARA-MATNR.
SELECTION-SCREEN END OF BLOCK B1.
START-OF-SELECTION.
PERFORM GET_DATA.
CALL SCREEN 100.
* Module status_0100 OUTPUT
MODULE STATUS_0100 OUTPUT.
SET PF-STATUS '0100'.
SET TITLEBAR '0100'.
* Create Controls
CREATE OBJECT ALV_CONTAINER
EXPORTING
CONTAINER_NAME = 'ALV_CONTAINER'.
CREATE OBJECT ALV_GRID
EXPORTING
I_PARENT = ALV_CONTAINER.
* Create Event Receiver
CREATE OBJECT EVENT_RECEIVER.
* ALV Specific. Data selection.
* Populate Field Catalog
PERFORM GET_FIELDCATALOG.
CALL METHOD ALV_GRID->SET_TABLE_FOR_FIRST_DISPLAY
CHANGING
IT_OUTTAB = I_ALV[]
IT_FIELDCATALOG = FIELDCAT[].
* handler for ALV grid
SET HANDLER EVENT_RECEIVER->HANDLE_DOUBLE_CLICK FOR ALV_GRID.
ENDMODULE.
* Module USER_COMMAND_0100 INPUT
MODULE USER_COMMAND_0100 INPUT.
CASE SY-UCOMM.
WHEN 'BACK' OR 'CANC'.
IF NOT ALV_CONTAINER IS INITIAL.
CALL METHOD ALV_CONTAINER->FREE.
CLEAR: ALV_CONTAINER.
FREE : ALV_CONTAINER.
ENDIF.
IF SY-SUBRC = 0.
SET SCREEN 0.
LEAVE SCREEN.
ELSE.
LEAVE PROGRAM.
ENDIF.
WHEN 'EXIT'.
IF NOT ALV_CONTAINER IS INITIAL.
CALL METHOD ALV_CONTAINER->FREE.
CLEAR: ALV_CONTAINER.
FREE : ALV_CONTAINER.
ENDIF.
LEAVE PROGRAM.
ENDCASE.
ENDMODULE.
* FORM GET_DATA
FORM GET_DATA.
SELECT * INTO CORRESPONDING FIELDS OF TABLE I_ALV
FROM MARA
INNER JOIN MAKT
ON MARA~MATNR = MAKT~MATNR
WHERE MARA~MATNR IN S_MATNR
AND MAKT~SPRAS = SY-LANGU.
SORT I_ALV ASCENDING BY MATNR.
ENDFORM.
* Form Get_Fieldcatalog - Set Up Columns/Headers
FORM GET_FIELDCATALOG.
DATA: LS_FCAT TYPE LVC_S_FCAT.
REFRESH: FIELDCAT.
CLEAR: LS_FCAT.
LS_FCAT-REPTEXT = 'Material Number'.
LS_FCAT-COLTEXT = 'Material Number'.
LS_FCAT-FIELDNAME = 'MATNR'.
LS_FCAT-REF_TABLE = 'I_ALV'.
LS_FCAT-OUTPUTLEN = '18'.
LS_FCAT-COL_POS = 1.
APPEND LS_FCAT TO FIELDCAT.
CLEAR: LS_FCAT.
LS_FCAT-REPTEXT = 'Material Description'.
LS_FCAT-COLTEXT = 'Material Description'.
LS_FCAT-FIELDNAME = 'MAKTX'.
LS_FCAT-REF_TABLE = 'I_ALV'.
LS_FCAT-OUTPUTLEN = '40'.
LS_FCAT-COL_POS = 2.
APPEND LS_FCAT TO FIELDCAT.
ENDFORM.
* DRILL_DOWN
FORM DRILL_DOWN USING INDEX.
READ TABLE I_ALV INDEX INDEX.
IF SY-SUBRC = 0.
SET PARAMETER ID 'MAT' FIELD I_ALV-MATNR.
CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN.
IF NOT ALV_CONTAINER IS INITIAL.
CALL METHOD ALV_CONTAINER->FREE.
CLEAR: ALV_CONTAINER.
FREE : ALV_CONTAINER.
ENDIF.
ENDIF.
ENDFORM.
Regards,
Rich Heilman -
During slow scan rates, are events captured between scans?
We are using 32 thermocouples to measure a heated cabinet performance and are using the Continuous Acquisition to Spreadsheet VI. I am saving the data to a text file while plotting the data to a chart in Labview 6.1. I only wanted to read temperature every 60 seconds (0.01667 scans/sec) but set the scan rate rounds off to 2 decimal places, so at 0.02 scan rate we read data every 50 seconds. I set the buffer size to 1 and the number of scans to write at a time to 1. Does this mean I have a lag of one scan in the buffer or am I seeing the latest scan written to the chart? Also, temperature events between writes to the screen sometimes show up on the chart, sometimes not. It seems to depend on how long the e
vent takes place or how close to the next write. I would appreciate any insight on how the software handles the events between writes. Thanks.Willard,
You can actually change the digits of precision in LabVIEW to display more than 2 decimal places. If you right-click on the scan rate control and select 'Format and Precision' you can alter the digits of precision to include 5 decimal places.
By setting the buffer size to 1 you are setting a memory size to hold only 1 scan at a time. By setting the number of scans to write at a time to 1 that means that every time the AI Read VI is called within the while loop, the VI will only read 1 scan from the buffer. Therefore, the hardware is set-up to read 1 scan every 50-60 seconds and so the hardware places that scan in the buffer. Then every time the AI Read VI is called in software, it reads 1 scan from the buffer. So, if the AI Read VI already read
the 1 scan from the buffer, it will wait until the buffer gets the next scan from hardware (50-60 seconds) and then plot it on the chart. So, with the set-up you have, you will not see any lag of temperature data. Once the hardware scans, the software will almost immediately read that scan. I hope this helps.
Regards,
Todd D.
Applications Engineer
National Instruments -
In
this
flash movie, I have a tween object created on RollOver and RollOut
for those tabs. The tabs are under the large rounded rectangle, and
when I move the mouse over the spot where a tab's underneath the
rectangle they still react. How can I make it so that the event
can't fire when there's something between the tab and the
mouse?You can just put an empty onRelease handler on your large
object, and set
its useHandCursor to false so it doesn't look like a button.
That way it'll
trap the mouse...
Dave -
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/
Maybe you are looking for
-
Errors with Adobe Application Manager (code U44M1I200 & U43M1D204)
When I try to update CS6 with the Adobe Application Manager, I get an error for 12 programs. What to do? Thanks a lot for you help! This is part of the message I get (I only left the part in Dutch out): Update 2 van Flash Pro CS6 code: U44M1I200 DPS
-
Hi, I created a PO with proper cond.records. MIGO - done. values posted corectlty. J1iex - Post : done : values & postings are correct. MIRO - values are popingup are wrong.Tax is not calcutaing. Base :1000 BED :100 ECS :2 Secs:1 If I flaged 'Calcula
-
Looking to migrate my license from windows to mac, Is there a roadmap to accomplish?
Looking to migrate my Windows license to Mac. Hoping there is an easy way to accomplish?
-
I am finally ready with the html version of my masterpage. My masterpage has following. 1. Top logo 2. Navigation bar for menu 3. Empty Content area DIV element 4. Footer Area I can upload the masterpage using design manager ..now I want a custom hom
-
Higher resolution iPad screenshots?
I am working on a book about iPads and need to have screenshots of the iPad screen (apps etc) which are 300 DPI for printed book... is there anyway to do this? I am SO hopeful someone has a solution for me! I am stuck with deadlines passing... Thanks