Welcome to the Project Developers' Table

Moderator: Rathinagiri

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: Welcome to the Project Developers' Table

Post by Rathinagiri »

Hi friends,

I have successfully uploaded LISTBOX functionality. :)

Only the following to be done:

LISTBOX:

* PROPERTIES

- MULTISELECT
- BREAK
- DRAGITEMS


* EVENTS

- OnCHANGE
- OnDOUBLECLICK
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
sudip
Posts: 1454
Joined: Sat Mar 07, 2009 11:52 am
Location: Kolkata, WB, India

Re: Welcome to the Project Developers' Table

Post by sudip »

Hello,

I was busy for some days.

Can anyone give me some idea of following problems regarding Textbox :)

As I am thinking, a textbox can store different data types, after converted to character as SetText() method uses character type as parameter. And when we want to get value from textbox, it should converted back to the original value depending on DataType.

But, how we can assign InputFormat or Format depending on DataType?

Thanks in advance.
With best regards,
Sudip
User avatar
Roberto Lopez
HMG Founder
Posts: 4004
Joined: Wed Jul 30, 2008 6:43 pm

Re: Welcome to the Project Developers' Table

Post by Roberto Lopez »

sudip wrote: But, how we can assign InputFormat or Format depending on DataType?
Sorry, I can't understand your question.

Conversion (to and from character) should be done in the 'value' property code. That's all.
Regards/Saludos,

Roberto


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

Re: Welcome to the Project Developers' Table

Post by Roberto Lopez »

rathinagiri wrote:Hi friends,

I have successfully uploaded LISTBOX functionality. :)

Only the following to be done:

LISTBOX:

* PROPERTIES

- MULTISELECT
- BREAK
- DRAGITEMS


* EVENTS

- OnCHANGE
- OnDOUBLECLICK
Great!!!... This is going fast...
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: Welcome to the Project Developers' Table

Post by Rathinagiri »

This is going fast...
Nope. It took one full day for me to figure out. :( However, I gained a lot to handle QT. :)

Now I have implemented multiselect and onchange event too!

Now, the value property for multiselect listbox to be implemented.
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: Welcome to the Project Developers' Table

Post by Roberto Lopez »

rathinagiri wrote:
This is going fast...
Nope. It took one full day for me to figure out. :( However, I gained a lot to handle QT. :)

Now I have implemented multiselect and onchange event too!

Now, the value property for multiselect listbox to be implemented.
IMHO It's fast anyway... in only about 10 days, we are already able to write basic applications using HMG syntax!
Regards/Saludos,

Roberto


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

Re: Welcome to the Project Developers' Table

Post by Roberto Lopez »

rathinagiri wrote:Hi friends,

I have successfully uploaded LISTBOX functionality. :)
Nice!

Please, remember that you can omit code blocks for actions in xBase and alternate syntax, so it could be removed from such samples.
Regards/Saludos,

Roberto


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

Re: Welcome to the Project Developers' Table

Post by Roberto Lopez »

rathinagiri wrote:Hi friends,

I have successfully uploaded LISTBOX functionality. :)

Only the following to be done:

LISTBOX:

* PROPERTIES

- MULTISELECT
- BREAK
- DRAGITEMS


* EVENTS

- OnCHANGE
- OnDOUBLECLICK
Please consider that since you have this code on listbox create() method:

Code: Select all

	if ValType (::nRow)		!= 'U'	; Self:Row		      := ::nRow		; EndIf
	if ValType (::nCol)		!= 'U'	; Self:Col		      := ::nCol		; EndIf
	if ValType (::nWidth)	!= 'U'	; Self:Width	      := ::nWidth		; EndIf
	if ValType (::nHeight)	!= 'U'	; Self:Height	      := ::nHeight	; EndIf
This code is not required:

Code: Select all

	if ValType(::nWidth) == 'U' 
		::nWidth := 120
	endif
	
	if ValType(::nHeight) == 'U'
		::nHeight := 120
	endif
	
	::oQTObject:resize( ::nWidth , ::nHeight )
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: Welcome to the Project Developers' Table

Post by Rathinagiri »

So, they must precede the code for default width and height. :)
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
mol
Posts: 3723
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: Welcome to the Project Developers' Table

Post by mol »

Roberto Lopez wrote:
Roberto Lopez wrote: Then go to label samples folder, copy on it the hmg.gif file and compile the demo_1.

hmg.gif, will be show instead label text.

So, gifs are directly supported.
The same applies to .jpg files.

I've changed references to hmg.gif by hmg.jpg and works perfectly.
Maybe something is wrong with my computers???
Maybe something is wrong with my mind :(
Post Reply