AlphaBitmap no carga desde Recursos FWH-12.07

AlphaBitmap no carga desde Recursos FWH-12.07

Postby Cgallegoa » Thu Aug 23, 2012 6:19 pm

Hola Antonio,

La versión FWH-12.07 no carga los AlphaBitmap sí éstos están incorporador en archivo RC (Compilados a Res con PellesC o WorkShop) y además se está usando una DLL con otros recursos tales como ventanas.

Adjunto ejemplo:
Code: Select all  Expand view
#include "fivewin.ch"

Function Inicio()
   SET RESOURCES TO "PRUEBA.DLL"   // *** Si se quita la DLL funciona ??????? ***
   AcercaDe("Prueba001","versión 001")
Return(NIL)


Procedure AcercaDe(cAplica,cVersion)
   LOCAL oDlg, oBmp
   DEFINE DIALOG oDlg FROM 0,0 TO 200,327 PIXEL STYLE nOR( WS_POPUP, WS_THICKFRAME,4) //  TRANSPARENT
      DEFINE BITMAP oBmp OF oDlg RESOURCE "Android"
      @ 81,62 BUTTON "OK" OF oDlg ACTION oDlg:End() PIXEL SIZE 40,12
   ACTIVATE DIALOG oDlg CENTERED ON PAINT ABPaint(hDC,100,10, oBmp:hBitmap, 255 )
Return 

Prueba1.RC
Code: Select all  Expand view
#include <windows.h>
#include <commctrl.h>
#include <richedit.h>

ANDROID BITMAP "C:\FWH\BITMAPS\ALPHABMP\Android.bmp"
1 MANIFEST "themed.manifest"
 

Esto ha funcionado SIEMPRE sin ningún problema. Ahora, con la FWH-12.07 toca obligatoriamente incluírlos en la DLL. Si no usas la DLL te carga bien. Hay algún conflicto que los anula cuando están en RES y usas DLL. Por favor puedes revisar ?

Aquí el código completo, incluída la DLL : http://www.mastersoft3000.com/publico/fivewin/fwh-12.07-fail01.zip
Saludos,

Carlos Gallego

*** FWH-23.10, xHarbour 1.2.3 Build 20190603, Borland C++7.30, PellesC ***
Cgallegoa
 
Posts: 414
Joined: Sun Oct 16, 2005 3:32 am
Location: Quito - Ecuador

Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 94 guests