HMG4: image icon resource file

Moderator: Rathinagiri

User avatar
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

Post by Rathinagiri »

Excellent find Luigi! :idea:

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.
User avatar
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

Post 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.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
l3whmg
Posts: 694
Joined: Mon Feb 23, 2009 8:46 pm
Location: Italy
Contact:

Re: HMG4: image icon resource file

Post by l3whmg »

Hi Rathinagiri,
this a good news ;) and "SET REGISTER" command it's a good :idea:

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
User avatar
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

Post by Rathinagiri »

Hi Luigi,

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.
User avatar
l3whmg
Posts: 694
Joined: Mon Feb 23, 2009 8:46 pm
Location: Italy
Contact:

Re: HMG4: image icon resource file

Post by l3whmg »

Hi Rethinagiri,
many thanks! I'll donwload.

Cheers
Luigi from Italy
www.L3W.it
User avatar
l3whmg
Posts: 694
Joined: Mon Feb 23, 2009 8:46 pm
Location: Italy
Contact:

Re: HMG4: image icon resource file

Post by l3whmg »

Hi Rathinagiri,
I hope I can enter this post replay for the 4 time :x

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
Luigi from Italy
www.L3W.it
User avatar
l3whmg
Posts: 694
Joined: Mon Feb 23, 2009 8:46 pm
Location: Italy
Contact:

Re: HMG4: image icon resource file

Post by l3whmg »

I'm sorry..
about B) the test inside "METHOD New CLASS RESOURCE" but I can't enter all the code.

Cheers
Luigi from Italy
www.L3W.it
User avatar
l3whmg
Posts: 694
Joined: Mon Feb 23, 2009 8:46 pm
Location: Italy
Contact:

Re: HMG4: image icon resource file

Post 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
Attachments
resource.zip
resource.prg
(578 Bytes) Downloaded 186 times
Luigi from Italy
www.L3W.it
User avatar
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

Post by Rathinagiri »

That's great man!

I think you can commit by yourself!
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
l3whmg
Posts: 694
Joined: Mon Feb 23, 2009 8:46 pm
Location: Italy
Contact:

Re: HMG4: image icon resource file

Post 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
Luigi from Italy
www.L3W.it
Post Reply