Control verschieben

  • Trotz intensiver Suche ist es mir nicht gelungen ein
    Beispiel zu finden, indem ein Static Control mit der
    Maus verschoben wird. Allgemein funktioniert die
    Releasecapture - Methode nur für Controls, die den Focus haben.
    Controls ohne Focus (Static, Groupbox etc) lassen sich so nicht
    verschieben.:( Wer kann mir ein Beispiel machen :):?:


  • :D

  • Statics müssen den richtigen Stil haben, damit sie Meldungen weitergeben.


    Gruss
    Andreas


    ______________________
    http://www.ampsoft.eu


    Profan 3.3 - XProfanX2
    Windows 95,98,ME,2000,XP
    Vista - Windows 7 32 / 64 Bit


    ASUS X93S - Intel Core I7 - NVIDIA GForce GT540M - 8GB Arbeitsspeicher

  • Danke Andreas !


    Wer lesen kann ist echt im Vorteil :)



    Ausschnitt aus Platform SDK:

    Zitat


    Applications often use static controls to label other controls or to separate a group of controls. Although static controls are child windows, they cannot be selected. Therefore, they cannot receive the keyboard focus and cannot have a keyboard interface. A static control that has the SS_NOTIFY style receives mouse input, notifying the parent window when the user clicks or double clicks the control.

  • Zitat von Ralph Theobald;854236

    Static Funktioniert .


    Groupbox geht nicht.


    Eine Groupbox ist ja auch kein Static sondern ein Button


    Gruss
    Andreas


    ______________________
    http://www.ampsoft.eu


    Profan 3.3 - XProfanX2
    Windows 95,98,ME,2000,XP
    Vista - Windows 7 32 / 64 Bit


    ASUS X93S - Intel Core I7 - NVIDIA GForce GT540M - 8GB Arbeitsspeicher

  • Und so geht es mit jedem Control im Fenster, egal welcher Stil gesetzt ist.:-)


    Gruss
    Andreas


    ______________________
    http://www.ampsoft.eu


    Profan 3.3 - XProfanX2
    Windows 95,98,ME,2000,XP
    Vista - Windows 7 32 / 64 Bit


    ASUS X93S - Intel Core I7 - NVIDIA GForce GT540M - 8GB Arbeitsspeicher

  • Hscroll und Vscroll funktionieren nicht.;)



    Spinedit "spinnt". Beide Bestandteile lassen sich unabhängig voneinander
    verschieben. Das Auf und Ab - zählen funktioniert aber.:D


    Prima , daß dafür mal ein allgemeingültiger Code da ist :-):-)

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!