|
Mostrar Temas
|
Páginas: 1 2 3 [4] 5 6 7
|
31
|
Foros Generales / Sugerencias y dudas sobre el Foro / [SUGERENCIA] Links al foro indistintamente del protocolo en uso
|
en: 19 Enero 2011, 20:28 pm
|
Buenas. Desde que uso el protocolo HTTPS para el foro, a la hora de seguir links al mismo foro, todos estan con http:// ... la verdad cansa estar poniendo la s porque te salta que no iniciaste sesion (encima que se veia horrible por mi theme osucro ) por ahora la unica solucion manual es poner una ruta "relativa", vean esto uno normalmente pone: [url=http://foro.elhacker.net/foro/emtpy-t317238.0.html]Link[/url] esta claro que SIEMPRE ira al HTTP al poner [url= / emtpy-t317238.0.html]Link relativo[/url] ahi siempre ira al tema/foro manteniendo si es HTTP o HTTPS Asi que no se si habra algun complemento, plugin, o si pueden hacer un script php (con regexp o como sea) para que, cuando detecte links directos al foro con protocolo, los transforme a relativos. Por ahora es mi unica inquetud.. Saludos!
|
|
|
32
|
Foros Generales / Sugerencias y dudas sobre el Foro / HOW TO: Usar mi dark theme en el foro
|
en: 14 Enero 2011, 00:52 am
|
Buenas! En este post les explicare paso a paso como instalar la modificación que hice al Tema 2.0 de este foro, para que quede asi Primero, deben instalarse Stylish, es una extension que permite modificar el CSS "en vivo" al navegar. Descargar para FirefoxDescargar para Chrome / ChromiumLuego deben elejirse el tema 2.0 en el foro. Para eso, van a Perfil y en en el panel de la derecha, ponen "Configuración de Apariencia y Diseño" y en Tema Actual, Elegir "Tema 2.0" (presionando el boton "cambiar" y haciendo click en el nombre del tema) Luego agregan mi estilo al Stylish Para Firefox:Van a la esquina inferior derecha donde hay una "S" blanca, le hacen click y ponen "Administrar estilos", y presionan "Escribir nuevo estilo". Les saldra un nuevo dialogo, ponen el nombre que quieran ("elHacker.net Dark Style" para este caso ), y en el codigo ponen lo siguiente, aceptan y listo! @-moz-document url-prefix('https://foro.elhacker.net') { img[src="https://foro.elhacker.net/Themes/newgeneration/images/on.gif"]{height: 0 !important; width: 0 !important; padding-left: 50px !important; padding-top: 34px !important; background: url('http://img810.imageshack.us/img810/2725/30970175.png') no-repeat !important;} img[src="https://foro.elhacker.net/Themes/newgeneration/images/on2.gif"]{height: 0 !important; width: 0 !important; padding-left: 50px !important; padding-top: 34px !important; background: url('http://img130.imageshack.us/img130/4936/on2a.png') no-repeat !important;} img[src="https://foro.elhacker.net/Themes/newgeneration/images/off.gif"]{height: 0 !important; width: 0 !important; padding-left: 50px !important; padding-top: 36px !important; background: url('http://img821.imageshack.us/img821/3663/offi.gif') no-repeat !important;} img[src="https://foro.elhacker.net/Themes/newgeneration/images/topic/normal_post.gif"]{height: 0 !important; width: 0 !important; padding-left: 20px !important; padding-top: 20px !important; background: url('http://img17.imageshack.us/img17/7943/normalpost.gif') no-repeat !important;} img[src="https://foro.elhacker.net/Themes/newgeneration/images/topic/hot_post.gif"]{height: 0 !important; width: 0 !important; padding-left: 20px !important; padding-top: 20px !important; background: url('http://img153.imageshack.us/img153/3956/hotpost.gif') no-repeat !important;} img[src="https://foro.elhacker.net/Themes/newgeneration/images/topic/veryhot_post.gif"]{height: 0 !important; width: 0 !important; padding-left: 20px !important; padding-top: 20px !important; background: url('http://img838.imageshack.us/img838/7171/veryhotpost.gif') no-repeat !important;} img[src="https://foro.elhacker.net/Themes/newgeneration/images/topic/my_normal_post.gif"]{height: 0 !important; width: 0 !important; padding-left: 20px !important; padding-top: 20px !important; background: url('http://img684.imageshack.us/img684/57/mynormalpost.gif') no-repeat !important;} img[src="https://foro.elhacker.net/Themes/newgeneration/images/topic/my_hot_post.gif"]{height: 0 !important; width: 0 !important; padding-left: 20px !important; padding-top: 20px !important; background: url('http://img651.imageshack.us/img651/4724/myhotpost.gif') no-repeat !important;} img[src="https://foro.elhacker.net/Themes/newgeneration/images/topic/my_veryhot_post.gif"]{height: 0 !important; width: 0 !important; padding-left: 20px !important; padding-top: 20px !important; background: url('http://img337.imageshack.us/img337/5421/myveryhotpost.gif') no-repeat !important;} img[src="https://foro.elhacker.net/Themes/newgeneration/images/post/xx.gif"]{height: 0 !important; width: 0 !important; padding-left: 20px !important; padding-top: 20px !important; background: url('http://img585.imageshack.us/img585/8227/32131385.gif') no-repeat !important;} img[src="https://foro.elhacker.net/Themes/newgeneration/images/post/exclamation.gif"]{height: 0 !important; width: 0 !important; padding-left: 20px !important; padding-top: 20px !important; background: url('http://img249.imageshack.us/img249/2711/exclamation.gif') no-repeat !important;} img[src="https://foro.elhacker.net/Themes/newgeneration/images/post/question.gif"]{height: 0 !important; width: 0 !important; padding-left: 20px !important; padding-top: 20px !important; background:url('http://img214.imageshack.us/img214/4929/questionv.gif') no-repeat !important;} img[src="https://foro.elhacker.net/Themes/newgeneration/images/poll_left.gif"]{height: 0 !important; width: 0 !important; padding-left: 6px !important; padding-top: 12px !important; background: url('http://img713.imageshack.us/img713/8357/pollleft.gif') no-repeat !important;} img[src="https://foro.elhacker.net/Themes/newgeneration/images/poll_middle.gif"]{content: url('http://img337.imageshack.us/img337/425/pollmiddle.gif') !important;} img[src="https://foro.elhacker.net/Themes/newgeneration/images/poll_right.gif"]{height: 0 !important; width: 0 !important; padding-left: 6px !important; padding-top: 12px !important; background: url('http://img707.imageshack.us/img707/9328/pollrightn.gif') no-repeat !important;} *#hora{color:#FFF !important;} #shadow-l{background:url('http://img130.imageshack.us/img130/1262/shadowld.png')!important} #shadow-r{background:url('http://img233.imageshack.us/img233/5595/shadowrz.png')!important} #mainbody{background:#222 !important} a img{border:none !important} .quote{color:#222 !important; background-color:#AAA !important; border:1px solid #232833 !important;} .quote a{color:#444 !important} .code{color:#111 !important; background-color:#DDD !important; border:1px solid #000 !important;} .quoteheader, .codeheader{color:#EEE !important;} .highlight{background-color:yellow !important; font-weight:bold !important; color:black !important} .windowbg, tr.windowbg td{background:#444 !important; border-bottom:1px solid #555 !important} .windowbg2, tr.windowbg2 td{background:#333 !important} .windowbg3, tr.windowbg3 td{background:#222 !important} .calendar_today{} table.nopad .titlebg, tr.titlebg th, tr.titlebg td, table .titlebg2, tr.titlebg2 th, tr.titlebg2 td, tr td.titlebg{color:#FFF !important; background: url('http://img141.imageshack.us/img141/5024/navbgs.png') #DDC repeat-x !important;} .titlebg, .titlebg a:link, .titlebg a:visited{color:#CCC !important;} .titlebg2 a{color:#CCC !important;} .titlebg a:hover{color:#FFF !important;} .titlebg, .titlebg2{background:#444 !important;} .bordercolor{ border:1px solid #000 !important;} .tborder{ border:2px solid #000 !important;} .catbg, .catbg2{color:#fff !important; background:#232833 url('http://img141.imageshack.us/img141/5024/navbgs.png') repeat-x !important; border-bottom:1px solid #000 !important;} .catbg3{color:#FFF !important; background:url('http://img141.imageshack.us/img141/5024/navbgs.png') !important;} .catbg3 a{color:#FFF !important; text-decoration:none !important;} .catbg a, .catbg2 a, .catbg a:hover, .catbg2 a:hover{color:#fff !important; text-decoration:none !important;} .catbg a img, .catbg2 a img, .catbg3 a img{border:none !important;} .smalltext a{color:#DDD !important; text-decoration:none !important;} .smalltext a img, .smalltext a:hover img{border:0 !important;} .smalltext a:hover{color:#777 !important; border-bottom:solid 1px #777 !important;} .signature a img{border:none !important; text-decoration:none} .error{color:red} #header{background:url('http://img408.imageshack.us/img408/8404/headerbgb.png') repeat-x !important;} #header-l{background:url('http://img714.imageshack.us/img714/8087/headerla.png') 0 0 no-repeat !important;} #header-r{background:url('http://img715.imageshack.us/img715/1386/headerreh.png') 100% 0 no-repeat !important; } #logo-bg, #logo-bg a{background:url('http://img221.imageshack.us/img221/7074/logobg.png') no-repeat !important;} #logo, #logo a{background:url('http://img151.imageshack.us/img151/3576/logomy.png') no-repeat !important;} #news{background-color:#444 !important; border:1px solid #ccc !important;} div.profile_info{color:#000 !important} div.profile_info a{color:#222 !important} div.profile_info a:hover{color:#000 !important} #toolbar{background:url('http://img708.imageshack.us/img708/9389/navbg2.png') repeat-x !important} #nav{color:#FFF !important; background:url('http://img141.imageshack.us/img141/5024/navbgs.png') !important;} #nav li a{color:#FFF !important} #nav a:hover{background:url('http://img708.imageshack.us/img708/9389/navbg2.png') !important} #showcase{background:#fff !important; color:#444 !important;} #footer{background:url('http://img40.imageshack.us/img40/8987/footerbgd.png') repeat-x !important; color:#eee !important;} #footer-l{background:url('http://img208.imageshack.us/img208/5641/footerbgl.png') 0 0 no-repeat !important; padding-left:20px !important;} #footer-r{background:url('http://img263.imageshack.us/img263/4379/footerbgr.png') 100% 0 no-repeat !important; height:83px; padding-right:20px !important;} #footer a{ color:#000 !important} #footer a:hover{color:#CCC !important} #footer2{color:#999 !important} body{color:#E7E7E7 !important} #page_bg{background:#252525 !important;} a{color:#BBB !important; outline:none !important} a:hover{color:#FFF !important; text-decoration:none !important} a:link,a:visited{text-decoration:none !important} a:hover{text-decoration:none !important} h1{padding-bottom:5px} h2{padding-bottom:5px} h3{padding-bottom:0px} h4{padding-bottom:5px} .small{color:#999 !important} .createdate,.modifydate{color:#999 !important} #ajax_in_progress{background:#444; color:white; text-align:center; font-weight:bold; font-size:18pt; padding:3px; width:100%; position:fixed; top:0; left:0} .geshi{color:#111 !important; background-color:#DDD !important; border:1px solid #222 !important;} }
Para Chrome:Hagan click derecho en la "S" que aparece al lado de la barra de URL (omnibar) y ponen opciones, clickean en "Add new style". Le ponen un nombre, con Enabled Activado. En la parte de "Applies To" presionan "Especify" y seleccionan "URL starting with" poniendo la url del foro, con el protocolo que usen (HTTP o HTTPS). Deberia quedar " http://foro.elhacker.net" (en mi caso) y en codigo ponen el codigo de mas abajo y ponen "save" y listo img[src="https://foro.elhacker.net/Themes/newgeneration/images/on.gif"]{height: 0 !important; width: 0 !important; padding-left: 50px !important; padding-top: 34px !important; background: url('http://img810.imageshack.us/img810/2725/30970175.png') no-repeat !important;} img[src="https://foro.elhacker.net/Themes/newgeneration/images/on2.gif"]{height: 0 !important; width: 0 !important; padding-left: 50px !important; padding-top: 34px !important; background: url('http://img130.imageshack.us/img130/4936/on2a.png') no-repeat !important;} img[src="https://foro.elhacker.net/Themes/newgeneration/images/off.gif"]{height: 0 !important; width: 0 !important; padding-left: 50px !important; padding-top: 36px !important; background: url('http://img821.imageshack.us/img821/3663/offi.gif') no-repeat !important;} img[src="https://foro.elhacker.net/Themes/newgeneration/images/topic/normal_post.gif"]{height: 0 !important; width: 0 !important; padding-left: 20px !important; padding-top: 20px !important; background: url('http://img17.imageshack.us/img17/7943/normalpost.gif') no-repeat !important;} img[src="https://foro.elhacker.net/Themes/newgeneration/images/topic/hot_post.gif"]{height: 0 !important; width: 0 !important; padding-left: 20px !important; padding-top: 20px !important; background: url('http://img153.imageshack.us/img153/3956/hotpost.gif') no-repeat !important;} img[src="https://foro.elhacker.net/Themes/newgeneration/images/topic/veryhot_post.gif"]{height: 0 !important; width: 0 !important; padding-left: 20px !important; padding-top: 20px !important; background: url('http://img838.imageshack.us/img838/7171/veryhotpost.gif') no-repeat !important;} img[src="https://foro.elhacker.net/Themes/newgeneration/images/topic/my_normal_post.gif"]{height: 0 !important; width: 0 !important; padding-left: 20px !important; padding-top: 20px !important; background: url('http://img684.imageshack.us/img684/57/mynormalpost.gif') no-repeat !important;} img[src="https://foro.elhacker.net/Themes/newgeneration/images/topic/my_hot_post.gif"]{height: 0 !important; width: 0 !important; padding-left: 20px !important; padding-top: 20px !important; background: url('http://img651.imageshack.us/img651/4724/myhotpost.gif') no-repeat !important;} img[src="https://foro.elhacker.net/Themes/newgeneration/images/topic/my_veryhot_post.gif"]{height: 0 !important; width: 0 !important; padding-left: 20px !important; padding-top: 20px !important; background: url('http://img337.imageshack.us/img337/5421/myveryhotpost.gif') no-repeat !important;} img[src="https://foro.elhacker.net/Themes/newgeneration/images/post/xx.gif"]{height: 0 !important; width: 0 !important; padding-left: 20px !important; padding-top: 20px !important; background: url('http://img585.imageshack.us/img585/8227/32131385.gif') no-repeat !important;} img[src="https://foro.elhacker.net/Themes/newgeneration/images/post/exclamation.gif"]{height: 0 !important; width: 0 !important; padding-left: 20px !important; padding-top: 20px !important; background: url('http://img249.imageshack.us/img249/2711/exclamation.gif') no-repeat !important;} img[src="https://foro.elhacker.net/Themes/newgeneration/images/post/question.gif"]{height: 0 !important; width: 0 !important; padding-left: 20px !important; padding-top: 20px !important; background:url('http://img214.imageshack.us/img214/4929/questionv.gif') no-repeat !important;} img[src="https://foro.elhacker.net/Themes/newgeneration/images/poll_left.gif"]{height: 0 !important; width: 0 !important; padding-left: 6px !important; padding-top: 12px !important; background: url('http://img713.imageshack.us/img713/8357/pollleft.gif') no-repeat !important;} img[src="https://foro.elhacker.net/Themes/newgeneration/images/poll_middle.gif"]{content: url('http://img337.imageshack.us/img337/425/pollmiddle.gif') !important;} img[src="https://foro.elhacker.net/Themes/newgeneration/images/poll_right.gif"]{height: 0 !important; width: 0 !important; padding-left: 6px !important; padding-top: 12px !important; background: url('http://img707.imageshack.us/img707/9328/pollrightn.gif') no-repeat !important;} *#hora{color:#FFF !important;} input, textarea, select{border:#222 1px solid !important;color:#FFF !important;background-color:#666 !important;} #shadow-l{background:url('http://img130.imageshack.us/img130/1262/shadowld.png')!important} #shadow-r{background:url('http://img233.imageshack.us/img233/5595/shadowrz.png')!important} #mainbody{background:#222 !important} a img{border:none !important} .quote{color:#222 !important; background-color:#AAA !important; border:1px solid #232833 !important;} .quote a{color:#444 !important} .code{color:#111 !important; background-color:#DDD !important; border:1px solid #000 !important;} .quoteheader, .codeheader{color:#EEE !important;} .highlight{background-color:yellow !important; font-weight:bold !important; color:black !important} .windowbg, tr.windowbg td{background:#444 !important; border-bottom:1px solid #555 !important} .windowbg2, tr.windowbg2 td{background:#333 !important} .windowbg3, tr.windowbg3 td{background:#222 !important} .calendar_today{} table.nopad .titlebg, tr.titlebg th, tr.titlebg td, table .titlebg2, tr.titlebg2 th, tr.titlebg2 td, tr td.titlebg{color:#FFF !important; background: url('http://img141.imageshack.us/img141/5024/navbgs.png') #DDC repeat-x !important;} .titlebg, .titlebg a:link, .titlebg a:visited{color:#CCC !important;} .titlebg2 a{color:#CCC !important;} .titlebg a:hover{color:#FFF !important;} .titlebg, .titlebg2{background:#444 !important;} .bordercolor{ border:1px solid #000 !important;} .tborder{ border:2px solid #000 !important;} .catbg, .catbg2{color:#fff !important; background:#232833 url('http://img141.imageshack.us/img141/5024/navbgs.png') repeat-x !important; border-bottom:1px solid #000 !important;} .catbg3{color:#FFF !important; background:url('http://img141.imageshack.us/img141/5024/navbgs.png') !important;} .catbg3 a{color:#FFF !important; text-decoration:none !important;} .catbg a, .catbg2 a, .catbg a:hover, .catbg2 a:hover{color:#fff !important; text-decoration:none !important;} .catbg a img, .catbg2 a img, .catbg3 a img{border:none !important;} .smalltext a{color:#DDD !important; text-decoration:none !important;} .smalltext a img, .smalltext a:hover img{border:0 !important;} .smalltext a:hover{color:#777 !important; border-bottom:solid 1px #777 !important;} .signature a img{border:none !important; text-decoration:none} .error{color:red} #header{background:url('http://img408.imageshack.us/img408/8404/headerbgb.png') repeat-x !important;} #header-l{background:url('http://img714.imageshack.us/img714/8087/headerla.png') 0 0 no-repeat !important;} #header-r{background:url('http://img715.imageshack.us/img715/1386/headerreh.png') 100% 0 no-repeat !important; } #logo-bg, #logo-bg a{background:url('http://img221.imageshack.us/img221/7074/logobg.png') no-repeat !important;} #logo, #logo a{background:url('http://img151.imageshack.us/img151/3576/logomy.png') no-repeat !important;} #news{background-color:#444 !important; border:1px solid #ccc !important;} div.profile_info{color:#000 !important} div.profile_info a{color:#222 !important} div.profile_info a:hover{color:#000 !important} #toolbar{background:url('http://img708.imageshack.us/img708/9389/navbg2.png') repeat-x !important} #nav{color:#FFF !important; background:url('http://img141.imageshack.us/img141/5024/navbgs.png') !important;} #nav li a{color:#FFF !important} #nav a:hover{background:url('http://img708.imageshack.us/img708/9389/navbg2.png') !important} #showcase{background:#fff !important; color:#444 !important;} #footer{background:url('http://img40.imageshack.us/img40/8987/footerbgd.png') repeat-x !important; color:#eee !important;} #footer-l{background:url('http://img208.imageshack.us/img208/5641/footerbgl.png') 0 0 no-repeat !important; padding-left:20px !important;} #footer-r{background:url('http://img263.imageshack.us/img263/4379/footerbgr.png') 100% 0 no-repeat !important; height:83px; padding-right:20px !important;} #footer a{ color:#000 !important} #footer a:hover{color:#CCC !important} #footer2{color:#999 !important} body{color:#E7E7E7 !important} #page_bg{background:#252525 !important;} a{color:#BBB !important; outline:none !important} a:hover{color:#FFF !important; text-decoration:none !important} a:link,a:visited{text-decoration:none !important} a:hover{text-decoration:none !important} h1{padding-bottom:5px} h2{padding-bottom:5px} h3{padding-bottom:0px} h4{padding-bottom:5px} .small{color:#999 !important} .createdate,.modifydate{color:#999 !important} #ajax_in_progress{background:#444; color:white; text-align:center; font-weight:bold; font-size:18pt; padding:3px; width:100%; position:fixed; top:0; left:0} .geshi{color:#111 !important; background-color:#DDD !important; border:1px solid #222 !important;}
Ahora si, si hicieron todo bien, los cambios ya deberian verse (o al menos presionen F5 para actualizar) Espero que les sirva y que mas de uno lo use! Si alguno tiene problemas, pondre imagenes
|
|
|
33
|
Programación / Programación Visual Basic / [APORTE] ucHotKey
|
en: 3 Enero 2011, 18:04 pm
|
Feeeliz año para todos, esta vez llego un poquito tarde el regalo xD despues de hacer el ucProgressBar quise hacer este, pero no contaba con la suficiente experiencia haciendo controles xD, así que ahora lo retome y lo termine En el ejemplo puse un ejemplo (valga la redundancia) de como usarlo con RegisterHotKey y usarlo aunque también se podría hacer una clase para usarlo, porque algunos flags de RegisterHotKey están ordenados al revés en el control HotKey por api xD - Subs
- SetRules: Pone los modificadores que NO se pueden usar
- Propiedades
- Font: Fuente del control
- Enabled: Habla por si solo xD
- ValueModifiers: Flags de teclas especiales (ALT - CONTROL - SHIFT)
- ValueKey: Tecla del HotKey en si
y aca el link de descarga http://www.mediafire.com/?q7o531c3jsnh7xqNos vemos hasta el proximo aporte (o duda xD)! [ Original para el foro de LeandroA]
|
|
|
34
|
Programación / Programación Visual Basic / [Regalo de navidad] Perfeccionando el ucListView :)
|
en: 24 Diciembre 2010, 17:29 pm
|
Bueeeenas! Esta es una investigacion (?) que he estado haciendo por tiempo leyendo y releyendo por la web, msdn, sdk, y proyectos de Leandro y bueno, todo eso lo fui juntando al ucListView y este es el resultado u.u Agregados- ProgressBar:
La clase de leandro incluida en el mismo control. Se llama a los mismos mienbros de el modulo de Leandro solo que con el prefijo Progress
- ProgressColumn - Columna del ProgressBar, tienen que tener todos las filas numeros, para desactivarlo poner este campo a -1
- ProgressBackColor
- ProgressBorderColor
- ProgressFillColor
- ProgressNoEraseBackGroud - A la hora de cambiar los valores alternar este campo (ver ejemplo)
- ProgressTextColor
- ProgressTextVisible
- ProgressUseWindowsTheme
- Grupos:
Ver por grupos (winXP) y grupos colapsables con o sin subtitulo y pie (winVista en adelante)
- GroupsEnable: Habilita la vista de grupos. Si un grupo no tiene items asignados, este no se mostrara. Y los items sin grupo tampoco se muestran.
- GroupAdd: Agrega un grupo
- GroupClear: Borra los grupos
- GroupCollapsed: Obtiene o pone si el grupo esta completo o solo se ve su cabecera
- GroupCollapsible: Obtiene o pone si los grupos se pueden colapsar
- GroupCount: Contador (NOTA: en xp a alguien se le olvido poner el GroupCount asi que se usa una variable contador interna u.u)
- GroupFooterAlign y GroupHeaderAlign: Alineacion del texto de pie y Cabecera
- GroupFooterText y GroupHeaderText: Texto de pie y cabecera
- GroupRemove: Elimina un grupo (Los items siguen perteneciendo a ese numero de grupo)
- Imagen de Fondo con/sin estilo XP:
Imagen de fondo tipo mosaico o en la esquina inferior izquierda definido segun el segundo parametro de BackgroundPictureSet (Nota: El archivo a poner como imagen de fondo debe ser BMP)
- Estilo de explorador de windows: (win 7) (No salio en la foto)
Se puede poner que el control se vea tal cual como se ven el explorador de windows 7. Nota: si lo ponen y lo quitan no queda tan bien xD. Se asigna con la propiedad ExplorerTheme
- Seleccionar Todo, Deseleccionar Todo, TopIndex y PageCount: (que tampoco salio en la foto )
Metodos SelectAll y DeSelectAll, propiedades TopIndex (primer item visible) y PageCount (cuantos items se ven) agregados
todavia esta en version Beta, y tiene estos ... problemitas u.u - Grupos no compatibles con ProgressBar
- Una ves puesto el fondo al estilo XP (imagen esquina inferior derecha) no se puede sacar. Pero si se puede poner fondo mosaico sin que la otra imagen se vea
- Problema de pintado cuando los grupos se colapsan (achican) y desaparece el scrollBar, el uc queda todo gris hasta que se pasa el mouse encima o.O
- Si se cambia de tamaño bruscamente (jugando con el tamaño usando el mouse XD) el texto de los items se puede ver algo raro o.O
Bueno, el regalo link de descarga para que lo prueben! http://www.mediafire.com/?8p75236dbb6nga9Ahora si, Feliz Navidad!!!! [Originalmente para el foro de LeandroA]
|
|
|
35
|
Programación / Programación Visual Basic / [APORTE] ucUpDown (FULL API)
|
en: 22 Diciembre 2010, 21:33 pm
|
Sigo con mis aportes Un con control Up/Down totalmente hecho por api (el textbox y el control en si), no es nada simulado (como varios controles encontrados por la red). Algo particular que nunca me di cuenta, es que tiene aceleración, esto es, dado unos segundos manteniendo apretado una de las flechas, puede ir aumentando mas valores. Por defecto, aumenta de 1 en 1 cuando apenas apretamos, a los 2 segundos aumenta de a 5, y a los 5 aumenta de a 20 (lo notaran si ponen valores y limites mas grandes) Puede que tenga algún que otro bug, y este código esta mas organizado y entendible Link de descarga Actualizacion 23/12/10: Cuando suelta el foco del textbox despues de una edicion manual, ajusta segun los limites (ej: si el minimo es 3, en el textbox pongo 1, cuando pierde foco vuelve a 3 ) hhttp://www.mediafire.com/?b71m7jyo12enjap[Originalmente para el foro de LeandroA]
|
|
|
37
|
Programación / Programación Visual Basic / [APORTE] ucIpAddressBox
|
en: 11 Diciembre 2010, 22:26 pm
|
Buenas! Y si, resulta que ese lunes del que me quede sin Internet, no solo hice el ucProgressbar, sino que hice otros, pero este.. fue algo especial... se veía como si estuviese en windows 3.1 (si si, el viejisimo, con letras de consola), y espiando (Microsoft Spy++) el que hay en las propiedades de conexión de cualquier placa de red, ponía los mismísimos estilos y nada... Después de un tiempo pensé en "atarlo con alambres" xD, y le puse la fuente que tiene el formulario y listo! Se veía como un control común y corriente. Pero esto trae un pequeño bug cuando esta en el ID, los labels y otros controles toman una fuente rara (a veces solo Negrita) pero el bug no aparece cuando esta compilado. Trate de agregarle la propiedad fuente, pero... en lugar de afectar al control en si, afectaba a todo el formulario jaja. Por si alguien quiere revisarlo, deje el código de la propiedad Font en el control. No hay mucho que decir de este control, es para no tener que validar las IP a mano, con posibilidad de poner rangos. Devuelve y pones la ip como un string (ej "127.0.0.1"), en el ejemplo en el textbox "Poner IP" pones una ip y sale, si pones algo invalido no la pone NO JUEGUEN CON SetWindowLong ni SetClassLongSi, tuve la desgracia de que buscando que se vea como un control con estilos XP, empeze a usar esas apis y PUM, se tildan la pc en cuanto ejecuta esas lineas "probando cosas", lo peor, es que despues de un tilde, el archivo mismo del control quedo dañado, y lo tuve que reescribir completamente
Bueno, despues de mi consejito, aca el link de descarga y un screenshot como siempre Sin mas, Saludos!!!!
|
|
|
38
|
Programación / Programación Visual Basic / [APORTE] ucProgressBar
|
en: 10 Diciembre 2010, 13:54 pm
|
Bueeenas! El lunes me quede sin internet porque se cayo un cuadro desde 2m directo en la cajita de linea telefonica y la partio al medio. Estuve un dia sin internet, y justo un poco antes habia bajado el SDK de windows 7. Me puse a leerlo y encontre documentacion sobre las API de windows para controles. E hize este para practicar Costo un poco (en especial poner el Maximo y minimo xD) pero salio al final Cuidado cuando compilan, hay algunos windows XP que no iniciaba el ejecutable, no se si sera culpa del uc o algun descuido mio (aunque no es la primera vez que pasa) y aca el source http://www.mediafire.com/?aca222781ij7jqhSaludos! (PD: Por ahi traiga mas controles )
|
|
|
40
|
Programación / Programación Visual Basic / [APORTE] Poner orden en columnas de ucListView
|
en: 30 Noviembre 2010, 01:23 am
|
Buenas. Esto es un agregado al ucListView de Carles PV en el que pongo mediante flags que las columnas muestren el triangulito al lado (winXP) o arriba y que ademas se ponga la cabecera de la columna azulada (win7) Porque a veces las columnas se vuelven locas y hay que poner orden xDSi alguno probo Win7, vera que en el ListView el orden se muestra de una forma distinta Poniendo el triangulo arriba y remarcando el Header de la columna ordenada. Pues se me ocurrio buscar como lograr eso, y encontre Esto que es parte de como se maneja un ListView por API. Me di cuenta que ya no se agrega un triángulo al listview, es anticuado, ahora es mediante unos flags en el formato de la cabecera. Entonces me decidí modificar el ucListView para que acepte eso en sus columnas. Y aqui el resultado En el control de usuario, agregar lo siguiente En las declaracionesPrivate Const HDF_SORTDOWN As Long = &H400 Private Const HDF_SORTUP As Long = &H200
En las PropiedadesPublic Property Get ColumnOrder(ByVal Column As Integer) As eSortOrderConstants Dim uHDI As HDITEM If (m_hListView And m_hHeader) Then uHDI.mask = LVCF_FMT Call SendMessage(m_hListView, HDM_GETITEM, Column, uHDI) If (HDF_SORTDOWN And uHDI.fmt) Then ColumnOrder = soDescending ElseIf (HDF_SORTUP And uHDI.fmt) Then ColumnOrder = soAscending Else ColumnOrder = soDefault End If End If End Property Public Property Let ColumnOrder(ByVal Column As Integer, ByVal order As eSortOrderConstants) Dim uHDI As HDITEM If (m_hListView And m_hHeader) Then With uHDI .mask = HDI_FORMAT Call SendMessage(m_hHeader, HDM_GETITEM, Column, uHDI) If order = soAscending Then .fmt = (.fmt And Not HDF_SORTDOWN) Or HDF_SORTUP ElseIf order = soDescending Then .fmt = (.fmt And Not HDF_SORTUP) Or HDF_SORTDOWN Else .fmt = .fmt And Not (HDF_SORTUP Or HDF_SORTDOWN) End If End With Call SendMessage(m_hHeader, HDM_SETITEM, Column, uHDI) End If End Property
Y listo, para que ver la modificacion en accion ponen en un ucListView Private Sub ucListView1_ColumnClick(Column As Integer) If ucListView1.ColumnOrder(Column) = soAscending Then ucListView1.ColumnOrder(Column) = soDescending Else ucListView1.ColumnOrder(Column) = soAscending End If
Y les quedara asi: Aunque no es muy lindo que quede asi digamos.... para que paresca un ListView Comun y corriente, con este codigo alcanza Private Sub ucListView1_ColumnClick(Column As Integer) Dim nCol As Integer With ucListView1 If (.Count > 1) Then For nCol = 0 To 2 If (nCol <> Column) Then .ColumnOrder(nCol) = soDefault Next nCol If .ColumnOrder(Column) = soAscending Then .ColumnOrder(Column) = soDescending Else .ColumnOrder(Column) = soAscending End If ' Aca su rutina para ordenar End If End With End Sub
PD: Deben compilar el proyecto para verlo visualmente, desde el IDE (salvo que le hayan puesto un manifest, aunque dudo que funcione) no se mostrará Espero que les sirva! Pueden bajar el control modificado, con el ejecutable y un ejemplo descargandolo AcaOriginalmente para El foro de LeandroA
|
|
|
|
|
|
|