HMG 4 Started
Moderator: Rathinagiri
- Rathinagiri
- Posts: 5480
- Joined: Tue Jul 29, 2008 6:30 pm
- DBs Used: MariaDB, SQLite, SQLCipher and MySQL
- Location: Sivakasi, India
- Contact:
Re: HMG 4 Started
Great words from a simple man.
Bravo Roberto.
Bravo Roberto.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
South or North HMG is worth.
...the possibilities are endless.
- esgici
- Posts: 4543
- Joined: Wed Jul 30, 2008 9:17 pm
- DBs Used: DBF
- Location: iskenderun / Turkiye
- Contact:
Re: HMG 4 Started
ThanksRoberto Lopez wrote: I've got you access as developer.

I fully agree your opinions on OOP and especially on dynamism.
Moreover, believe or not, your very short history is almost identical with mine. I remember, "does is possible a computer program without GOTO, if so how)"; how long I struggled under this question

Only exception was: I couldn't possibilities to be transferred Windows programming until found your wonderful work


So I'm very glad and very happy by being acquainted with you.
So, I'm and I'll together with you, as soon as I can. Stand by your side, at least as a follower.
With my best regards.
--
Esgici
Viva INTERNATIONAL HMG 

- Roberto Lopez
- HMG Founder
- Posts: 4012
- Joined: Wed Jul 30, 2008 6:43 pm
Re: HMG 4 Started
Excepting for NtoC, it is working nicely.mol wrote:Code changing colors should look like:Code: Select all
if ValType(::aFontColor) == 'U' xForeColor := '#000000;' else xForeColor := '#'+NtoC(aFontColor[1],16,2)+NtoC(aFontColor[2],16,2)+NtoC(aFontColor[3],16,2)+';' endif cStyleSheet += 'color:'+xForeColor + ';' if ValType(::aBackColor) == 'A' cStyleSheet += 'background-color:#'+NtoC(aBackColor[1],16,2)+NtoC(aBackColor[2],16,2)+NtoC(aBackColor[3],16,2)+';' endif if !empty(cStyleSheet) ::oQTObject:setStyleSheet(cStyleSheet) endif
I have only one objection: If the user do not specify a color, we should leave to QT to use the default colors for the control.
So, if a color == NIl we should do nothing for it.
Regards/Saludos,
Roberto
(Veritas Filia Temporis)
Roberto
(Veritas Filia Temporis)
Re: HMG 4 Started
Did some housekeeping in Create() method of Spinner. Thank you Roberto. I learned it form Editbox control.
I couldn't find corresponding signals for OnGotFocus and OnLostFocus events. May be they are in disguise of another names
There are FocusIn and FocusOut Qt events, but not signals. There are some examples how to use them, but I don't know how to implement these ideas with HBQT, because they are written with C++.
I couldn't find corresponding signals for OnGotFocus and OnLostFocus events. May be they are in disguise of another names

There are FocusIn and FocusOut Qt events, but not signals. There are some examples how to use them, but I don't know how to implement these ideas with HBQT, because they are written with C++.
With best regards,
Sudip
Sudip
- Rathinagiri
- Posts: 5480
- Joined: Tue Jul 29, 2008 6:30 pm
- DBs Used: MariaDB, SQLite, SQLCipher and MySQL
- Location: Sivakasi, India
- Contact:
Re: HMG 4 Started
I think ongotfocus and onlostfocus are implemented by Roberto. We have to connect using installevents as in Editbox, I think.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
South or North HMG is worth.
...the possibilities are endless.
- Roberto Lopez
- HMG Founder
- Posts: 4012
- Joined: Wed Jul 30, 2008 6:43 pm
Re: HMG 4 Started
i have fever, I can't go out my home and my brain is not in good shape to do programming right now... so I'll encourage you a little moreesgici wrote: So I'm very glad and very happy by being acquainted with you.
So, I'm and I'll together with you, as soon as I can. Stand by your side, at least as a follower.

To build a car, you need a diagram.
Even you can build billions of cars using the same diagram, all the cars are different. They could have different color, different upholstered seats, etc.
The 'diagram' in OOP speaking is a 'class' and each individual car is an 'object'.
So in the code:
oButton1 := Button():New()
oButton1 is an object variable containing a button (a car).
If I want to change the button color, I should do:
oButton1:FontColor := 'New Color'
The really important thing here is that you are changing the color of a individual button contained in the oButton1 variable (not all buttons created with the button class).
So, you could read or write any class internal variable without need to make that variable public, via the send operator (:).
ie:
oButton1:xVar
This eliminate all the mess created by public and private variables.
To be continued...
Regards/Saludos,
Roberto
(Veritas Filia Temporis)
Roberto
(Veritas Filia Temporis)
- Roberto Lopez
- HMG Founder
- Posts: 4012
- Joined: Wed Jul 30, 2008 6:43 pm
Re: HMG 4 Started
Yes. I've already put in control class and are working for editbox.rathinagiri wrote:I think ongotfocus and onlostfocus are implemented by Roberto. We have to connect using installevents as in Editbox, I think.
You only need to connect them to your control as shown in the create method.
Regards/Saludos,
Roberto
(Veritas Filia Temporis)
Roberto
(Veritas Filia Temporis)
- Roberto Lopez
- HMG Founder
- Posts: 4012
- Joined: Wed Jul 30, 2008 6:43 pm
Re: HMG 4 Started
Some things works via slots and other via events.sudip wrote:Did some housekeeping in Create() method of Spinner. Thank you Roberto. I learned it form Editbox control.
I couldn't find corresponding signals for OnGotFocus and OnLostFocus events. May be they are in disguise of another names
There are FocusIn and FocusOut Qt events, but not signals. There are some examples how to use them, but I don't know how to implement these ideas with HBQT, because they are written with C++.
Take a look at OnGotFocus & OnLostFocus in control class and EditBox's create method.
Regards/Saludos,
Roberto
(Veritas Filia Temporis)
Roberto
(Veritas Filia Temporis)
Re: HMG 4 Started
Of course, I've set it for testing only.Roberto Lopez wrote:Excepting for NtoC, it is working nicely.
I have only one objection: If the user do not specify a color, we should leave to QT to use the default colors for the control.
So, if a color == NIl we should do nothing for it.
NtoC was copied from harbour distribution. I can work on another conversion method. What do you think?
Re: HMG 4 Started
Thanks a lot. I missed it. Now works fine.Roberto Lopez wrote:...
Take a look at OnGotFocus & OnLostFocus in control class and EditBox's create method.
With best regards,
Sudip
Sudip