Español
Fuente/ Codesnippets

Bewegen Bild Scrollbalken

 

KompilierenMarcaSeparación
 {$cleq}
declare inframe1&,inframe2&,pic&,ps&,fle$
DEF createpicstatic(6) control("STATIC",@$(2),$5400010E,@%(3),@%(4),@%(5),@%(6),@%(1),2000, %HInstance)

Proc Inframe

    Parameters In_hd&,In_xp&,In_yp&,In_xs&,In_ys&,In_xr&,In_yr&
    In_hd&=Create("listbox",In_hd&,"",In_xp&,In_yp&,0,0)
    Case In_yr&<In_ys&:In_yr&=If(In_xr&>In_xs&,In_ys&-25,In_ys&-10)
    Sendmessage(In_hd&,416,0,10)
    Sendmessage(In_hd&,404,In_xr&,0)

    Whileloop In_yr&/10

        Addstring(In_hd&,"")

    Wend

    Setwindowpos In_hd&=In_xp&,In_yp&-In_xs&,In_ys&
    In_hd&=Control("STATIC","",1409286400,0,0,If(In_xr&<In_xs&,In_xs&,In_xr&),In _yr&+10,In_hd&,0,%Hinstance,$0)
    Return In_hd&

Endproc

windowstyle ( 512 | 8 | 16 )
window 0,0 - 600,600
fle$:="map.bmp"
mloadbmp fle$
pic&:=Create("hPic",-1,fle$)
Inframe1&=Inframe(%Hwnd,5,5,500,500,%bmpx,%bmpy)
ps&:=createpicstatic(inframe1&,"",0,0,%bmpx,%bmpy)
Sendmessage(ps&,$172,0,pic&)

whilenot %key==2

    waitinput

wend

deleteobject pic&
end
Salve, IF.
 
19.06.2005  
 



Wenn uno sin embargo el Y-Sprungweite el scrollenden Listbox no en 10PX haben möchte - pero Pixelgenau - entonces dieser ligeramente-modifizierte Code:
KompilierenMarcaSeparación
 {$cleq}
declare inframe1&,inframe2&,pic&,ps&,fle$
DEF createpicstatic(6) control("STATIC",@$(2),$5400010E,@%(3),@%(4),@%(5),@%(6),@%(1),2000, %HInstance)

Proc Inframe

    Parameters In_hd&,In_xp&,In_yp&,In_xs&,In_ys&,In_xr&,In_yr&
    In_hd&=Create("listbox",In_hd&,"",In_xp&,In_yp&,0,0)
    Case In_yr&<In_ys&:In_yr&=If(In_xr&>In_xs&,In_ys&-25,In_ys&-10)
    Sendmessage(In_hd&,416,0,10)
    Sendmessage(In_hd&,404,In_xr&,0)
    sendmessage(In_hd&,416,0,1)

    Whileloop In_yr&

        Addstring(In_hd&,"")

    Wend

    Setwindowpos In_hd&=In_xp&,In_yp&-In_xs&,In_ys&
    In_hd&=Control("STATIC","",1409286400,0,0,If(In_xr&<In_xs&,In_xs&,In_xr&),In _yr&+10,In_hd&,0,%Hinstance,$0)
    Return In_hd&

Endproc

windowstyle ( 512 | 8 | 16 )
window 0,0 - 600,600
fle$:="map.bmp"
mloadbmp fle$
pic&:=Create("hPic",-1,fle$)
Inframe1&=Inframe(%Hwnd,5,5,500,500,%bmpx,%bmpy)
ps&:=createpicstatic(inframe1&,"",0,0,%bmpx,%bmpy)
Sendmessage(ps&,$172,0,pic&)

whilenot %key==2

    waitinput

wend

deleteobject pic&
end
Salve, IF.
 
19.06.2005  
 



Zum Quelltext


Título del Tema, max. 100 Signo.
 

Systemprofile:

Kein Systemprofil creado. [anlegen]

XProfan:

 Contribución  Font  Smilies  ▼ 

Bitte registro en una Contribución a verfassen.
 

Tema opciones

3.146 Views

Untitledvor 0 min.
Thomas Freier04.02.2023
Sebald Grandjean09.02.2018
Hans-Jürgen Trog17.04.2017
Manfred Barei10.11.2016
Más...

Themeninformationen

Dieses Thema ha 1 subscriber:

iF (2x)


Admins  |  AGB  |  Applications  |  Autores  |  Chat  |  Política de Privacidad  |  Descargar  |  Entrance  |  Ayuda  |  Merchantportal  |  Pie de imprenta  |  Mart  |  Interfaces  |  SDK  |  Services  |  Juegos  |  Búsqueda  |  Support

Ein Projekt aller XProfan, el lo son!


Mi XProfan
Privado Noticias
Eigenes Ablageforum
Temas-Merkliste
Eigene Beiträge
Eigene Temas
Zwischenablage
Cancelar
 Deutsch English Français Español Italia
Traducciones

Política de Privacidad


Wir uso Cookies sólo como Session-Cookies wegen el technischen Notwendigkeit y en uns hay no Cookies de Drittanbietern.

Wenn du hier en unsere Webseite klickst oder navigierst, stimmst du unserer Erfassung de Informationen en unseren Cookies en XProfan.Net a.

Weitere Informationen a unseren Cookies y dazu, como du el Kontrolle darüber behältst, findest du en unserer nachfolgenden Datenschutzerklärung.


einverstandenDatenschutzerklärung
Yo möchte no Cookie