Page 1 of 1

Botones con bitmaps en los diálogos (solucionado)

Posted: Fri Aug 15, 2014 9:57 am
by Antonio Linares
Necesitamos ayuda para descubrir por que los botones con bitmaps en todos los diálogos se ven mal

Cristobal, Manuel, Daniel, todos, ayuda! :-)

Re: Botones con bitmaps en los diálogos

Posted: Fri Aug 15, 2014 10:39 am
by cnavarro
Antonio
El problema está en el fichero Vrd.rc, porque los botones están definidos con "prompt"
PUSHBUTTON "...", 21, 236, 202, 14, 12, BS_CENTER, WS_EX_LEFT
Si eliminamos el prompt
PUSHBUTTON "", 21, 236, 202, 14, 12, BS_CENTER, WS_EX_LEFT
Se ven correctamente
Otra cosa son las transparencias
https://navarro_cristobal@bitbucket.org ... ort_n1.git

Re: Botones con bitmaps en los diálogos

Posted: Fri Aug 15, 2014 11:22 am
by Antonio Linares
Cristobal,

genial, muchisimas gracias! :-)

Si solucionamos la transparencia de esos bitmaps ya ni te cuento :-)

Re: Botones con bitmaps en los diálogos

Posted: Fri Aug 15, 2014 11:45 am
by cnavarro
En principio, aunque yo he modificado algun fondo de bitmap, añadiéndole la claúsula TRANSPARENT funciona bien
https://navarro_cristobal@bitbucket.org ... ort_n1.git

Re: Botones con bitmaps en los diálogos

Posted: Fri Aug 15, 2014 12:04 pm
by cnavarro
Estos son los que he encontrado
Searching for 'REDEFINE BTNBMP'...
C:\Git\easyreport_n1\source\ereport.prg(1196): REDEFINE BTNBMP ID 151 OF oDlg RESOURCE "OPEN" UPDATE ;
C:\Git\easyreport_n1\source\ereport.prg(2055): REDEFINE BTNBMP RESOURCE "SELECT" NOBORDER ID 301 OF oFld:aDialogs ACTION ( aColors[1 ] := Set3Color( aColorSay[1 ], aColors[1 ], nDefClr ), aColorGet[1 ]:Refresh() )
C:\Git\easyreport_n1\source\ereport.prg(2056): REDEFINE BTNBMP RESOURCE "SELECT" NOBORDER ID 302 OF oFld:aDialogs ACTION ( aColors[2 ] := Set3Color( aColorSay[2 ], aColors[2 ], nDefClr ), aColorGet[2 ]:Refresh() )
C:\Git\easyreport_n1\source\ereport.prg(2057): REDEFINE BTNBMP RESOURCE "SELECT" NOBORDER ID 303 OF oFld:aDialogs ACTION ( aColors[3 ] := Set3Color( aColorSay[3 ], aColors[3 ], nDefClr ), aColorGet[3 ]:Refresh() )
C:\Git\easyreport_n1\source\ereport.prg(2058): REDEFINE BTNBMP RESOURCE "SELECT" NOBORDER ID 304 OF oFld:aDialogs ACTION ( aColors[4 ] := Set3Color( aColorSay[4 ], aColors[4 ], nDefClr ), aColorGet[4 ]:Refresh() )
C:\Git\easyreport_n1\source\ereport.prg(2059): REDEFINE BTNBMP RESOURCE "SELECT" NOBORDER ID 305 OF oFld:aDialogs ACTION ( aColors[5 ] := Set3Color( aColorSay[5 ], aColors[5 ], nDefClr ), aColorGet[5 ]:Refresh() )
C:\Git\easyreport_n1\source\ereport.prg(2060): REDEFINE BTNBMP RESOURCE "SELECT" NOBORDER ID 306 OF oFld:aDialogs ACTION ( aColors[6 ] := Set3Color( aColorSay[6 ], aColors[6 ], nDefClr ), aColorGet[6 ]:Refresh() )
C:\Git\easyreport_n1\source\ereport.prg(2061): REDEFINE BTNBMP RESOURCE "SELECT" NOBORDER ID 307 OF oFld:aDialogs ACTION ( aColors[7 ] := Set3Color( aColorSay[7 ], aColors[7 ], nDefClr ), aColorGet[7 ]:Refresh() )
C:\Git\easyreport_n1\source\ereport.prg(2062): REDEFINE BTNBMP RESOURCE "SELECT" NOBORDER ID 308 OF oFld:aDialogs ACTION ( aColors[8 ] := Set3Color( aColorSay[8 ], aColors[8 ], nDefClr ), aColorGet[8 ]:Refresh() )
C:\Git\easyreport_n1\source\ereport.prg(2063): REDEFINE BTNBMP RESOURCE "SELECT" NOBORDER ID 309 OF oFld:aDialogs ACTION ( aColors[9 ] := Set3Color( aColorSay[9 ], aColors[9 ], nDefClr ), aColorGet[9 ]:Refresh() )
C:\Git\easyreport_n1\source\ereport.prg(2064): REDEFINE BTNBMP RESOURCE "SELECT" NOBORDER ID 310 OF oFld:aDialogs ACTION ( aColors[10] := Set3Color( aColorSay[10], aColors[10], nDefClr ), aColorGet[10]:Refresh() )
C:\Git\easyreport_n1\source\ereport.prg(2065): REDEFINE BTNBMP RESOURCE "SELECT" NOBORDER ID 311 OF oFld:aDialogs[i] ACTION ( aColors[11] := Set3Color( aColorSay[11], aColors[11], nDefClr ), aColorGet[11]:Refresh() )
C:\Git\easyreport_n1\source\ereport.prg(2066): REDEFINE BTNBMP RESOURCE "SELECT" NOBORDER ID 312 OF oFld:aDialogs[i] ACTION ( aColors[12] := Set3Color( aColorSay[12], aColors[12], nDefClr ), aColorGet[12]:Refresh() )
C:\Git\easyreport_n1\source\ereport.prg(2067): REDEFINE BTNBMP RESOURCE "SELECT" NOBORDER ID 313 OF oFld:aDialogs[i] ACTION ( aColors[13] := Set3Color( aColorSay[13], aColors[13], nDefClr ), aColorGet[13]:Refresh() )
C:\Git\easyreport_n1\source\ereport.prg(2068): REDEFINE BTNBMP RESOURCE "SELECT" NOBORDER ID 314 OF oFld:aDialogs[i] ACTION ( aColors[14] := Set3Color( aColorSay[14], aColors[14], nDefClr ), aColorGet[14]:Refresh() )
C:\Git\easyreport_n1\source\ereport.prg(2069): REDEFINE BTNBMP RESOURCE "SELECT" NOBORDER ID 315 OF oFld:aDialogs[i] ACTION ( aColors[15] := Set3Color( aColorSay[15], aColors[15], nDefClr ), aColorGet[15]:Refresh() )
C:\Git\easyreport_n1\source\ereport.prg(2070): REDEFINE BTNBMP RESOURCE "SELECT" NOBORDER ID 316 OF oFld:aDialogs[i] ACTION ( aColors[16] := Set3Color( aColorSay[16], aColors[16], nDefClr ), aColorGet[16]:Refresh() )
C:\Git\easyreport_n1\source\ereport.prg(2071): REDEFINE BTNBMP RESOURCE "SELECT" NOBORDER ID 317 OF oFld:aDialogs[i] ACTION ( aColors[17] := Set3Color( aColorSay[17], aColors[17], nDefClr ), aColorGet[17]:Refresh() )
C:\Git\easyreport_n1\source\ereport.prg(2072): REDEFINE BTNBMP RESOURCE "SELECT" NOBORDER ID 318 OF oFld:aDialogs[i] ACTION ( aColors[18] := Set3Color( aColorSay[18], aColors[18], nDefClr ), aColorGet[18]:Refresh() )
C:\Git\easyreport_n1\source\ereport.prg(2073): REDEFINE BTNBMP RESOURCE "SELECT" NOBORDER ID 319 OF oFld:aDialogs[i] ACTION ( aColors[19] := Set3Color( aColorSay[19], aColors[19], nDefClr ), aColorGet[19]:Refresh() )
C:\Git\easyreport_n1\source\ereport.prg(2074): REDEFINE BTNBMP RESOURCE "SELECT" NOBORDER ID 320 OF oFld:aDialogs[i] ACTION ( aColors[20] := Set3Color( aColorSay[20], aColors[20], nDefClr ), aColorGet[20]:Refresh() )
C:\Git\easyreport_n1\source\ereport.prg(2075): REDEFINE BTNBMP RESOURCE "SELECT" NOBORDER ID 321 OF oFld:aDialogs[i] ACTION ( aColors[21] := Set3Color( aColorSay[21], aColors[21], nDefClr ), aColorGet[21]:Refresh() )
C:\Git\easyreport_n1\source\ereport.prg(2076): REDEFINE BTNBMP RESOURCE "SELECT" NOBORDER ID 322 OF oFld:aDialogs[i] ACTION ( aColors[22] := Set3Color( aColorSay[22], aColors[22], nDefClr ), aColorGet[22]:Refresh() )
C:\Git\easyreport_n1\source\ereport.prg(2077): REDEFINE BTNBMP RESOURCE "SELECT" NOBORDER ID 323 OF oFld:aDialogs[i] ACTION ( aColors[23] := Set3Color( aColorSay[23], aColors[23], nDefClr ), aColorGet[23]:Refresh() )
C:\Git\easyreport_n1\source\ereport.prg(2078): REDEFINE BTNBMP RESOURCE "SELECT" NOBORDER ID 324 OF oFld:aDialogs[i] ACTION ( aColors[24] := Set3Color( aColorSay[24], aColors[24], nDefClr ), aColorGet[24]:Refresh() )
C:\Git\easyreport_n1\source\ereport.prg(2079): REDEFINE BTNBMP RESOURCE "SELECT" NOBORDER ID 325 OF oFld:aDialogs[i] ACTION ( aColors[25] := Set3Color( aColorSay[25], aColors[25], nDefClr ), aColorGet[25]:Refresh() )
C:\Git\easyreport_n1\source\ereport.prg(2080): REDEFINE BTNBMP RESOURCE "SELECT" NOBORDER ID 326 OF oFld:aDialogs[i] ACTION ( aColors[26] := Set3Color( aColorSay[26], aColors[26], nDefClr ), aColorGet[26]:Refresh() )
C:\Git\easyreport_n1\source\ereport.prg(2081): REDEFINE BTNBMP RESOURCE "SELECT" NOBORDER ID 327 OF oFld:aDialogs[i] ACTION ( aColors[27] := Set3Color( aColorSay[27], aColors[27], nDefClr ), aColorGet[27]:Refresh() )
C:\Git\easyreport_n1\source\ereport.prg(2082): REDEFINE BTNBMP RESOURCE "SELECT" NOBORDER ID 328 OF oFld:aDialogs[i] ACTION ( aColors[28] := Set3Color( aColorSay[28], aColors[28], nDefClr ), aColorGet[28]:Refresh() )
C:\Git\easyreport_n1\source\ereport.prg(2083): REDEFINE BTNBMP RESOURCE "SELECT" NOBORDER ID 329 OF oFld:aDialogs[i] ACTION ( aColors[29] := Set3Color( aColorSay[29], aColors[29], nDefClr ), aColorGet[29]:Refresh() )
C:\Git\easyreport_n1\source\ereport.prg(2084): REDEFINE BTNBMP RESOURCE "SELECT" NOBORDER ID 330 OF oFld:aDialogs[i] ACTION ( aColors[30] := Set3Color( aColorSay[30], aColors[30], nDefClr ), aColorGet[30]:Refresh() )
C:\Git\easyreport_n1\source\ereport.prg(3064): REDEFINE BTNBMP oBtn ID nID OF oDlg NOBORDER ;
C:\Git\easyreport_n1\source\erfile.prg(556): REDEFINE BTNBMP aBtn[1] ID 151 OF oFld:aDialogs[i] RESOURCE "B_OPEN" UPDATE ;
C:\Git\easyreport_n1\source\erfile.prg(564): REDEFINE BTNBMP aBtn[2] ID 152 OF oFld:aDialogs[i] RESOURCE "B_OPEN" UPDATE ;
C:\Git\easyreport_n1\source\eritems.prg(501): REDEFINE BTNBMP oBtn2 ID 154 OF oCurDlg NOBORDER RESOURCE "SELECT" ;
C:\Git\easyreport_n1\source\eritems.prg(551): REDEFINE BTNBMP RESOURCE "SELECT" NOBORDER ID 151 OF oCurDlg ;
C:\Git\easyreport_n1\source\eritems.prg(555): REDEFINE BTNBMP RESOURCE "SELECT" NOBORDER ID 152 OF oCurDlg ;
C:\Git\easyreport_n1\source\eritems.prg(559): REDEFINE BTNBMP RESOURCE "SELECT" NOBORDER ID 153 OF oCurDlg ;
C:\Git\easyreport_n1\source\eritems.prg(585): REDEFINE BTNBMP ID 111 OF oCurDlg NOBORDER RESOURCE "B_SAVE3" ;
C:\Git\easyreport_n1\source\eritems.prg(677): REDEFINE BTNBMP oBtn ID nID OF oCurDlg NOBORDER ;
C:\Git\easyreport_n1\source\eritems.prg(932): REDEFINE BTNBMP ID 150 OF oCurDlg RESOURCE "B_OPEN" NOBORDER WHEN oItem:nEdit <> 0 ;
C:\Git\easyreport_n1\source\eritems.prg(935): REDEFINE BTNBMP aBtn[2] ID 152 OF oCurDlg RESOURCE "SELECT" NOBORDER ;
C:\Git\easyreport_n1\source\eritems.prg(987): REDEFINE BTNBMP ID 111 OF oCurDlg NOBORDER RESOURCE "B_SAVE3" ;
C:\Git\easyreport_n1\source\eritems.prg(1169): REDEFINE BTNBMP ID 151 OF oCurDlg NOBORDER RESOURCE "SELECT" ;
C:\Git\easyreport_n1\source\eritems.prg(1174): REDEFINE BTNBMP ID 152 OF oCurDlg NOBORDER RESOURCE "SELECT" ;
C:\Git\easyreport_n1\source\eritems.prg(1207): REDEFINE BTNBMP ID 111 OF oCurDlg NOBORDER RESOURCE "B_SAVE3" ;
C:\Git\easyreport_n1\source\eritems.prg(1332): REDEFINE BTNBMP aBtn[2] ID 153 OF oCurDlg RESOURCE "SELECT" NOBORDER ;
C:\Git\easyreport_n1\source\eritems.prg(1407): REDEFINE BTNBMP ID 111 OF oCurDlg NOBORDER RESOURCE "B_SAVE3" ;
C:\Git\easyreport_n1\source\ertools.prg(402): REDEFINE BTNBMP ID 301 OF oDlg RESOURCE "B_OPEN" NOBORDER TOOLTIP GL("Open") ACTION GetDBase( oGenVar:aDBFile[ 1,1], aDBGet1[ 1], aDBGet2[ 1] )
C:\Git\easyreport_n1\source\ertools.prg(403): REDEFINE BTNBMP ID 302 OF oDlg RESOURCE "B_OPEN" NOBORDER TOOLTIP GL("Open") ACTION GetDBase( oGenVar:aDBFile[ 2,1], aDBGet1[ 2], aDBGet2[ 2] )
C:\Git\easyreport_n1\source\ertools.prg(404): REDEFINE BTNBMP ID 303 OF oDlg RESOURCE "B_OPEN" NOBORDER TOOLTIP GL("Open") ACTION GetDBase( oGenVar:aDBFile[ 3,1], aDBGet1[ 3], aDBGet2[ 3] )
C:\Git\easyreport_n1\source\ertools.prg(405): REDEFINE BTNBMP ID 304 OF oDlg RESOURCE "B_OPEN" NOBORDER TOOLTIP GL("Open") ACTION GetDBase( oGenVar:aDBFile[ 4,1], aDBGet1[ 4], aDBGet2[ 4] )
C:\Git\easyreport_n1\source\ertools.prg(406): REDEFINE BTNBMP ID 305 OF oDlg RESOURCE "B_OPEN" NOBORDER TOOLTIP GL("Open") ACTION GetDBase( oGenVar:aDBFile[ 5,1], aDBGet1[ 5], aDBGet2[ 5] )
C:\Git\easyreport_n1\source\ertools.prg(407): REDEFINE BTNBMP ID 306 OF oDlg RESOURCE "B_OPEN" NOBORDER TOOLTIP GL("Open") ACTION GetDBase( oGenVar:aDBFile[ 6,1], aDBGet1[ 6], aDBGet2[ 6] )
C:\Git\easyreport_n1\source\ertools.prg(408): REDEFINE BTNBMP ID 307 OF oDlg RESOURCE "B_OPEN" NOBORDER TOOLTIP GL("Open") ACTION GetDBase( oGenVar:aDBFile[ 7,1], aDBGet1[ 7], aDBGet2[ 7] )
C:\Git\easyreport_n1\source\ertools.prg(409): REDEFINE BTNBMP ID 308 OF oDlg RESOURCE "B_OPEN" NOBORDER TOOLTIP GL("Open") ACTION GetDBase( oGenVar:aDBFile[ 8,1], aDBGet1[ 8], aDBGet2[ 8] )
C:\Git\easyreport_n1\source\ertools.prg(410): REDEFINE BTNBMP ID 309 OF oDlg RESOURCE "B_OPEN" NOBORDER TOOLTIP GL("Open") ACTION GetDBase( oGenVar:aDBFile[ 9,1], aDBGet1[ 9], aDBGet2[ 9] )
C:\Git\easyreport_n1\source\ertools.prg(411): REDEFINE BTNBMP ID 310 OF oDlg RESOURCE "B_OPEN" NOBORDER TOOLTIP GL("Open") ACTION GetDBase( oGenVar:aDBFile[10,1], aDBGet1[10], aDBGet2[10] )
C:\Git\easyreport_n1\source\ertools.prg(412): REDEFINE BTNBMP ID 311 OF oDlg RESOURCE "B_OPEN" NOBORDER TOOLTIP GL("Open") ACTION GetDBase( oGenVar:aDBFile[11,1], aDBGet1[11], aDBGet2[11] )
C:\Git\easyreport_n1\source\ertools.prg(413): REDEFINE BTNBMP ID 312 OF oDlg RESOURCE "B_OPEN" NOBORDER TOOLTIP GL("Open") ACTION GetDBase( oGenVar:aDBFile[12,1], aDBGet1[12], aDBGet2[12] )
C:\Git\easyreport_n1\source\ertools.prg(415): REDEFINE BTNBMP ID 321 OF oDlg RESOURCE "B_DEL" NOBORDER TOOLTIP GL("Delete") ACTION DelDBase( aDBGet1[ 1], aDBGet2[ 1] )
C:\Git\easyreport_n1\source\ertools.prg(416): REDEFINE BTNBMP ID 322 OF oDlg RESOURCE "B_DEL" NOBORDER TOOLTIP GL("Delete") ACTION DelDBase( aDBGet1[ 2], aDBGet2[ 2] )
C:\Git\easyreport_n1\source\ertools.prg(417): REDEFINE BTNBMP ID 323 OF oDlg RESOURCE "B_DEL" NOBORDER TOOLTIP GL("Delete") ACTION DelDBase( aDBGet1[ 3], aDBGet2[ 3] )
C:\Git\easyreport_n1\source\ertools.prg(418): REDEFINE BTNBMP ID 324 OF oDlg RESOURCE "B_DEL" NOBORDER TOOLTIP GL("Delete") ACTION DelDBase( aDBGet1[ 4], aDBGet2[ 4] )
C:\Git\easyreport_n1\source\ertools.prg(419): REDEFINE BTNBMP ID 325 OF oDlg RESOURCE "B_DEL" NOBORDER TOOLTIP GL("Delete") ACTION DelDBase( aDBGet1[ 5], aDBGet2[ 5] )
C:\Git\easyreport_n1\source\ertools.prg(420): REDEFINE BTNBMP ID 326 OF oDlg RESOURCE "B_DEL" NOBORDER TOOLTIP GL("Delete") ACTION DelDBase( aDBGet1[ 6], aDBGet2[ 6] )
C:\Git\easyreport_n1\source\ertools.prg(421): REDEFINE BTNBMP ID 327 OF oDlg RESOURCE "B_DEL" NOBORDER TOOLTIP GL("Delete") ACTION DelDBase( aDBGet1[ 7], aDBGet2[ 7] )
C:\Git\easyreport_n1\source\ertools.prg(422): REDEFINE BTNBMP ID 328 OF oDlg RESOURCE "B_DEL" NOBORDER TOOLTIP GL("Delete") ACTION DelDBase( aDBGet1[ 8], aDBGet2[ 8] )
C:\Git\easyreport_n1\source\ertools.prg(423): REDEFINE BTNBMP ID 329 OF oDlg RESOURCE "B_DEL" NOBORDER TOOLTIP GL("Delete") ACTION DelDBase( aDBGet1[ 9], aDBGet2[ 9] )
C:\Git\easyreport_n1\source\ertools.prg(424): REDEFINE BTNBMP ID 330 OF oDlg RESOURCE "B_DEL" NOBORDER TOOLTIP GL("Delete") ACTION DelDBase( aDBGet1[10], aDBGet2[10] )
C:\Git\easyreport_n1\source\ertools.prg(425): REDEFINE BTNBMP ID 331 OF oDlg RESOURCE "B_DEL" NOBORDER TOOLTIP GL("Delete") ACTION DelDBase( aDBGet1[11], aDBGet2[11] )
C:\Git\easyreport_n1\source\ertools.prg(426): REDEFINE BTNBMP ID 332 OF oDlg RESOURCE "B_DEL" NOBORDER TOOLTIP GL("Delete") ACTION DelDBase( aDBGet1[12], aDBGet2[12] )
72 occurrences have been found.


Y he añadido la claúsula TRANSPARENT

https://navarro_cristobal@bitbucket.org ... ort_n1.git

Re: Botones con bitmaps en los diálogos

Posted: Fri Aug 15, 2014 12:20 pm
by Antonio Linares
Cristobal,

Les has añadido la claúsula TRANSPARENT a "mano" ?

Re: Botones con bitmaps en los diálogos

Posted: Fri Aug 15, 2014 12:23 pm
by cnavarro
Si

Re: Botones con bitmaps en los diálogos

Posted: Fri Aug 15, 2014 12:32 pm
by Antonio Linares
Cristobal,

Genial! Muchas gracias! :-)

Está quedando super bonito ;-)

Ahora siguiente objetivo:

Al pinchar un elemento, CtrlDrawFocus() no nos dibuja bien el marco. Tenemos que ver que le falla para dejarlo fino.

Gracias!!!!!!!!! :-)

Re: Botones con bitmaps en los diálogos

Posted: Fri Aug 15, 2014 12:34 pm
by Antonio Linares
Otra cosa que tenemos que localizar es donde pinta las rayas sobre la regla para hacer un SysRefresh() ó ver la forma de que no dejen "rastro" :-)

Re: Botones con bitmaps en los diálogos

Posted: Fri Aug 15, 2014 12:35 pm
by cnavarro
Las dimensiones de los GETs, Combo, tendrían que ser más altos para que se vean los bitmap y spinner correctamente, no?

Re: Botones con bitmaps en los diálogos

Posted: Fri Aug 15, 2014 12:41 pm
by cnavarro
Antonio, quizás fuese más adecuado crear un nuevo hilo para cada tema y poder editar los titulos de los que se vayan solucionando ("Solucionado")
De esta manera sería más fácil buscar los temas y ver los que quedan pendientes
No se qué te parece

Re: Botones con bitmaps en los diálogos

Posted: Fri Aug 15, 2014 12:44 pm
by Antonio Linares
Cristobal,

Totalmente de acuerdo, hagámoslo asi, gracias :-)

Re: Botones con bitmaps en los diálogos

Posted: Fri Aug 15, 2014 12:49 pm
by Antonio Linares
Cristobal,
cnavarro wrote:Las dimensiones de los GETs, Combo, tendrían que ser más altos para que se vean los bitmap y spinner correctamente, no?
No me habia fijado en esto, voy a mirar...