Not show control say on folder with res

Not show control say on folder with res

Postby Silvio.Falconi » Tue Aug 24, 2021 11:01 pm

If I load also the resouce not show the say object ( on windows 10 pro)

with resources
Image

without resources
Image

this is very very strange !!!!!


default.rc

Code: Select all  Expand view  RUN
#ifndef __64__
  1 24 "WinXP\WindowsXP.Manifest"
#else
  1 24 "WinXP\WindowsXP.Manifest64"
#endif


the test.prg
Code: Select all  Expand view  RUN
#include "FiveWin.ch"


Function test()
Local oDlg,oSay,oFolder,oFont

local ctext:=""

DEFINE FONT oFont NAME "MS Sans Serif" SIZE 0,-8
       oBold := oFont:Bold()
 DEFINE DIALOG oDlg SIZE 1130,650 PIXEL TRUEPIXEL ;
                        FONT oFont

       @  1, 0 FOLDEREX oFolder OF oDlg SIZE oDlg:nWidth-585,oDlg:nHeight-390 PIXEL  ;
        PROMPT "Prenotazioni"

       @ 2,  200 SAY oSay PROMPT cText SIZE 260,14 PIXEL OF oFolder:aDialogs[1] CENTER VCENTER FONT oBold
       oSay:SetColor( CLR_GREEN, CLR_GREEN )


                oDlg:bResized  := <||
                oRect                := oDlg:GetCliRect()
                oFolder:nWidth       := oRect:nRight-2
                     oFolder:nHeight      := oRect:nBottom-160
                  return nil
                            >



                            ACTIVATE DIALOG oDlg CENTERED  ;
                            ON INIT (  Eval(oDlg:bResized)   )
return nil



Any solution ?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7090
Joined: Thu Oct 18, 2012 7:17 pm

Re: Not show control say on folder with res

Postby nageswaragunupudi » Wed Aug 25, 2021 12:03 am

What is strange?
You set both text color and background color to GREEN.
How can you see any text?
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10690
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Not show control say on folder with res

Postby Silvio.Falconi » Wed Aug 25, 2021 7:05 am

nageswaragunupudi wrote:What is strange?
You set both text color and background color to GREEN.
How can you see any text?



I explain to you.
I add the text to make you understand where the error lies

local ctext:="gggggggggggggggggggggg"

if I compile the test.prg with the resource I don't see the string (say control) with the green background

If I compile the test WITHOUT the resource I see the string with the green background

But I need to compile with resources because I must insert bitmaps, How I can resolve ?

I try now also on Windows Seven ...same error



Image






Code: Select all  Expand view  RUN
#include "FiveWin.ch"


    Function test()
    local oDlg,oSay,oFolder,oFont
    local ctext:="gggggggggggggggggggggg"

    DEFINE FONT oFont NAME "MS Sans Serif" SIZE 0,-8
    oBold := oFont:Bold()


     DEFINE DIALOG oDlg SIZE 1130,650 PIXEL TRUEPIXEL ;
            FONT oFont

           @  1, 0 FOLDEREX oFolder OF oDlg SIZE oDlg:nWidth-585,oDlg:nHeight-390 PIXEL  ;
            PROMPT "TEST"



           @ 2,  200 SAY oSay PROMPT cText SIZE 260,14 PIXEL OF oFolder:aDialogs[1] CENTER VCENTER FONT oBold
           oSay:SetColor( CLR_WHITE, CLR_GREEN )


                    oDlg:bResized  := <||
                                     oRect                := oDlg:GetCliRect()
                                     oFolder:nWidth       := oRect:nRight-2
                                     oFolder:nHeight      := oRect:nBottom-160
                                     return nil
                                      >



   ACTIVATE DIALOG oDlg CENTERED  ;
   ON INIT (  Eval(oDlg:bResized)   )
   RETURN NIL

 
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7090
Joined: Thu Oct 18, 2012 7:17 pm

Re: Not show control say on folder with res

Postby TimStone » Thu Aug 26, 2021 6:02 pm

I'm confused. You say you have a problem with a dialog defined in a resource and yet I see no code for a resource.

Can you please clarify ? All of my "forms" are created in a .rc file and I use SAY on folders with no problem. I'd be happy to help, but I only see the code build, not the .rc code.
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2950
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: Not show control say on folder with res

Postby Silvio.Falconi » Thu Aug 26, 2021 6:50 pm

TimStone wrote:I'm confused. You say you have a problem with a dialog defined in a resource and yet I see no code for a resource.

Can you please clarify ? All of my "forms" are created in a .rc file and I use SAY on folders with no problem. I'd be happy to help, but I only see the code build, not the .rc code.



You understood well .
I have a dialog.
In this dialog I have a FolderEx (you can also use the normal folder)
in the folder in the first tab that is oFolder: adialogs [1] I inserted a simple say control of the type

Code: Select all  Expand view  RUN
@ 2,  200 SAY oSay PROMPT cText SIZE 260,14 PIXEL OF oFolder:aDialogs[1] CENTER VCENTER FONT oBold


at the time of compilation you have to add the theme win xp that you find in the fivewin sample folder

xplook.rc
Code: Select all  Expand view  RUN
#ifndef __64__
  1 24 "WinXP\WindowsXP.Manifest"
#else
  1 24 "WinXP\WindowsXP.Manifest64"
#endif


if you not use the xp look you 'll see the say control
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7090
Joined: Thu Oct 18, 2012 7:17 pm

Re: Not show control say on folder with res

Postby TimStone » Thu Aug 26, 2021 7:36 pm

When you said you were using a resource file, I understood that to mean you were building the dialog and folders in the .rc file.

Apparently you are only using the .rc to specify the manifest.

I simply include a manifest file in my application folder but don't really call it anywhere ( and it's not listed in my .rc file either ). I named it the same as my application, so if the application is Silvio.exe then I have Silvio.manifest in the same folder.

Since I use an .rc to define ALL of my screens, I'm sorry I can't assist here.
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2950
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: Not show control say on folder with res

Postby Silvio.Falconi » Thu Aug 26, 2021 10:13 pm

TimStone wrote:When you said you were using a resource file, I understood that to mean you were building the dialog and folders in the .rc file.

Apparently you are only using the .rc to specify the manifest.

I simply include a manifest file in my application folder but don't really call it anywhere ( and it's not listed in my .rc file either ). I named it the same as my application, so if the application is Silvio.exe then I have Silvio.manifest in the same folder.

Since I use an .rc to define ALL of my screens, I'm sorry I can't assist here.



ok but have you tried to compile my test with a resources?

anyway I tried to make an exe and then I entered the manifest
original.exe
original.manifest
as you can see here

Image

does not work
controls such as datepicks do not have a theme
Last edited by Silvio.Falconi on Thu Aug 26, 2021 10:29 pm, edited 1 time in total.
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7090
Joined: Thu Oct 18, 2012 7:17 pm

Re: Not show control say on folder with res

Postby TimStone » Thu Aug 26, 2021 10:26 pm

Silvio,

No, I don't have the time to do that. Although I'm "semi-retired", I have a very challenging time just completing all the work that I must do in a day. In the time that I do have available, I'm working on adding SQL capabilities to my primary program, and that is a big learning curve. I want to do that while leaving my current .dbf and .adt options in place, so I assume I will be updating my data objects to accomplish that task.

Of course that will be in between attending my grandkids soccer ( fotbal ) games. They are very competitive and great fun.

Tim
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2950
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: Not show control say on folder with res

Postby nageswaragunupudi » Fri Aug 27, 2021 8:15 am

Change this line of code
Code: Select all  Expand view  RUN
     oSay:SetColor( CLR_GREEN, CLR_GREEN )
 


as

Code: Select all  Expand view  RUN
     oSay:SetColor( CLR_WHITE, CLR_GREEN )
 
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10690
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Not show control say on folder with res

Postby Silvio.Falconi » Fri Aug 27, 2021 8:44 am

nageswaragunupudi wrote:Change this line of code
Code: Select all  Expand view  RUN
     oSay:SetColor( CLR_GREEN, CLR_GREEN )
 


as

Code: Select all  Expand view  RUN
     oSay:SetColor( CLR_WHITE, CLR_GREEN )
 


allready made not run

see the last code test
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7090
Joined: Thu Oct 18, 2012 7:17 pm

Re: Not show control say on folder with res

Postby nageswaragunupudi » Fri Aug 27, 2021 11:21 am

Mr. Silivio

You are right.
On themed applications, Says on folder / folderex dialogs are always displayed with White back-color and we are not able to change it.
Looks like it is Windows behavior. Anyway we will look into this in greater detail.

For now you may use some foreground color on CLR_WHITE. eg: CLR_BLACK,CLR_WHITE etc.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10690
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Not show control say on folder with res

Postby Silvio.Falconi » Sun Aug 29, 2021 10:46 pm

nageswaragunupudi wrote:Mr. Silivio

You are right.
On themed applications, Says on folder / folderex dialogs are always displayed with White back-color and we are not able to change it.
Looks like it is Windows behavior. Anyway we will look into this in greater detail.

For now you may use some foreground color on CLR_WHITE. eg: CLR_BLACK,CLR_WHITE etc.


Nages,
For now I have solved it by inserting a panel control in the folder and in this the say control
But I hope you solve the problem
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7090
Joined: Thu Oct 18, 2012 7:17 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 74 guests