FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Help about Combobox, bitmap, resource
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Help about Combobox, bitmap, resource
Posted: Sun Feb 14, 2021 04:40 PM
Hi,

I have command like that.
Code (fw): Select all Collapse
    @ 198,55 COMBOBOX oRenkKodu Var xBG_Renk Of oDlg Pixel;
                        ITEMS {"   Beyaz", "   Mavi", "   Rosso", "   Sarı", "   Yeşil", "   Kırmızı"} SIZE 100,12 ;
                        BITMAPS {oApp:cDir16x16 + "sWhite.bmp",;
                oApp:cDir16x16 + "sBlue.bmp",;
                oApp:cDir16x16 + "sRosso.bmp",;
                oApp:cDir16x16 + "sYellow.bmp",;
                oApp:cDir16x16 + "sGreen.bmp",;
                oApp:cDir16x16 + "sRed.bmp" }

This command is ok. no problem.

I convert bmp files to resource.
Code (fw): Select all Collapse
Bmp_sBlue       BITMAP "Res\\sblue.bmp"
Bmp_sGreen  BITMAP "Res\\sgreen.bmp"
Bmp_sRed        BITMAP "Res\\sred.bmp"
Bmp_sRosso  BITMAP "Res\\srosso.bmp"
Bmp_sWhite  BITMAP "Res\\swhite.bmp"
Bmp_sYellow BITMAP "Res\\syellow.bmp"


Code (fw): Select all Collapse
    @ 198,55 COMBOBOX oRenkKodu Var xBG_Renk Of oDlg Pixel;
                        ITEMS {"   Beyaz", "   Mavi", "   Rosso", "   Sarı", "   Yeşil", "   Kırmızı"} SIZE 100,12 ;
                        BITMAPS { "Bmp_sWhite", "Bmp_sBlue", "Bmp_sRosso", "Bmp_sYellow", "Bmp_sGreen", "Bmp_sRed"  }


This command does not run properly. Every line is white.

Is it normal?
Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Help about Combobox, bitmap, resource
Posted: Mon Feb 15, 2021 06:40 AM

Resources also work well.

Please check your rc file for the minimum requirements.
Keep all names in UPPERCASE.
Check the paths of the bitmaps

Regards



G. N. Rao.

Hyderabad, India
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: Help about Combobox, bitmap, resource
Posted: Mon Feb 15, 2021 04:25 PM

Thank you Mr. Rao,

Is there any resulotion restrictions for bitmaps? My bmp is 100x20 pixels.

Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Help about Combobox, bitmap, resource
Posted: Tue Feb 16, 2021 04:19 AM

No

Regards



G. N. Rao.

Hyderabad, India

Continue the discussion