Page 2 of 4
Re: HMG4: image icon resource file
Posted: Sat Feb 26, 2011 5:05 am
by Rathinagiri
Excellent find Luigi!
Congratulations.
This we should have seen from "harbour\contrib\hbqt\test\testres.qrc"
I see that, we don't require ":/resource" as the second parameter for registerResource_1()
Now, we can introduce a command "set resource to xxxxx" to register the resource files.
Re: HMG4: image icon resource file
Posted: Sat Feb 26, 2011 6:54 am
by Rathinagiri
Hi Luigi,
I had a simple implementation of what you have suggested by the latest commit. If the .qrc file is in the name of the executable filename, we need not specify registerResource() inside main.
Kindly update and check it up.
Re: HMG4: image icon resource file
Posted: Sat Feb 26, 2011 12:00 pm
by l3whmg
Hi Rathinagiri,
this a good news
and "SET REGISTER" command it's a good
Now I do other tests: I would pretend to be a consumer and try to use HMG4
For the future, how can I proceed with these implementation inside developer's team?
1) SetWindowIcon inside window.prg
2) Problem about Statusbar
3) (after test) about icons/image
In other words, you can update SF ripository or I'll do these update?
Cheers
Re: HMG4: image icon resource file
Posted: Sat Feb 26, 2011 1:21 pm
by Rathinagiri
Hi Luigi,
I had already updated in SF repository. Kindly update the source and see in samples/resource directory.
Re: HMG4: image icon resource file
Posted: Sat Feb 26, 2011 2:16 pm
by l3whmg
Hi Rethinagiri,
many thanks! I'll donwload.
Cheers
Re: HMG4: image icon resource file
Posted: Sat Feb 26, 2011 3:54 pm
by l3whmg
Hi Rathinagiri,
I hope I can enter this post replay for the 4 time
I check your code but I have some problems:
A) about "SET RESOURCE TO " I've done this change
Code: Select all
:RegisterResource( <cResource> ) ;;
In this way I can use SET RESOURCE TO "CUSIMAGE"
What do You think?
B) about resource class
Code: Select all
IF TYPE( cResFileName ) == "UI"
::s_qRes:registerResource_1( &cResFileName )
aadd( ::s_aResources, cResFileName )
ENDIF
I've added a simple test to check if function exist else my program crash.
What do You think?
Cheers
Re: HMG4: image icon resource file
Posted: Sat Feb 26, 2011 3:58 pm
by l3whmg
I'm sorry..
about B) the test inside "METHOD New CLASS RESOURCE" but I can't enter all the code.
Cheers
Re: HMG4: image icon resource file
Posted: Sat Feb 26, 2011 4:42 pm
by l3whmg
Hi Rathinagiri,
I've included revised code resource.prg. I've applied my test in all register...function. I've used Harbour function to find program name. I rewrite code in according with HMG4 rules.
I hope it gives you pleasure.
Cheers
Re: HMG4: image icon resource file
Posted: Sat Feb 26, 2011 4:44 pm
by Rathinagiri
That's great man!
I think you can commit by yourself!
Re: HMG4: image icon resource file
Posted: Sat Feb 26, 2011 4:53 pm
by l3whmg
Hi Rathinagiri,
your comment are welcom!
Well, If I can I try to apply ONLY changes about resource.prg and hmg.ch.
I write this because it's the first time for me with SVN...
Can I do?
Cheers