Page 8 of 106
Re: Welcome to the Project Developers' Table
Posted: Mon Aug 23, 2010 2:55 pm
by Rathinagiri
Hi friends,
I have successfully uploaded LISTBOX functionality.
Only the following to be done:
LISTBOX:
* PROPERTIES
- MULTISELECT
- BREAK
- DRAGITEMS
* EVENTS
- OnCHANGE
- OnDOUBLECLICK
Re: Welcome to the Project Developers' Table
Posted: Mon Aug 23, 2010 3:12 pm
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.
Re: Welcome to the Project Developers' Table
Posted: Mon Aug 23, 2010 3:27 pm
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.
Re: Welcome to the Project Developers' Table
Posted: Mon Aug 23, 2010 3:28 pm
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...
Re: Welcome to the Project Developers' Table
Posted: Mon Aug 23, 2010 3:53 pm
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.
Re: Welcome to the Project Developers' Table
Posted: Mon Aug 23, 2010 4:29 pm
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!
Re: Welcome to the Project Developers' Table
Posted: Mon Aug 23, 2010 4:36 pm
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.
Re: Welcome to the Project Developers' Table
Posted: Mon Aug 23, 2010 4:45 pm
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 )
Re: Welcome to the Project Developers' Table
Posted: Mon Aug 23, 2010 5:22 pm
by Rathinagiri
So, they must precede the code for default width and height.

Re: Welcome to the Project Developers' Table
Posted: Mon Aug 23, 2010 5:38 pm
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
