HMG 4 Started

Moderator: Rathinagiri

User avatar
Roberto Lopez
HMG Founder
Posts: 4004
Joined: Wed Jul 30, 2008 6:43 pm

Re: HMG 4 Started

Post by Roberto Lopez »

mol wrote:I can't see possibility to realize AutoSize property without GetTextWidth.
I'll read QT doc. Maybe there is a resolve of problem.
In the case that will not be directly possible, please, add a note in the TODO.TXT file indicating that only Windows support is in place.

To link hbwin library please modify root build BUILD.BAT adding -lhbwin to Hbmk2 line.

Regarding valign and wordwrap, are really nice, we will keep it, but please, do not forget our main goal that is to achieve HMG compatibility in the first place.

Many thanks for your work.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
sudip
Posts: 1454
Joined: Sat Mar 07, 2009 11:52 am
Location: Kolkata, WB, India

Re: HMG 4 Started

Post by sudip »

Hello Roberto,

I was browsing the TextBox code.

In Class definition section I found:

Code: Select all

	* Internal Data

	DATA cValue		INIT ''
...
In Create method :

Code: Select all

	* Set Properties
	
	::oQTObject:SetText(::xValue)
...
Value property code also using ::cValue.

What should be used - cValue or xValue (I guess xValue).

As per HBQT documentation QLineEdit's SetText() method is using only character type as parameter. So, when using SetText() method, we need to transfer any value to character string (depending on DataType, InputMask, Format etc). And when we Get from Value property, it will be reversed (ie., Character to corresponding DataType).

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

Re: HMG 4 Started

Post by Roberto Lopez »

sudip wrote:Hello Roberto,

I was browsing the TextBox code.

In Class definition section I found:

Code: Select all

	* Internal Data

	DATA cValue		INIT ''
...
In Create method :

Code: Select all

	* Set Properties
	
	::oQTObject:SetText(::xValue)
...
Value property code also using ::cValue.

What should be used - cValue or xValue (I guess xValue).

As per HBQT documentation QLineEdit's SetText() method is using only character type as parameter. So, when using SetText() method, we need to transfer any value to character string (depending on DataType, InputMask, Format etc). And when we Get from Value property, it will be reversed (ie., Character to corresponding DataType).

Very interesting :)
TextBox will work with various data types, so xValue must be used instead cValue.
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: HMG 4 Started

Post by Rathinagiri »

Hi Roberto,

Now I have uploaded control.prg with transparent method.

It is not working at the time of activation of main window. But IMHO, works properly during runtime change of transparent property.

Kindly run the c:\hmg.4\svn\samples\checkbox\demo_3.prg. Initially a black box appears instead of a transparent checkbox. Once you click "transparency change" button, I think it works. I don't know where I am missing. Kindly go through transparent method of control.prg

Also we can verify only after window backcolor property made working.

If I am wrong in implementing the transparent method, kindly delete and revert back.
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: HMG 4 Started

Post by Roberto Lopez »

rathinagiri wrote:Hi Roberto,

Now I have uploaded control.prg with transparent method.

It is not working at the time of activation of main window. But IMHO, works properly during runtime change of transparent property.

Kindly run the c:\hmg.4\svn\samples\checkbox\demo_3.prg. Initially a black box appears instead of a transparent checkbox. Once you click "transparency change" button, I think it works. I don't know where I am missing. Kindly go through transparent method of control.prg

Also we can verify only after window backcolor property made working.

If I am wrong in implementing the transparent method, kindly delete and revert back.
I don't know what's happening.

I've added transparent property for some controls because it was needed to deal with gradient background in the tab control on XP style.

Since, it could be not required under QT, maybe better to rollback it and go on with another thing.

Sorry. I've not noted this earlier.
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: HMG 4 Started

Post by Rathinagiri »

Thanks a lot Roberto. :)

We shall revert back.
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: HMG 4 Started

Post by Roberto Lopez »

esgici wrote:
Roberto Lopez wrote:
Well... the last chapter...

... review the code, create your own class for do tests you should be ready soon...
Thanks a lot Maestro :D

--

Esgici
Anyway, I have a job for you while you fine-tune your OOP.

If you want to do it, could be a great thing if you could document in a simple way (a text file) which of documented HMG properties events and methods are available for each control we are working on.

And what things are extensions over the original functionality.

ie: I've added backcolor and fontcolor properties in control class and they has been inherited by controls that had not those previously (ie: button).

You can place this file in SVN root and keep it updated.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: HMG 4 Started

Post by esgici »

Roberto Lopez wrote:
Anyway, I have a job for you while you fine-tune your OOP.

If you want to do it, could be a great thing if you could document in a simple way (a text file) which of documented HMG properties events and methods are available for each control we are working on.

And what things are extensions over the original functionality.

ie: I've added backcolor and fontcolor properties in control class and they has been inherited by controls that had not those previously (ie: button).

You can place this file in SVN root and keep it updated.
All right, I'm begin immediately :D

Please don't forgive my faults.

Best Regards

--

Esgici
Viva INTERNATIONAL HMG :D
User avatar
Roberto Lopez
HMG Founder
Posts: 4004
Joined: Wed Jul 30, 2008 6:43 pm

Re: HMG 4 Started

Post by Roberto Lopez »

esgici wrote:
Roberto Lopez wrote:
Anyway, I have a job for you while you fine-tune your OOP.

If you want to do it, could be a great thing if you could document in a simple way (a text file) which of documented HMG properties events and methods are available for each control we are working on.

And what things are extensions over the original functionality.

ie: I've added backcolor and fontcolor properties in control class and they has been inherited by controls that had not those previously (ie: button).

You can place this file in SVN root and keep it updated.
All right, I'm begin immediately :D

Please don't forgive my faults.

Best Regards

--

Esgici
I've think on you because I've observed that you have a great talent for testing and note details that others do not. This will make you perfect for this job.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
Roberto Lopez
HMG Founder
Posts: 4004
Joined: Wed Jul 30, 2008 6:43 pm

Re: HMG 4 Started

Post by Roberto Lopez »

esgici wrote: All right, I'm begin immediately :D

Please don't forgive my faults.

Best Regards

--

Esgici
And... your file will replace the TODO.TXT in root. So, once you've used the info on in, you can delete.

TIA.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
Post Reply