Page 9 of 106
Re: Welcome to the Project Developers' Table
Posted: Mon Aug 23, 2010 5:40 pm
by mol
Roberto Lopez wrote:mol wrote:I'm still lerning QT and reading documentation.
IMAGE is realized, maybe not ended, but working with PNG images.
I think, I can take next control to create. Please assign me next job!
Ok.
I guess that Combobox is free, so you could work on it.
You could need to synchronize your work with rathinagiri, sin he is working on listbox and maybe you can share code for some properties.
OK. I'm taking it!
Re: Welcome to the Project Developers' Table
Posted: Mon Aug 23, 2010 5:44 pm
by Roberto Lopez
mol wrote:Roberto Lopez wrote:mol wrote:I'm still lerning QT and reading documentation.
IMAGE is realized, maybe not ended, but working with PNG images.
I think, I can take next control to create. Please assign me next job!
Ok.
I guess that Combobox is free, so you could work on it.
You could need to synchronize your work with rathinagiri, sin he is working on listbox and maybe you can share code for some properties.
OK. I'm taking it!
Ok. I'll take image.
Re: Welcome to the Project Developers' Table
Posted: Mon Aug 23, 2010 5:46 pm
by Roberto Lopez
mol wrote: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

I've just changed such two lines on label and all my labels become images (png,gif, jpg and .bmp).
I'll upload a complete image class soon, so you can check it.
Re: Welcome to the Project Developers' Table
Posted: Mon Aug 23, 2010 6:04 pm
by mol
I've completed IMAGE class, too.
I only need to clean up code
Marek
Re: Welcome to the Project Developers' Table
Posted: Mon Aug 23, 2010 6:25 pm
by sudip
Hello,
TextBox can now store different DataTypes. I tested it. It runs fine (except, the "/", "." characters can be deleted, and no restriction for datatype specific input

). I think it's better to post here first for your check before SVN Commit
Code: Select all
METHOD Value (xValue) CLASS TEXTBOX
If Pcount() == 1
Do Case
Case ValType(xValue) == "N"
xValue := Str(xValue)
Case ValType(xValue) == "D"
xValue := Dtoc(xValue)
EndCase
Endif
If ::lCreated
If Pcount() == 0
RETURN If(::DataType == TXT_NUMERIC, ;
Val(::oQTObject:Text()), ;
If(::DataType == TXT_DATE, CToD(::oQTObject:Text()), ::oQTObject:Text()))
ElseIf Pcount() == 1
::oQTObject:SetText(xValue)
EndIf
Else
If Pcount() == 0
RETURN ::xValue
ElseIf Pcount() == 1
::xValue := xValue
EndIf
EndIf
RETURN NIL
...
...
METHOD DataType ( nValue ) CLASS TEXTBOX
// DataType is not a property of QLineEdit
If Pcount() == 0
RETURN ::nDataType
ElseIf Pcount() == 1
::nDataType := nValue
EndIf
RETURN Nil
Re: Welcome to the Project Developers' Table
Posted: Mon Aug 23, 2010 6:29 pm
by Roberto Lopez
mol wrote:I've completed IMAGE class, too.
I only need to clean up code
Marek
I've uploaded an image class test that works fine with .jpg, gif and bmp.
Please, take a look at it:

- Image3.png (305.46 KiB) Viewed 2217 times
Re: Welcome to the Project Developers' Table
Posted: Mon Aug 23, 2010 6:57 pm
by mol
I've compiled your IMAGE class and get this on the screen:
So, I don't know, what's going on.
Re: Welcome to the Project Developers' Table
Posted: Mon Aug 23, 2010 7:07 pm
by mol
I've deleted my HMG.4\svn\samples and HMG.4\svn\source folders. Then I've updated these folders from SVN, recompiled samples\image\demo_1.prg and nothing better happened
Maybe the rest of the team could test this sample?
It's very strange - it does not work on my three computers two with XP and one with win'7.
Re: Welcome to the Project Developers' Table
Posted: Mon Aug 23, 2010 7:26 pm
by Rathinagiri
I too get the demo screen just like Marek.
And, when I changed all the pictures to 'hmg.bmp', all the three come up.
It looks like only .bmp files are working.
Re: Welcome to the Project Developers' Table
Posted: Mon Aug 23, 2010 7:33 pm
by mol
On my computers sample works good with png and bmp images. I think, basic is JPG at now and it must work.