Welcome to the Project Developers' Table
Moderator: Rathinagiri
- 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
Hi friends,
I have successfully uploaded LISTBOX functionality.
Only the following to be done:
LISTBOX:
* PROPERTIES
- MULTISELECT
- BREAK
- DRAGITEMS
* EVENTS
- OnCHANGE
- OnDOUBLECLICK
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.
South or North HMG is worth.
...the possibilities are endless.
Re: Welcome to the Project Developers' Table
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.
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
Sudip
- Roberto Lopez
- HMG Founder
- Posts: 4004
- Joined: Wed Jul 30, 2008 6:43 pm
Re: Welcome to the Project Developers' Table
Sorry, I can't understand your question.sudip wrote: But, how we can assign InputFormat or Format depending on DataType?
Conversion (to and from character) should be done in the 'value' property code. That's all.
Regards/Saludos,
Roberto
(Veritas Filia Temporis)
Roberto
(Veritas Filia Temporis)
- Roberto Lopez
- HMG Founder
- Posts: 4004
- Joined: Wed Jul 30, 2008 6:43 pm
Re: Welcome to the Project Developers' Table
Great!!!... This is going fast...rathinagiri wrote:Hi friends,
I have successfully uploaded LISTBOX functionality.
Only the following to be done:
LISTBOX:
* PROPERTIES
- MULTISELECT
- BREAK
- DRAGITEMS
* EVENTS
- OnCHANGE
- OnDOUBLECLICK
Regards/Saludos,
Roberto
(Veritas Filia Temporis)
Roberto
(Veritas Filia Temporis)
- 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
Nope. It took one full day for me to figure out. However, I gained a lot to handle QT.This is going fast...
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.
South or North HMG is worth.
...the possibilities are endless.
- Roberto Lopez
- HMG Founder
- Posts: 4004
- Joined: Wed Jul 30, 2008 6:43 pm
Re: Welcome to the Project Developers' Table
IMHO It's fast anyway... in only about 10 days, we are already able to write basic applications using HMG syntax!rathinagiri wrote:Nope. It took one full day for me to figure out. However, I gained a lot to handle QT.This is going fast...
Now I have implemented multiselect and onchange event too!
Now, the value property for multiselect listbox to be implemented.
Regards/Saludos,
Roberto
(Veritas Filia Temporis)
Roberto
(Veritas Filia Temporis)
- Roberto Lopez
- HMG Founder
- Posts: 4004
- Joined: Wed Jul 30, 2008 6:43 pm
Re: Welcome to the Project Developers' Table
Nice!rathinagiri wrote:Hi friends,
I have successfully uploaded LISTBOX functionality.
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)
Roberto
(Veritas Filia Temporis)
- Roberto Lopez
- HMG Founder
- Posts: 4004
- Joined: Wed Jul 30, 2008 6:43 pm
Re: Welcome to the Project Developers' Table
Please consider that since you have this code on listbox create() method:rathinagiri wrote:Hi friends,
I have successfully uploaded LISTBOX functionality.
Only the following to be done:
LISTBOX:
* PROPERTIES
- MULTISELECT
- BREAK
- DRAGITEMS
* EVENTS
- OnCHANGE
- OnDOUBLECLICK
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
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)
Roberto
(Veritas Filia Temporis)
- 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
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.
South or North HMG is worth.
...the possibilities are endless.
Re: Welcome to the Project Developers' Table
Maybe something is wrong with my computers???Roberto Lopez wrote:The same applies to .jpg files.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.
I've changed references to hmg.gif by hmg.jpg and works perfectly.
Maybe something is wrong with my mind