Welcome to the Project Developers' Table

Moderator: Rathinagiri

User avatar
Rathinagiri
Posts: 5264
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 169 times
Been thanked: 172 times
Contact:

Welcome to the Project Developers' Table

Post by Rathinagiri » Tue Aug 17, 2010 4:57 am

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: 1446
Joined: Sat Mar 07, 2009 11:52 am
Location: Kolkata, WB, India
Has thanked: 5 times
Been thanked: 1 time

Post by sudip » Tue Aug 17, 2010 4:58 am

Hello Rathi,

Thanks a lot :)
With best regards,
Sudip

User avatar
Roberto Lopez
HMG Founder
Posts: 3980
Joined: Wed Jul 30, 2008 6:43 pm
Has thanked: 27 times
Been thanked: 168 times

Post by Roberto Lopez » Tue Aug 17, 2010 12:48 pm

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: 3248
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 231 times
Been thanked: 132 times
Contact:

Post by mol » Tue Aug 17, 2010 12:54 pm

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 179 times

User avatar
luisvasquezcl
Posts: 1144
Joined: Thu Jul 31, 2008 3:23 am
Location: Chile
Has thanked: 14 times
Been thanked: 14 times
Contact:

Post by luisvasquezcl » Tue Aug 17, 2010 1:01 pm

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: 3980
Joined: Wed Jul 30, 2008 6:43 pm
Has thanked: 27 times
Been thanked: 168 times

Post by Roberto Lopez » Tue Aug 17, 2010 2:41 pm

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: 5264
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 169 times
Been thanked: 172 times
Contact:

Post by Rathinagiri » Tue Aug 17, 2010 2:51 pm

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: 3980
Joined: Wed Jul 30, 2008 6:43 pm
Has thanked: 27 times
Been thanked: 168 times

Post by Roberto Lopez » Tue Aug 17, 2010 4:16 pm

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: 3248
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 231 times
Been thanked: 132 times
Contact:

Post by mol » Tue Aug 17, 2010 6:43 pm

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: 3248
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 231 times
Been thanked: 132 times
Contact:

Post by mol » Tue Aug 17, 2010 7:05 pm

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