equal
deleted
inserted
replaced
418 SVGUIContainer* container = GetSVGUIRootElement(); |
418 SVGUIContainer* container = GetSVGUIRootElement(); |
419 if (container->GetFocusedElementName() == wxT("TextCtrl")) |
419 if (container->GetFocusedElementName() == wxT("TextCtrl")) |
420 { |
420 { |
421 wxString focusedId = container->GetFocusedElement(); |
421 wxString focusedId = container->GetFocusedElement(); |
422 SVGUITextCtrl* text = (SVGUITextCtrl*)GetElementById(focusedId); |
422 SVGUITextCtrl* text = (SVGUITextCtrl*)GetElementById(focusedId); |
423 text->SendKeyEvent(event); |
423 text->OnChar(event); |
424 """ |
424 """ |
425 for element in elements: |
425 for element in elements: |
426 element_type = GetElementType(element) |
426 element_type = GetElementType(element) |
427 if element_type == ITEM_TEXT: |
427 if element_type == ITEM_TEXT: |
428 texts = {"location" : current_location, "id" : element.getid()} |
428 texts = {"location" : current_location, "id" : element.getid()} |
444 SVGUIContainer* container = GetSVGUIRootElement(); |
444 SVGUIContainer* container = GetSVGUIRootElement(); |
445 if (container->GetFocusedElementName() == wxT("ScrollBar")) |
445 if (container->GetFocusedElementName() == wxT("ScrollBar")) |
446 { |
446 { |
447 wxString focusedId = container->GetFocusedElement(); |
447 wxString focusedId = container->GetFocusedElement(); |
448 SVGUIScrollBar* scrollbar = (SVGUIScrollBar*)GetElementById(focusedId); |
448 SVGUIScrollBar* scrollbar = (SVGUIScrollBar*)GetElementById(focusedId); |
449 scrollbar->SendMouseEvent(event); |
449 scrollbar->OnLeftDown(event); |
450 """ |
450 """ |
451 for element in elements: |
451 for element in elements: |
452 element_type = GetElementType(element) |
452 element_type = GetElementType(element) |
453 if element_type == ITEM_SCROLLBAR: |
453 if element_type == ITEM_SCROLLBAR: |
454 texts = {"location" : current_location, "id" : element.getid()} |
454 texts = {"location" : current_location, "id" : element.getid()} |