HMG4: image icon resource file
Moderator: Rathinagiri
- Rathinagiri
- Posts: 5471
- Joined: Tue Jul 29, 2008 6:30 pm
- DBs Used: MariaDB, SQLite, SQLCipher and MySQL
- Location: Sivakasi, India
- Contact:
Re: HMG4: image icon resource file
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.
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.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
South or North HMG is worth.
...the possibilities are endless.
- Rathinagiri
- Posts: 5471
- Joined: Tue Jul 29, 2008 6:30 pm
- DBs Used: MariaDB, SQLite, SQLCipher and MySQL
- Location: Sivakasi, India
- Contact:
Re: HMG4: image icon resource file
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.
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.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
South or North HMG is worth.
...the possibilities are endless.
Re: HMG4: image icon resource file
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
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
Luigi from Italy
www.L3W.it
www.L3W.it
- Rathinagiri
- Posts: 5471
- Joined: Tue Jul 29, 2008 6:30 pm
- DBs Used: MariaDB, SQLite, SQLCipher and MySQL
- Location: Sivakasi, India
- Contact:
Re: HMG4: image icon resource file
Hi Luigi,
I had already updated in SF repository. Kindly update the source and see in samples/resource directory.
I had already updated in SF repository. Kindly update the source and see in samples/resource directory.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
South or North HMG is worth.
...the possibilities are endless.
Re: HMG4: image icon resource file
Hi Rethinagiri,
many thanks! I'll donwload.
Cheers
many thanks! I'll donwload.
Cheers
Luigi from Italy
www.L3W.it
www.L3W.it
Re: HMG4: image icon resource file
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
In this way I can use SET RESOURCE TO "CUSIMAGE"
What do You think?
B) about resource class
I've added a simple test to check if function exist else my program crash.
What do You think?
Cheers
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> ) ;;
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
What do You think?
Cheers
Luigi from Italy
www.L3W.it
www.L3W.it
Re: HMG4: image icon resource file
I'm sorry..
about B) the test inside "METHOD New CLASS RESOURCE" but I can't enter all the code.
Cheers
about B) the test inside "METHOD New CLASS RESOURCE" but I can't enter all the code.
Cheers
Luigi from Italy
www.L3W.it
www.L3W.it
Re: HMG4: image icon resource file
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
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
- Attachments
-
- resource.zip
- resource.prg
- (578 Bytes) Downloaded 192 times
Luigi from Italy
www.L3W.it
www.L3W.it
- Rathinagiri
- Posts: 5471
- Joined: Tue Jul 29, 2008 6:30 pm
- DBs Used: MariaDB, SQLite, SQLCipher and MySQL
- Location: Sivakasi, India
- Contact:
Re: HMG4: image icon resource file
That's great man!
I think you can commit by yourself!
I think you can commit by yourself!
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
South or North HMG is worth.
...the possibilities are endless.
Re: HMG4: image icon resource file
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
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
Luigi from Italy
www.L3W.it
www.L3W.it