Page 1 of 106

Welcome to the Project Developers' Table

Posted: Tue Aug 17, 2010 4:57 am
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.

Re: Welcome to the Project Developers' Table

Posted: Tue Aug 17, 2010 4:58 am
by sudip
Hello Rathi,

Thanks a lot :)

Re: Welcome to the Project Developers' Table

Posted: Tue Aug 17, 2010 12:48 pm
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!

Re: Welcome to the Project Developers' Table

Posted: Tue Aug 17, 2010 12:54 pm
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!

Re: Welcome to the Project Developers' Table

Posted: Tue Aug 17, 2010 1:01 pm
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

Re: Welcome to the Project Developers' Table

Posted: Tue Aug 17, 2010 2:41 pm
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.

Re: Welcome to the Project Developers' Table

Posted: Tue Aug 17, 2010 2:51 pm
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.

Re: Welcome to the Project Developers' Table

Posted: Tue Aug 17, 2010 4:16 pm
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.

Re: Welcome to the Project Developers' Table

Posted: Tue Aug 17, 2010 6:43 pm
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

Re: Welcome to the Project Developers' Table

Posted: Tue Aug 17, 2010 7:05 pm
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 ;)