CS1 Double click on List box
I have a list box that I need to be notified for double clicks.
I created a subclass from CEventHandler and added the interface to kWLBCmpListBoxWidgetBoss (I am using the sample code here) which is a subclass of kWidgetListBoxWidgetNewBoss.
When I ran the sample code, I can pick up the double click but all the single clicks and the scroll bar stopped working. Even the scroll wheel stopped working as well.
This is on an iMac G5 running 10.4.11.
Any insight to this problem?
See how CusDtLnkUITreeNodeEH works with the original EH as "shadow".
Similar Messages
-
Hi,
I'm just trying to perform an action by double-clicking a list item, but doesn't seem to work. code:
WHEN-MOUSE-DOUBLE-CLICK trigger on List item (TList).
DECLARE
v_verwalten VARCHAR2(40);
BEGIN
v_verwalten := :CONTROL.LIST;
IF v_verwalten = 'Codes verwalten'
THEN NEW_FORM('COD_VER');
END IF;
END;Hi all,
When the list item type is tlist, the trigger 'WHEN-LIST-ACTIVATED' will fire for "mouse double click" and "key enter".
Try with placing the code in 'WHEN-LIST-ACTIVATED' trigger.
Cheers,
Zakiy -
Double click on list field in ALV grid control
Hello all,
I developed a report with a ALV grid control. I would like to move some functionality from marking a line and pressing a button in the status line to double clicking a specific field in the output list and execute a command there (i.e. double click on PO number and go to PO display TAC then). Can anybody provide some example coding for that?
Thanks so much for your help!
TorstenHere is your sample program. Copy this code into a z program. Create the screen 100 with a container in it and name it "ALV_CONTAINER". Create the gui-status with "BACK".
report zrich_0001.
tables: ekko.
data: begin of i_alv occurs 0,
ebeln type ekko-ebeln,
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: layout type lvc_s_layo.
data: fieldcat type lvc_t_fcat.
selection-screen begin of block b1 with frame title text-001 .
select-options: s_ebeln for ekko-ebeln.
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'.
data: variant type disvariant.
variant-report = sy-repid.
variant-username = sy-uname.
* 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.
* Populate Field Catalog
perform get_fieldcatalog.
call method alv_grid->set_table_for_first_display
exporting
is_layout = layout
is_variant = variant
i_save = 'U'
i_structure_name = 'I_ALV'
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 ekko
where ebeln in s_ebeln.
sort i_alv ascending by ebeln.
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 = 'PO Number'.
ls_fcat-coltext = 'PO Number'.
ls_fcat-fieldname = 'EBELN'.
ls_fcat-ref_table = 'I_ALV'.
ls_fcat-outputlen = '12'.
ls_fcat-col_pos = 1.
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 'BES' field i_alv-ebeln.
call transaction 'ME23' 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 -
Double-clicking in a date box in the "month" view used to create a new one hour long event.
Now, in 5.0 it creates an all-day event by default, and removing "all-day" results in a 6 hour long event. Anyone know how to get it back to the "old" way? really annoying to have to change it each and every time! Thanks.Lisa,
Here are some of the iCal event creation rules which may help you:
Enter a name, date, and time duration for the event, and then press Return.
For example, you can enter “Super Bowl Party Feb 6,” “Movie with Rebecca on Friday at 7pm,” “Soccer Game on Saturday from 11am-1pm,” or “Breakfast with Jon,” and then press Return.
If you don’t enter a time duration for the event, iCal sets the event’s duration to 1 hour.
If you don’t enter any time information for the event, iCal makes the event an all-day event.
If you enter “breakfast” or “morning,” iCal sets the event to start at 9 a.m.
If you enter “lunch “ or “noon,” iCal sets the event to start at 12 p.m.
If you enter “dinner” or “night,” iCal sets the event to start at 8 p.m. -
There is a way to get the color information faster than double clicking the color box?
When I need to know, for example, the hexadecimal value of a color I need to double click in the color box in the tools palette. Okay, it's not a that hard but sometimes when I'm using the gradient tools I want to do something like hover the mouse pointer over my color I get some instant information somewhere. There is a way to do this?
Thanks folks!Try the info palette (click on arrows left of Info to expand). You will just need to click once to select target item, but will not have to constantly open and close the color picker window. Pretty much same solution as expanded color palette, but you can see stroke and fill together.
-
when I open iPhoto, the screen shows only blanc squares where the photos should appear. when I double-click on a square (titled by date taken), all pictures come up. how can I get back to seeing all individual pictures?
Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Include the option to rebuold the thumbnails. This can take 3 or 4 goes to work
-
When I select a title or lower thirds and try to enter text by double clicking on it I cannot enter any text at all. Also the text area box does not show up at all where you can enter text also.
It's a bit hit and miss, Walter. Sometimes the box to enter text shows up straight away in the inspector under "text". Other times, although you click "text" in the inspector, there's nowhere to actually write anything.... then what you have to do is move the trackbar over the Title Box until you see the text boxes in the main Viewer. In the Viewer, double click a text box.... you can enter text there, but it's a bit flaky, but when you've clicked in it, you'll find that under "Text" in the inspector, the box for inputting text has magically appeared!
I'm not sure if anyone else has this trouble, but it is a bit of a pain! -
How double click address list to automatically enter TO: BAR on email?
Eric - On my TASK BAR there are several icons. One is of a person's head & shoulders. When I double click on it a list of my contacts with their; Group, Name, and email address pops up. At one time I could double click the name and the email address would automatically appear in the ADDRESS BAR of my email. It doesn't do that now.
Thanks, Ken C. -
List processing double click event
How to catch double click on list processing line?
For ALV:
fs_event-name = 'USER_COMMAND'.
fs_event-form = 'USER_COMMAND'.
APPEND fs_event TO t_event.
CLEAR fs_event.
fs_event-name = 'PF_STATUS_SET'.
fs_event-form = 'USER_COMMAND1'.
APPEND fs_event TO t_event.
CLEAR fs_event.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'
EXPORTING
* I_INTERFACE_CHECK = ' '
* I_BYPASSING_BUFFER =
* I_BUFFER_ACTIVE =
i_callback_program = sy-cprog
* I_CALLBACK_PF_STATUS_SET = ' '
* i_callback_user_command = 'USER_COMMAND'
* I_CALLBACK_TOP_OF_PAGE = ' '
* I_CALLBACK_HTML_TOP_OF_PAGE = ' '
* I_CALLBACK_HTML_END_OF_LIST = ' '
* I_STRUCTURE_NAME =
* I_BACKGROUND_ID = ' '
* I_GRID_TITLE =
* I_GRID_SETTINGS =
is_layout_lvc = fs_layo
it_fieldcat_lvc = t_fcat
* IT_EXCLUDING =
* IT_SPECIAL_GROUPS_LVC =
* IT_SORT_LVC =
* IT_FILTER_LVC =
* IT_HYPERLINK =
* IS_SEL_HIDE =
* I_DEFAULT = 'X'
* I_SAVE = ' '
* IS_VARIANT =
it_events = t_event
* IT_EVENT_EXIT =
* IS_PRINT_LVC =
* IS_REPREP_ID_LVC =
* I_SCREEN_START_COLUMN = 0
* I_SCREEN_START_LINE = 0
* I_SCREEN_END_COLUMN = 0
* I_SCREEN_END_LINE = 0
* IT_EXCEPT_QINFO_LVC =
* I_HTML_HEIGHT_TOP =
* I_HTML_HEIGHT_END =
* IMPORTING
* E_EXIT_CAUSED_BY_CALLER =
* ES_EXIT_CAUSED_BY_USER =
TABLES
t_outtab = t_obs_unq_fms
EXCEPTIONS
program_error = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
*Dynamic Subroutine.....................
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
CASE r_ucomm.
WHEN '&IC1'. " Click
rs_selfield-tabindex. " Row number where double clicked
ENDCASE.
ENDFORM. "USER_COMMAND
For SImple List :
Use AT LINE-SELECTION event.
Sy-LILLI will give you selected line no
SY-LISEL value of selected line.
If you are using custom pf-status mention PICK in PF-STATUS.
Regards,
Gurpreet -
Remediation for single-clicking a double-click action
I'm using the double mouse click feature of a Click box in a
software simulation lesson we've built in captivate. Unfortunately
when the user single-clicks in the Click box, no remediation shows
to tell the user that they must double-click in the box to complete
the step.
Anyone have any ideas on how to provide the user with
remediation on single clicking a double click Click box?
Thanks,
Scott Witlen
McKessson Provider TechnologiesUm... there are no macros. Captivate is a closed system with
no documented API outside of some variables you can read and in
some cases, set to make Captivate do some simple navigation-related
things. Search the Captivate help file for 'variables' and you'll
find a list.
Outside of that, the only official ways to "enhance"
Captivate are either to:
- Create your own standalone functionality in Flash and
insert it in Captivate as a self-contained animation. This can be
problematic due to the closed nature of the Captivate runtime, as
well as the layering imposed by the use of skins and borders.
- Make Javascript calls to the browser and put the
functionality there. Since there is limited interactivity between
Javascript and Flash, this is much more limited in scope than
inserting your own self-contained animations
Some folks have also opened up a published SWF with a
decompiler program and viewed the Adobe source code in an effort to
make their inserted animations do cooler things, but that is very
much an unsupported activity. -
I just purchased a Nikon D7000. However, iPhoto does not display JPEG images. I seems to download ok, but displays only an empty box. Double clicking on the box opens the image in a single display window. It does the same thing when importing from Nikon's supplied software. Forget about handling RAW files. Now, I'm having difficulty importing JPGs from Photoshop files for slide shows or use in iMovie.
As a Test:
Hold down the option (or alt) key and launch iPhoto. From the resulting menu select 'Create Library'
Import a few pics into this new, blank library. Is the Problem repeated there? -
How do i change this code so when i select a track in the list box it goes into the text box
Public Class Form3
Dim numofrecords As Integer
Dim NextID As Integer
Dim RecordNumber As Integer
Private Tableformat As String = "{0,-8}{1,-20}{2,-20}{3,-10}{4,-20}{5,-20}"
Private Sub Form3_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
FileOpen(1, "Tracks.dat", OpenMode.Random, , , Len(Tracks))
numofrecords = LOF(1) / Len(Tracks)
If numofrecords = 0 Then
NextID = numofrecords + 1
Else
FileGet(1, Tracks, numofrecords)
NextID = Tracks.TrackID + 1
End If
FileClose(1)
txtTrackID.Text = NextID.ToString
End Sub
Private Sub btnAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAdd.Click
' Get the song info from the form
Tracks.TrackID = txtTrackID.Text
Tracks.Title = txttitle.Text
Tracks.Artist = txtartist.Text
Tracks.Genre = txtGenre.Text
Tracks.Duration = txtduration.Text
Tracks.era = txtera.Text
Tracks.Otherinfo = txtBlurb.Text
Tracks.IsDeleted = 0
' write the record to file
FileOpen(1, "Tracks.dat", OpenMode.Random, , , Len(Tracks))
FilePut(1, Tracks, numofrecords + 1)
'Close file
FileClose(1)
' add one to the number of records
numofrecords = numofrecords + 1
NextID = NextID + 1
txtTrackID.Text = NextID
' place cursor in id box
txtTrackID.Focus()
'clear form
txtartist.Text = ""
txtduration.Text = ""
txtera.Text = ""
txtGenre.Text = ""
txttitle.Text = ""
End Sub
Private Sub Button10_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnClear.Click
txtartist.Text = ""
txtduration.Text = ""
txtera.Text = ""
txtGenre.Text = ""
txttitle.Text = ""
txtTrackID.Text = ""
End Sub
Private Sub lstsongs_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lstsongs.SelectedIndexChanged
'get selected record
RecordNumber = lstsongs.SelectedIndex
'lblDebug.Text = RecordNumber
FileOpen(1, "Tracks.dat", OpenMode.Random, , , Len(Tracks))
FileGet(1, Tracks, RecordNumber)
FileClose()
'populate the input boxes
CurrentTracks = Tracks.TrackID.
txtTrackID.Text = Tracks.ToString
txtartist.Text = Tracks.Artist
txtBlurb.Text =
txtduration.Text = Tracks.Duration
txtera.Text = Tracks.era
txtGenre.Text = Tracks.Genre
txttitle.Text = Tracks.Title
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnExit.Click
Me.Close()
End Sub
Private Sub Button8_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnLoad.Click
'set the filename
Filename = "Tracks.dat"
'open the file
FileOpen(1, FileName, OpenMode.Random, , , Len(Tracks))
'check numnber of records in file
numofrecords = LOF(1) / Len(Tracks)
'close file
FileClose(1)
Tracks.TrackID = numofrecords + 1
txtTrackID.Text = Tracks.TrackID
End Sub
Private Sub btnList_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnList.Click
'clear list box
lstsongs.Items.Clear()
'headings
lstsongs.Items.Add(String.Format(Tableformat, "Track ID", "Title", "Artist", "Genre", "Duration", "Era"))
'open file
FileOpen(1, Filename, OpenMode.Random, , , Len(Tracks))
' Add records to list box
Do While Not EOF(1)
FileGet(1, Tracks)
lstsongs.Items.Add(String.Format(Tableformat, _
Tracks.TrackID, _
Tracks.Title, Tracks.Artist, Tracks.Genre, _
Tracks.Duration, Tracks.era))
Loop
'close file
FileClose(1)
End Sub
Private Sub lblDebug_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lblDebug.Click
End Sub
End ClassHello,
Since a ListBox displays text then when you have a selected item simply use the Text property of the ListBox rather than SelectedItem which would be used if the data source was say an object i.e. setting the ListBox DataSource to a DataTable then we would
cast SelectedItem to a DataRowView but if all you have is text using the ListBox Text property.
Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem. -
Double click on subscreen field - EXIT_SAPMM06E_007
I have added a new field in a sub screen (SAPLXM06 0301 ) in ME42 transaction using exit 'MM06E005'.
Requirement is to call a transaction when user double clicks on this field. Function code can not be assigned in subscreen hence using sy-ucomm and will assign Function code F2 to the same. When ttry to define/modify the Pf-Status in PBO in exit EXIT_SAPMM06E_007 it gives error not to modify the same. In screen properties double click functionality check box is ticked for field but not working.
How this can be done.
thanks
anyaCan you please check when you double click what happens in debugging.,..?
Nabheet -
How do I stop 'recents' appearing on my screen when I double click?
A New IO8 feature has appeared on my email screen when I double click, a list of " recent" contacts, allegedly, from my iPhone. I do not want these to appear on my iPad. I have switched off notifications from i message but they still appear. Note this of course happens when the iPad is functionning normally which is rarely now as it is either frozen, or just thinking, or not responding at all....all after the upgrade to IO 8.
Just found the answer: settings, mail , contact switcher, off.
-
When you double click the home button all the previously used apps or icons appear across the bottome of the screen in the order that you were last on them. Is it true that by removing them from the bottom turns off the app and stops them from running the in they background or do the apps go off when you go off the app or sign out from them?
I was told that all the apps that appear across the bottom once you double click are running in the background. I find this hard to believe because it show everything you've been on across the botton in the order that you were last on them, whether its an app or just a function. Also, there are apps that you can sign off on which definately turns them off and that app still appears across the bottom once you double click the home buttom. I'm leaning towards thinking that the double click just lists the apps and function across the bottom in the order you were last on them and doesn't necessarilly indicate which apps are running in the background.
Maybe you are looking for
-
I purchased an Acrobat subscription for Windows but wanted a subscription for Mac. How do I exchange it?
-
Summary report w/over 90 summary elements
Post Author: JackG CA Forum: Crystal Reports Using CR XI Professional edition ..... What would be the best approach to provide a summary report with over 90 different database element summaries from a SQL Server database? I've created one document w
-
When I go to voicemail it just dials my voicemail like the old days with a flip phone. I am no longer getting voicemail notifications either. Called sprint and they said it was apple's problem and a software update was needed. Apple denied this and r
-
How to generate field on UCM check-in form???
Hi, How to generate field on UCM check-in form??? I mean in check-in new document form i have an option list metadata field (ex: Type) When i select Person like Type value, it generate me input text depended on it for exemple - Name (input text) - Ad
-
Sales Lead & Contact Management
Hi Masters, Can any one suggest any important topics must cover while preparing for Sales Lead & Contact Management. OR suggest Important topics in sales lead and contact management. Regards, Varun.