Mostrando las entradas con la etiqueta Ejemplo. Mostrar todas las entradas
Mostrando las entradas con la etiqueta Ejemplo. Mostrar todas las entradas

lunes, 14 de septiembre de 2020

VisualizarTexto (Ejemplo)

 

VisualizarTexto es un pequeño proyecto y un ejemplo que podrás descargar de la Granja de Gambas.

El mismo lo que hace es aparecer en el menú contextual como se muestra en la siguiente imagen. Posamos el puntero del ratón sobre el archivo de texto y clic en el botón derecho.

Al hacer clic en 'Abrir con VisualizadorTexto' se ejecutara el programa y en el evento open ejecutará el siguiente código.

Al abrir el programa Args nos devolverá dos datos el primero es el nombre de la aplicación (lo ignoramos con continue) y el segundo sera el path del archivo.

Para visualizar el texto en un textarea usamos File.Load y listo.

 

Para que todo esto funcione en el momento de la compilación debemos agregar el mimetype en esta ventana


Por ejemplo supongamos que nuestra aplicación trabaja con archivos de audio o vídeo, pues bien hay que añadir los mimetypes uno por uno.

¿Pero como se el mimetype que tengo que añadir?

Simple usa el comando mimetype seguido del archivo a averiguar su mimetype.

Ejemplo: mimetype Fretless.webm
nos da: Fretless.webm: video/webm

Lo que tenemos que agregar al mimetype es: video/webm

Bueno después mejoro el tutorial, saludos.


Nota: para probar el proyecto compílenlo e instálenlo

(el proyecto esta en la granja).


viernes, 1 de mayo de 2020

Eliminar archivos duplicados


Este código lo hice al ver que una carpeta tenía muchas imágenes repetidas, es decir totalmente idénticas, de ahí surge el problema y la pregunta. ¿Como eliminar las imagenes (.png) iguales?. Pues bien se me ocurrió usar el comando de Linux de consola "sha256sum" el cual te da un hash único, en teoría es imposible que salgan dos hashes iguales si los archivos son diferentes, solamente salen iguales si son idénticos. Este método es usado para comprobar la integridad de un archivo que ha sido descargado. Un ejemplo lo tenemos en el mismo Gambas, en la granja después de elegido un proyecto y descargado Gambas comprueba el hash, si es distinto te tirar error si es igual te dice que el archivo se descargo correctamente.

El código fuente se encuentra en la granja. Saludos

https://gambas.one/gambasfarm/?id=803&action=search


lunes, 20 de abril de 2020

aspell (clase)

Puedes usar esta clase para corregir las faltas ortográficas de un texto x, usa el programa aspell y para corregir en español instala aspell-es. Después amplio el post esta en la granja de gambas.



https://gambas.one/gambasfarm/?id=785&action=search

martes, 7 de abril de 2020

BoxInteger (clase)


Esta clase hereda de textbox, todo, valga la redundancia, pero le añadiremos un comportamiento particular en su evento KeyPress(). Este evento se lanza o se produce cuando presionamos una tecla. Por medio de un observador capturaremos este evento, haremos un filtro que si la tecla presionada no es un número del 0 a 9 retornemos previamente parando el evento mediante Stop Event haciendo que no se escriba el carácter elegido por el usuario mediante el teclado. Para escribir un número tendrá que presionar nuevamente otra tecla para lanzar el evento nuevamente y ahí actuará nuestro filtro. Otras teclas que permitiremos para que el usuario pueda editar serán suprimir, retornar, inicio, fin y alguna mas.

' gambas class file

'by postapase 07 abr 2020
Export

Inherits TextBox

Public Const Properties As String = "*"
Public Const _IsControl As Boolean = True
Public Const _DefaultSize As String = "14,4"
Public Const _Group As String = "Form"

Public obs As Observer

Property Read Valor As Integer

Public Sub _new()
'aquí esta el observador con el cual podremos manipular los eventos del textbox mediante la palabra "boxinteger" (aquí podemos poner un nombre a elección"
Obs = New Observer(Me) As "BoxInteger"

End




Public Sub BoxInteger_KeyPress()

Select Case Key.Code
Case Key.Del
Return
Case Key.Return
Return
Case Key.Home
Return
Case Key.End
Return
Case 16777234
Return
Case 16777236
Return
Case 16777219
Return
Case 48 To 57 'estos son los códigos ascii del número 0 al 9
Return
Default
End Select

Stop Event
Return

End

Private Function Valor_Read() As Integer

If Me.Text = "" Then Return 0

Return CInt(Me.Text)

End


Código:
https://gambas.one/gambasfarm/?id=776&action=search

miércoles, 11 de septiembre de 2019

Como poner un formulario dentro de otro


Aún no he hecho ningún programa que tenga esta función pero es necesario aprender a hacerlo en principio, pues tiene que ver con el manejo de interfaces y como diseñar interfaces inteligentemente o cual es la mejor forma de visualizar la información para nuestro programa.

Les dejo aquí mi primera prueba sobre esta función que nos permite gambas, que trata de incrustar un formulario dentro de otro, un ejemplo profesional lo tenemos en la ide de gambas mismo con la ventana consola.


' gambas class file

Public Sub Form_Open()

CargarEnContenedor()

End

Public Sub Form_Show()

Me.x = 0
Me.y = 0

End

Public Sub btnSalir_Click()

If Not ventana.Parent Then
ColocarEnContenedor()
Else
SacarDeContenedor()
Endif

End

Public Sub ColocarEnContenedor()

'asignamos un nuevo contenedor a ventana
ventana.Reparent(PanContenedor, 0, 0)
ventana.Center 'centramos ventana

End

Public Sub SacarDeContenedor()

'quitamos la ventana de su contenedor por medio de null
ventana.Reparent(Null, 0, 0)
ventana.Center 'centramos el formulario en la pantalla

End

Public Sub CargarEnContenedor()

'cargamos un formulario x en un contendor x
ventana.Load(PanContenedor)
ventana.Show

End


Public Sub btnCargar_Click()

CargarEnContenedor()

End


Formulario secundario


' gambas class file

Public Sub btnSalir_Click()

  If Not ventana.Parent Then Return
  FMain.SacarDeContenedor

End

Public Sub btnEntrar_Click()

  FMain.ColocarEnContenedor

End



 El proyecto esta en la Granja de gambas.

viernes, 11 de agosto de 2017

Granja OffLine By Postapase Agosto 2017




Nuevo paquete con 286 proyectos gamberos, 73 nuevos!!
Tenemos: Nombre proyecto, versión por un lado y entre parentesis,
tenemos: autor, descargas del proyecto y full descargas, que es cuando hay varias versiones de un proyecto, es lo que contabiliza.



286 Proyectos disponibles

101010_Text_editor 0.1.0.bz2           (cogier - 87/87)
15PuzzleGame 0.2.0.bz2                 (cogier - 53/78)
15PuzzleGame 0.3.0.bz2                 (cogier - 25/78)
1945 0.0.7.bz2                         (jsbsan - 902/902)
ActivarDesactivarSonidos 0.1.0.bz2     (postapase - 114/114)
Alarm_Timer 1.0.0.bz2                  (cogier - 46/46)
AnalogLeftTurnWatch 1.0.2.bz2          (Example - 110/110)
AnalogWatch 1.0.0.bz2                  (Example - 437/437)
AnalogWatch1 1.0.2.bz2                 (Example - 255/255)
Arduino-Gambas 1.0.2.bz2               (UZI - 143/143)
Arduino_Uno 1.0.1.bz2                  (RolfDahl-skogStade - 81/81)
AsistenteTM 0.1.8.bz2                  (Postapase - 75/75)
AutoUpdater 1.0.11.bz2                  (cogier - 130/130)
BTC_CALC 1.0.23.bz2                     (Ozymandias - 24/24)
Barcode 3.0.0.bz2                      (Barras_Victor - 191/191)
BarcodeCreator 0.1.0.bz2               (cogier - 342/491)
BarcodeCreator 0.2.0.bz2               (cogier - 149/491)
Base2017 1.1.0.bz2                     (RobertoBormida - 19/19)
Base2017_v1_3 1.3.0.bz2                (RobertoBormida - 9/9)
BeastScroll 1.1.0.bz2                  (Example - 346/346)
Brightness 1.1.1.bz2                   (Genex1000 - 5/5)
CapturarVentanaActiva 0.1.0.bz2        (postapase - 47/47)
ChartExample 0.1.1.bz2                 (cogier - 118/118)
CheckDigitGenerator 1.0.0.bz2          (Devtronics - 25/25)
Christmas 2.0.0.bz2                    (Piga_Software - 59/59)
ClamScan 1.1.3.bz2                     (Ozymandias - 31/31)
Clase_Persona 0.1.0.bz2                (Postapase - 247/247)
Clase_Persona2 0.1.1.bz2               (Postapase - 105/105)
Clase_Respaldo 0.1.0.bz2               (Postapase - 102/102)
ClasesPadre_e_Hijo 0.1.0.bz2           (Postapase - 127/127)
ClientSocket 1.0.0.bz2                 (Example - 537/537)
ClockWf 2.4.7.bz2                      (Naubaddi - 90/90)
ColorButtonSave 0.1.0.bz2              (Postapase - 27/27)
ColorPaletteColorsDefaults 0.1.0.bz2   (postapase - 31/31)
Contactos 0.1.8.bz2                    (Postapase - 121/121)
ControlPersonalizado 0.1.1.bz2         (postapase - 18/18)
DB-diff 0.3.16.bz2                      (smso - 252/252)
DBusExplorer 1.0.0.bz2                 (Example - 260/260)
DamasInglesas 0.1.0.bz2                (jsbsan - 160/160)
DataBaseExample 0.0.1.bz2              (Keywild - 2065/2065)
DemoReport 0.1.0.bz2                   (Gambix - 315/315)
DescargaYoutube 0.0.5.bz2              (jsbsan - 246/246)
DescargaYoutube 0.1.0.bz2              (jspan - 296/296)
DocumentView 1.0.0.bz2                 (Example - 375/375)
Dogmascotas 1.0.3.bz2                  (RositaAlvarez - 81/81)
Dungeon-Mazing 0.1.0.bz2               (HowToPhil - 238/238)
DynamicMatrixExample 0.1.4.bz2         (Gianluigi - 221/221)
Ejemplo_Blob(sqlite3) 0.1.0.bz2        (Postapase - 206/206)
Elianas_Game 0.1.36.bz2                 (CamEra - 108/108)
Escaleta 0.2.8.bz2                     (jsbsan - 90/90)
Expand_Swap 1.0.3.bz2                  (Ozymandias - 13/13)
ExpandingForms 0.1.1.bz2               (cogier - 356/356)
ExplainTextBox 0.1.3.bz2               (Gambas-Buch - 173/173)
FileBackup 0.1.0.bz2                   (postapase - 60/60)
File_Downloader 0.1.1.bz2              (Http_File_Downloader - 117/117)
FindFiles 2.0.22.bz2                    (cogier - 154/154)
FlyerIvasion 0.1.3.bz2                 (MovigaTechnologies - 66/66)
Formel-X 1.1.7.bz2                     (Naubaddi - 53/53)
Fractal 1.0.0.bz2                      (Example - 287/287)
Fruho_Installer 1.0.3.bz2              (Ozymandias - 21/21)
GAlarm 0.1.96.bz2                       (Jussi - 160/307)
GAlarm 0.2.23.bz2                       (Jussi - 147/307)
GBrubik 0.1.8.bz2                      (Martin - 344/344)
GChroot 0.0.53.bz2                      (GPrimeriso1 - 162/162)
GNUBoxWorld 1.0.0.bz2                  (Example - 246/246)
GPI-X11TaskbarExample 0.1.0.bz2        (GambasPI - 180/180)
GWI_Clock 0.1.0.bz2                    (InnovaDesktop - 86/86)
GamBreak 0.1.3.bz2                     (Shane - 123/123)
GamInvadeV2 0.1.1.bz2                  (Shane - 97/97)
GambasGears 3.8.90.bz2                  (Princeton - 346/346)
GambasTester 0.9.49.bz2                 (Jussi - 115/115)
GambasTestercmd 0.9.49.bz2              (Jussi - 79/79)
GameOfLife 1.0.0.bz2                   (Example - 257/257)
GentlemanBrowser 0.1.0.bz2             (FelipeReyes - 22/22)
Governors_GUI 1.0.3.bz2                (Ozymandias - 25/25)
GradientProgressBar 0.1.1.bz2          (Dmitry-Kleeshen - 378/378)
GraphFloodfill 0.2.1.bz2               (Gambas-Buch - 170/170)
Graphviz 0.1.5.bz2                     (Gambas-Buch - 95/95)
GuitarTuner 2.1.1.bz2                  (Henry - 75/75)
HTTPGet 1.0.0.bz2                      (Example - 447/447)
HTTPPost 1.0.0.bz2                     (Example - 366/366)
Hashrat_Gui 0.9.14.bz2                  (Ozymandias - 21/24)
Hashrat_Gui 1.0.6.bz2                  (Ozymandias - 3/24)
HighlightEditor 1.0.0.bz2              (Example - 312/312)
IPTV 0.1.0.bz2                         (WebOss - 234/234)
Imenik 0.1.1.bz2                       (WebOss - 45/45)
InfoDataBaseSQL 0.1.81.bz2              (postapase - 299/299)
InfoDataBaseSQL 0.1.81.bz2              (programa00leo30 - 67/67)
Innova 0.1.3.bz2                       (InnovaDesktop - 494/494)
Innova_Panel 0.1.5.bz2                 (InnovaDesktop - 282/282)
Karvonen 1.0.2.bz2                     (Fhabrike - 40/40)
LCDClock 1.0.0.bz2                     (cogier - 112/112)
LCDLabel 1.0.0.bz2                     (Example - 608/608)
Lanzador 0.8.8.bz2                     (Kerberos - 37/37)
LinuxInfo 1.0.0.bz2                    (WebOSS - 20/20)
LoboMau 1.0.2.bz2                      (Tardis96 - 4/4)
Lupita 0.1.0.bz2                       (jsbsan - 30/30)
MP3Info 0.1.1.bz2                      (AJMSoftware - 6/23)
MP3Info 0.2.0.bz2                      (AJMSoftware - 17/23)
Md2Model 1.0.0.bz2                     (Example - 262/262)
MediaPlayer 1.0.0.bz2                  (Example - 1336/1336)
MenuExample 0.1.1.bz2                  (cogier - 224/224)
Metronome 2.1.1.bz2                    (Tux - 167/167)
MineGame 1.3.6.bz2                     (Torto - 633/633)
MineSweeper 1.0.0.bz2                  (Example - 327/327)
MineSweeper 1.0.0.bz2                  (inievam - 103/103)
Moka-VC 1.0.0.bz2                      (AreaDev - 69/69)
Mp3Player 1.0.3.bz2                    (Shane - 19/19)
NeHeTutorial 3.8.90.bz2                 (Gambas - 121/121)
NewProject 1.0.4.bz2                   (Phil - 79/79)
Novelister 0.1.6.bz2                   (HowToPhil - 42/42)
ObserverExample2 0.1.0.bz2             (postapase - 33/33)
OnOffSwitch 0.1.0.bz2                  (postapase - 12/12)
OpenAL 1.0.1.bz2                       (Eight_Virtues - 375/375)
Othello-2 1.0.0.bz2                    (UZI - 37/37)
PCInfo 0.1.0.bz2                       (InnovaDesktop - 164/1985)
PCInfo 0.2.0.bz2                       (InnovaDesktop - 83/1985)
PCInfo 0.3.0.bz2                       (InnovaDesktop - 366/1985)
PCInfo 0.4.0.bz2                       (InnovaDesktop - 411/1985)
PCInfo 0.5.11.bz2                       (InnovaDesktop - 961/1985)
PCInfo_Web 0.5.9.bz2                   (InnovaDesktop - 106/106)
PCStats 0.3.0.bz2                      (cogier - 147/147)
PDFEncrypt 2.1.0.bz2                   (WG - 23/23)
PManager 1.1.6.bz2                     (Henry - 48/48)
PROYECTOFOTO 1.1.1.bz2                 (JoseRene - 9/9)
PaintRotate 0.1.0.bz2                  (postapase - 9/9)
Painting 1.0.0.bz2                     (Example - 338/338)
PhotoTouch 1.0.0.bz2                   (Example - 570/570)
PhpWeathermapEditor 0.9.0.bz2          (OlivierCruilles - 72/72)
PiCam 0.2.6.bz2                        (cogier - 79/79)
Piano 0.1.1.bz2                        (cogier - 191/191)
PictureDatabase 3.0.90.bz2              (Princeton - 676/676)
Pinger 0.1.0.bz2                       (cogier - 39/39)
Plinx 1.1.2.bz2                        (DmitryKlisheen - 132/132)
Plugins 0.1.0.bz2                      (Gambas-Buch - 90/302)
Plugins 0.3.0.bz2                      (Gambas-Buch - 212/302)
Pong 0.1.0.bz2                         (cogier - 34/34)
PrintSuite2 1.0.0.bz2                  (LollixSoftwareHouse - 56/56)
Printing 1.0.0.bz2                     (Example - 588/588)
ProCookTimer 1.0.0.bz2                 (cogier - 82/82)
Programador_Horario 1.0.1.bz2          (Rolf - 31/31)
Programing_helper_en 0.1.1.bz2         (ilo - 123/123)
ProgressBarText 3.4.2.bz2              (didier18 - 153/153)
ProgressBarTray 2.1.24.bz2              (didier18 - 27/27)
ProgressBarTray 2.1.9.bz2              (ddier18 - 29/29)
QRCreator 1.2.0.bz2                    (cogier - 195/195)
QuasiRegular 1.0.0.bz2                 (Example - 103/103)
Qview 1.0.0.bz2                        (AreaDev - 30/30)
RamDrive 0.9.13.bz2                     (Ozymandias - 17/123)
RamDrive 1.0.0.bz2                     (Ozymandias - 18/123)
RamDrive 1.2.2.bz2                     (Ozymandias - 27/123)
RamDrive 1.3.6.bz2                     (Ozymandias - 32/123)
RamDrive 1.5.0.bz2                     (Ozymandias - 29/123)
RandomColorSort 1.0.0.bz2              (Example - 136/136)
Registro 0.1.1.bz2                     (postapase - 136/136)
ReportExample 3.6.90.bz2                (Example - 739/739)
ReportTextArea 0.1.0.bz2               (Postapase - 310/310)
SDLClicker 0.1.2.bz2                   (Shane - 6/6)
SearchBrowser2 1.3.5.bz2               (smso - 157/157)
ServerSocket 1.0.0.bz2                 (Example - 587/587)
ServerSocket 1.0.0.bz2                 (Exampled - 42/42)
SimpleEval 0.1.1.bz2                   (gambix - 96/296)
SimpleEval 0.2.0.bz2                   (gambix - 200/296)
SliderFont 0.1.2.bz2                   (ShordiSoft - 11/11)
SmallWiki 1.0.1.bz2                    (Example - 505/505)
Speedtest_Gui 0.9.6.bz2                (Ozymandias - 25/42)
Speedtest_Gui 1.0.4.bz2                (Ozymandias - 17/42)
SpiderSecureChat 0.9.20.bz2             (Westwood - 118/118)
SpritesGamberos 0.1.0.bz2              (postapase - 28/28)
Squares 0.1.1.bz2                      (HowToPhil - 140/140)
StockCalculator 1.0.0.bz2              (Mohamed_Hajjaj - 18/18)
TableEdit 0.1.2.bz2                    (Shordi - 129/129)
Tablet 1.0.0.bz2                       (Example - 140/140)
Taller_2015 0.1.8.bz2                  (postapase - 328/985)
Taller_2015 0.3.85.bz2                  (postapase - 657/985)
Tanteador 0.6.54.bz2                    (postapase - 92/92)
TareaCarnaval 1.0.1.bz2                (IrvinSantana - 32/32)
TarzanHorloge 2.8.1.bz2                (RCF - 32/32)
Temp_2_LCD 1.0.0.bz2                   (Ozymandias - 47/47)
Thermometre 0.1.1.bz2                  (didier18 - 348/348)
TunnelSDL 1.0.0.bz2                    (Example - 295/295)
UUCrypt 0.1.2.bz2                      (HowToPhil - 51/51)
Une 0.1.2.bz2                          (postapase - 20/20)
UnitySC_V0.7 0.7.0.bz2                 (JePe - 53/53)
UpdocSystem_V10 10.0.0.bz2             (Goranflo - 13/13)
UsoDeFuncionExterna 0.1.0.bz2          (postapase - 47/47)
Util 1.0.52.bz2                         (Dane - 70/70)
UtilD 1.0.52.bz2                        (Dane - 39/39)
VerticalProgressBar 0.1.1.bz2          (Moviga - 43/133)
VerticalProgressBar 0.2.0.bz2          (Moviga - 90/133)
VerySimpleVideoPlayer 0.1.0.bz2        (Example - 293/293)
VerySimpleVideoPlayer 0.2.1.bz2        (cogier - 162/162)
VideoPlayer 0.1.3.bz2                  (cogier - 237/237)
VirtualDVD 0.1.4.bz2                   (DemosthenesKoptsis - 145/145)
VisorRV1960 0.6.321.bz2                  (postapase - 111/111)
WatchGambasDirectory 3.8.90.bz2         (Gambas-Buch - 143/143)
WebBrowser 1.0.3.bz2                   (Example - 1031/1031)
ZeitSicherungen 1.0.0.bz2              (cd-bahia - 30/30)
api_ruteros 0.1.1.bz2                  (LeandroMorala - 35/35)
avisaMail 0.4.2.bz2                    (shordi - 86/86)
ayudame 0.1.0.bz2                      (Postapase - 124/124)
bilhar 0.1.1.bz2                       (DiogoSantos - 44/44)
bitch 1.1.3.bz2                        (senju - 62/62)
bluedemonvirus 0.1.0.bz2               (aztk - 44/44)
cleanup_Gambas3_recent_list 0.3.3.bz2  (smso - 66/66)
comisat-gc 0.5.32.bz2                   (comisatGamesCollection - 3/3)
dblist 1.1.1.bz2                       (levingtinoco - 80/80)
define 3.9.11.bz2                       (ViSys - 86/86)
dnes-gui 1.0.2.bz2                     (MarcioEsper - 92/92)
doubleeditor 1.0.1.bz2                 (Miao-You - 59/59)
eSpeakGUI 0.1.0.bz2                    (cogier - 330/330)
fbcolor 0.1.4.bz2                      (postapase - 73/73)
findfocus 0.1.0.bz2                    (Deganius - 158/158)
fontname 0.1.2.bz2                     (postapase - 53/53)
gambas-captcha 1.0.17.bz2               (Gambas - 116/116)
gambas-extra-functions 0.1.0.bz2       (belmotek - 41/41)
gardenmanager 0.1.0.bz2                (brichman - 57/57)
gb.PiconZero 1.0.0.bz2                 (MatthewCollins - 7/29)
gb.PiconZero 1.1.0.bz2                 (MatthewCollins - 22/29)
gb.deg.form 3.9.37.bz2                  (gb - 138/138)
gb.deg.unittest 3.9.10.bz2              (gb - 41/41)
gb.pushbutton 0.1.0.bz2                (InnovaDesktop - 48/48)
gb.snmpclient 0.1.13.bz2                (OlivierCruilles - 39/39)
gb.sshFS 0.3.3.bz2                     (smso - 167/167)
gb.sshclient 1.1.5.bz2                 (OlivierCruilles - 121/121)
gbBugTracker3 3.0.38.bz2                (OlivierCruilles - 98/98)
gbCalc 0.1.0.bz2                       (InnovaDesktop - 35/35)
gbCalculator 0.1.0.bz2                 (cogier - 470/470)
gbClock 0.2.0.bz2                      (InnovaDesktop - 432/432)
gbDocEditor 0.9.11.bz2                  (OlivierCruilles - 332/332)
gbLauncher 0.1.12.bz2                   (shordi - 48/48)
gbRoadBookMoto 0.8.0.bz2               (OlivierCruilles - 54/54)
gbSvnCheckVersion 3.1.3.bz2            (OlivierCruilles - 15/15)
gbTerminal 0.1.6.bz2                   (InnovaDesktop - 790/790)
gbWeather 0.1.12.bz2                    (AJMSoftware - 39/39)
geiv 0.1.1.bz2                         (Gambas-Buch - 67/67)
generadorcarnet 0.0.51.bz2              (jsbsan - 551/551)
gplanet 0.1.2.bz2                      (jsbsan - 93/93)
group 0.1.0.bz2                        (cogier - 58/58)
haramaru-radio-player 42.1.4.bz2       (Integrated Data Thought Entity - 280/280)
helptranslator 0.0.6.bz2               (Jsbsan - 129/129)
helptranslator 0.1.11.bz2               (jsbsan - 87/87)
higgins 0.5.0.bz2                      (kokoko3k - 67/141)
higgins 0.7.390.bz2                      (kokoko3k - 74/141)
htEditor 1.0.14.bz2                     (shordi - 150/150)
iloSerialPort 0.1.2.bz2                (ilo - 248/248)
jackadd 0.1.1.bz2                      (COBRASoft - 77/77)
konvertilo 0.1.0.bz2                   (Belmotek - 5/5)
lmars 0.1.0.bz2                        (CamEra - 68/68)
miApp 5.0.1.bz2                        (Ronald - 38/38)
miPrimerPrograma 1.0.2.bz2             (juanpablo - 18/18)
mismarcadores 0.1.2.bz2                (jsbsan - 37/37)
nagato-map 0.11.4.bz2                  (Integrated Data Thought Entity - 228/228)
nagato-taskmanager 42.1.3.bz2          (Integrated Data Thought Entity - 189/189)
nagato-wallpaper 0.12.2.bz2            (Integrated Data Thought Entity - 108/108)
nagato-weather 42.1.4.bz2              (Integrated Data Thought Entity - 65/65)
nagato-writer 42.1.9.bz2               (Integrated Data Thought Entity - 352/352)
nozomi-dev 0.1.1.bz2                   (nozomichan-factory - 77/77)
observadorBoton 0.1.0.bz2              (postapase - 51/51)
pageGrid 0.1.1.bz2                     (Shordi - 25/25)
paginateGridView 1.0.1.bz2             (UZI - 58/58)
pikyaz 0.1.238.bz2                       (AbdurrahmanUlusoy - 8/8)
pikyaz 0.1.250.bz2                       (abdurrahmanulusoy - 3/3)
pintaScreen 0.0.63.bz2                  (Jsbsan - 447/447)
piramide_avec_modules 1.0.1.bz2        (froidevaux - 39/39)
pyrit_gui 1.0.2.bz2                    (Kerberos - 56/56)
pyrit_gui_v2 2.0.18.bz2                 (Ozymandias - 35/35)
researcher 1.0.0.bz2                   (Mohamed_Haggag - 40/40)
sbSizeFont 0.1.4.bz2                   (postapase - 10/10)
settings 1.0.0.bz2                     (cogier - 46/46)
solanum 0.1.0.bz2                      (Belmotek - 10/10)
splash 0.1.0.bz2                       (cogier - 98/98)
test 0.1.1.bz2                         (test - 43/43)
tradukisto 0.1.0.bz2                   (belmotek - 6/6)
tres 0.0.3.bz2                         (jsbsan - 245/245)
uniIR3 0.1.6.bz2                       (ilo - 44/44)
vinilo 0.1.0.bz2                       (belmotek - 7/7)
vrecentfilesd 0.1.9.bz2                (paddys-hill - 174/174)
wGridFilterSample 0.1.1.bz2            (Shordi - 13/13)
waiter 0.1.1.bz2                       (shordi - 47/47)
wolfsorter3-beta 2.9.2.bz2             (Octavio M.P. - 42/42)
wordWrapGrid 0.1.2.bz2                 (Shordi - 73/73)
xkcd-reader 0.2.1.bz2                  (Integrated Data Thought Entity - 130/130)
xt7-player-mpv 0.12.381.bz2              (AntonioOrefice - 112/672)
xt7-player-mpv 0.20.390.bz2              (AntonioOrefice - 143/672)
xt7-player-mpv 0.8.3371.bz2               (AntonioOrefice - 417/672)

Mega:  goo.gl/za7ydP

Dropbox:  goo.gl/3GbG5v

Contraseña:  postapase

miércoles, 1 de febrero de 2017

Garden Manager (reacondicionado para continuarlo)




A raiz de este hilo en el foro gambas-es
https://www.gambas-es.org/viewtopic.php?f=20&t=6164

encontre en sourceforge este código de gambas2 muy viejo y con los archivos sueltos.
El Programa se llama Garden Manager  by brichman
https://sourceforge.net/projects/gardenmanager/

los baje uno por uno, y acondicione el código para poderlo cargar en la ide de gambas actual.
Después de sortear varios problemas pude ver el código, usando el archivo.sql cree la base de datos y pude ver el funcionamiento del programa.
Aquí les dejo el codigo fuente por si les interesa usarlo, modificarlo o mejorarlo o simplemente que les inspire ideas jaja.


Nota: para que funcione el programa copien la base de datos que esta en datos del proyecto en user.home

Descargar Garden Manager acondicionado by postapase para versión 3.9.2 de gambas

jueves, 19 de enero de 2017

Control FontName by postapase


Control pensado para seleccionar tipo de fuente rapidamente y comodamente, con la opción de poner fuente predeterminada con un solo clic.

parte gráfica del control (ffontname) formulario

' gambas class file

'by postapase 18 de enero 2017
'http://novatocodegambas.blogspot.com.uy/
'control FontName

Event Reset
Event Seleccion
Event Enter

Public Sub Form_Open()

End

Public Sub btnFontDefault_Click()

Raise Reset

End

Public Sub cbxNombreFuentes_Click()

Raise Seleccion

End

Public Sub btnFontDefault_Enter()

Raise Enter

End



clase fontname

' gambas class file

'by postapase 18 de enero 2017
'http://novatocodegambas.blogspot.com.uy/
'control FontName

Export

Inherits UserControl

Public Const _Properties As String = "*,Predeterminada,Seleccionada,Index"
Public Const _DefaultEvent As String = "Seleccion"
Public Const _DefaultSize As String = "32,4"
Public Const _Group As String = "Chooser"

Event Seleccion
Event Reseteo ''Selecciona la fuente predeterminada de la aplicación

Property Predeterminada As String
Property Seleccionada As String
Property Index As Integer

Private $xfontname As Ffontname
Private $Predeterminada As String
Private $Seleccionada As String
Private $Index As Integer
Private $ListaFuentes As New String[]

Public Sub _new()

$xfontname = New Ffontname(Me) As "Ev"
$Predeterminada = Application.Font.Name
$Seleccionada = $Predeterminada
Me.Proxy = $xfontname.cbxNombreFuentes
ActualizarFuentes()

End

Public Sub Ev_Reset()

Reinicio()

Raise Reseteo

End

Public Sub Ev_Seleccion()

$Seleccionada = $xfontname.cbxNombreFuentes.Current.Text
$Index = $xfontname.cbxNombreFuentes.Index

Raise Seleccion

End

Public Sub EV_Enter()

$xfontname.btnFontDefault.Tooltip = "Seleccionar fuente predeterminada [ " & $Predeterminada & " ]"

End

Public Sub ActualizarFuentes()

Dim NombreFuente As String

For Each NombreFuente In Fonts
$ListaFuentes.Add(NombreFuente)
Next

$xfontname.cbxNombreFuentes.List = $ListaFuentes
$xfontname.cbxNombreFuentes.Add($Predeterminada, 0)

End

Private Function Predeterminada_Read() As String

Return $Predeterminada

End

Private Sub Predeterminada_Write(Value As String)

$Predeterminada = Value

End

Private Function Seleccionada_Read() As String

Return $Seleccionada

End

Private Sub Seleccionada_Write(Value As String)

$Seleccionada = Value

End

Private Function Index_Read() As Integer

Return $Index

End

Private Sub Index_Write(Value As Integer)

$Index = Value
$xfontname.cbxNombreFuentes.Index = $Index

End

Public Sub Reinicio()

$xfontname.cbxNombreFuentes.Index = 0
$Index = 0

En


Saludos y espero sus opiniones.

Necesario estar registrado en  https://www.gambas-es.org/
Descargar 

Dropbox:  fontname-0.1.2.tar.gz