Page 6 of 16

Re: HMG 4 Started

Posted: Sun Aug 15, 2010 2:15 pm
by sudip
Hello,

Spinner Font name, size, bold, italic, underline, strikeout added. :)

Re: HMG 4 Started

Posted: Sun Aug 15, 2010 4:52 pm
by Roberto Lopez
sudip wrote:Hello,

Spinner Font name, size, bold, italic, underline, strikeout added. :)
Ok.

It looks good, but the problem is that you can't change these properties at run-time now.

I've made some changes to control.prg.

Update your code and look at line #1004.

I've added the logic to make the Fontsize be changed at runtime.

I'll proceed with the other font properties.

Re: HMG 4 Started

Posted: Sun Aug 15, 2010 5:11 pm
by Roberto Lopez
Roberto Lopez wrote:
sudip wrote:Hello,

Spinner Font name, size, bold, italic, underline, strikeout added. :)
Ok.

It looks good, but the problem is that you can't change these properties at run-time now.

I've made some changes to control.prg.

Update your code and look at line #1004.

I've added the logic to make the Fontsize be changed at runtime.

I'll proceed with the other font properties.

I've just finished the work for all font properties in control.prg

See how it works in Spinnner's demo1

That is the way that you can follow for the rest of the properties.

Re: HMG 4 Started

Posted: Mon Aug 16, 2010 2:25 am
by Roberto Lopez
Roberto Lopez wrote:
I've just finished the work for all font properties in control.prg

See how it works in Spinnner's demo1

That is the way that you can follow for the rest of the properties.
And, I've added run-time functionality to row, col, width and height properties.

This will make the code simpler and compact. Take a look at the EditBox's Create() method.

Re: HMG 4 Started

Posted: Mon Aug 16, 2010 3:06 am
by sudip
Hello Roberto,

Fantastic :D
Great idea and code for Font :)

(Sorry, for my delay to answer)

I shall change my code in Spinner control.

Regarding EditBox row, col and height changes, excellent use of ::Self object. :)

It's a great experience to volunteer in this project. I am really grateful to you for this learning. Now, I understand I know very little about programming.

Please tell me what shall I do next.

Re: HMG 4 Started

Posted: Mon Aug 16, 2010 4:08 am
by sudip
Hello Roberto,

You already changed the Font related code in Spinner. Thanks a lot :)
Roberto Lopez wrote:That is the way that you can follow for the rest of the properties.
Ok, I shall do.

Re: HMG 4 Started

Posted: Mon Aug 16, 2010 6:32 am
by sudip
Hello,

ReadOnly property code added to Control.prg and Spinner.prg

Re: HMG 4 Started

Posted: Mon Aug 16, 2010 6:35 am
by mol
I can try my work with LABEL if it's free.
Marek

Re: HMG 4 Started

Posted: Mon Aug 16, 2010 6:49 am
by mol
I found an error in source\window.prg at line 798:
the code is:

Code: Select all

			Return ::aBcackColor
I think, it should be:

Code: Select all

			Return ::aBackColor
I can't commit changes.
My sourceforge account is mol68
Add me to the list, please

Re: HMG 4 Started

Posted: Mon Aug 16, 2010 8:32 am
by sudip
Hello,

Wrap property code added to Spinner Control.