Welcome to the Project Developers' Table

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:

Welcome to the Project Developers' Table

Post by Rathinagiri »

Hi,

Let me welcome you the new category and forum for the Project Developers and Contributors of HMG 4. Here we can discuss everything about the new version.

With kind regards,
S. Rathinagiri.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
sudip
Posts: 1454
Joined: Sat Mar 07, 2009 11:52 am
Location: Kolkata, WB, India

Re: Welcome to the Project Developers' Table

Post by sudip »

Hello Rathi,

Thanks a lot :)
With best regards,
Sudip
User avatar
Roberto Lopez
HMG Founder
Posts: 4004
Joined: Wed Jul 30, 2008 6:43 pm

Re: Welcome to the Project Developers' Table

Post by Roberto Lopez »

rathinagiri wrote:Hi,

Let me welcome you the new category and forum for the Project Developers and Contributors of HMG 4. Here we can discuss everything about the new version.

With kind regards,
S. Rathinagiri.
Great!
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
mol
Posts: 3718
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: Welcome to the Project Developers' Table

Post by mol »

after few hours of searching, testing, worse else... :) I've prepared label which accepts colors.
I placed whole label.prg as attachment.

Of course, it is not free from errors, but... works!
Attachments
label.zip
(2.43 KiB) Downloaded 643 times
User avatar
luisvasquezcl
Posts: 1258
Joined: Thu Jul 31, 2008 3:23 am
Location: Chile
Contact:

Re: Welcome to the Project Developers' Table

Post by luisvasquezcl »

Hi Rathi, great idea,
I am working on the control frame and I have it running, I am
starting to add the behavior before.
best regards
Luis Vasquez
User avatar
Roberto Lopez
HMG Founder
Posts: 4004
Joined: Wed Jul 30, 2008 6:43 pm

Re: Welcome to the Project Developers' Table

Post by Roberto Lopez »

mol wrote:after few hours of searching, testing, worse else... :) I've prepared label which accepts colors.
I placed whole label.prg as attachment.

Of course, it is not free from errors, but... works!
I've got an error:

Error BASE/1003 Variable does not exist: CTESTSTRING

I've fixed and tested and all appears to be ok now.

Some advises:

Take a look at the EditBox's create method code.

So, you'll must only invoke backcolor/fontcolor properties and not to rewrite it, ie:

Self:BackColor := ::aBackColor

The same applies to the other properties.

Please, remove the ntoc code and pas --lhbct parameter to hbmk2

Finally put the code of the new properties in the control class, so, we can access it from the other controls.

And to not forget to 'right click->paste filename list' when commiting.

Thanks.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
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: Welcome to the Project Developers' Table

Post by Rathinagiri »

As of now, I had created all the specific properties/methods of checkbox and common properties/methods. Once we finish these common properties/methods, checkbox would be complete.

I have changed xValue to cValue in line 77 of label.prg as it would be the correct one.

Also, deleted one duplicate line in editbox.prg in line 203.

I had just copied nWidth and nHeight properties from Sudip's spinner control. I think this one is common property which can be used in control.prg. Once after that, I would remove the same from checkbox.prg too.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
Roberto Lopez
HMG Founder
Posts: 4004
Joined: Wed Jul 30, 2008 6:43 pm

Re: Welcome to the Project Developers' Table

Post by Roberto Lopez »

rathinagiri wrote:As of now, I had created all the specific properties/methods of checkbox and common properties/methods. Once we finish these common properties/methods, checkbox would be complete.

I have changed xValue to cValue in line 77 of label.prg as it would be the correct one.

Also, deleted one duplicate line in editbox.prg in line 203.

I had just copied nWidth and nHeight properties from Sudip's spinner control. I think this one is common property which can be used in control.prg. Once after that, I would remove the same from checkbox.prg too.
Ok.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
mol
Posts: 3718
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: Welcome to the Project Developers' Table

Post by mol »

Roberto Lopez wrote:
mol wrote:after few hours of searching, testing, worse else... :) I've prepared label which accepts colors.
I placed whole label.prg as attachment.

Of course, it is not free from errors, but... works!
I've got an error:

Error BASE/1003 Variable does not exist: CTESTSTRING

I've fixed and tested and all appears to be ok now.

Some advises:

Take a look at the EditBox's create method code.

So, you'll must only invoke backcolor/fontcolor properties and not to rewrite it, ie:

Self:BackColor := ::aBackColor

The same applies to the other properties.

Please, remove the ntoc code and pas --lhbct parameter to hbmk2

Finally put the code of the new properties in the control class, so, we can access it from the other controls.

And to not forget to 'right click->paste filename list' when commiting.

Thanks.
I've tried to arrange properties of label and it appears, that code fontcolor and backcolor must be rewritten in create method and fontcolor/backcolor method.
I think it's because it is not enough to assign color table to object data, it must be send a signal setStyleSheet to tho object.
Marek
User avatar
mol
Posts: 3718
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: Welcome to the Project Developers' Table

Post by mol »

Roberto Lopez wrote:
Finally put the code of the new properties in the control class, so, we can access it from the other controls.
....
Sorry, I don't know how :(
I've commited source\label.prg
Tomorrow, I will work on next properties.

Beginnings are difficult and very energy-intensive ;)
Post Reply