Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » ArrayCtrl.AsQtf bug?
ArrayCtrl.AsQtf bug? [message #40684] Sun, 01 September 2013 22:57 Go to next message
forlano is currently offline  forlano
Messages: 1071
Registered: March 2006
Location: Italy
Experienced Contributor
Hello,

today I experienced a very strange problem in my application.
This is how it looks a qtf file on a windows 7 machine with resolution (around) 1300x768:
index.php?t=getfile&id=4312&private=0

and this is how it should look (got on a XP machine) 1024x768 resolution
index.php?t=getfile&id=4313&private=0

Both images are produced by the same executables with the same data.
What make the difference is the following string that defines the table in the qtf file:
in the first picture it is
{{74:425:75:424:75:150:0:100:0@L
in the second one (that correct) it is
{{38:220:38:220:38:78:0:52:0@L

Both qtf table are generated automatically by
arrp.AsQtf();
method that I use to get for free a qtf table from a populated ArrayCtrl (just I add a header and footer to it).

From what I can see it seems the method AsQtf() is resolution dependent. Is it true?
If yes the proportion are not correct, at least at that I have used. My Upp version is the old 4603.
Only now I (believe to) have understood where the issue is. Tomorrow I'll try to modify the resolution on the windows 7 machine to test my hypothesis and let you know.

Thanks,
Luigi


  • Attachment: v1.png
    (Size: 9.42KB, Downloaded 192 times)
  • Attachment: v2.png
    (Size: 10.70KB, Downloaded 191 times)
Re: ArrayCtrl.AsQtf bug? [message #40687 is a reply to message #40684] Mon, 02 September 2013 14:16 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 12105
Registered: November 2005
Ultimate Member
Well, it is sort of resulution dependent, but only in sense that values are pixel widths of ArrayCtrl column. As those are merely ratios, it should not matter. I would be however concerned about those "0" in there...

All that said, AsQtf is just for simple cases...

Mirek
Re: ArrayCtrl.AsQtf bug? [message #40688 is a reply to message #40687] Mon, 02 September 2013 16:41 Go to previous message
forlano is currently offline  forlano
Messages: 1071
Registered: March 2006
Location: Italy
Experienced Contributor
Confirmed on the same machine!
On 1366x728 the document looks bad formatted, while it is ok at 1024x728.

mirek wrote on Mon, 02 September 2013 14:16

I would be however concerned about those "0" in there...
Mirek


Do you mean the :0: in {74:425:75:424:75:150:0:100:0@L ? It is because a coloumn is hided.

Quote:


All that said, AsQtf is just for simple cases...



No problem. I can reproduce myself that document. Just to let you know about this strange (for me) case.

Thanks,
Luigi
Previous Topic: Retrieving column index like a row
Next Topic: Two "basic" operations on GridCtrl
Goto Forum:
  


Current Time: Wed Nov 20 05:24:53 CET 2019

Total time taken to generate the page: 0.01176 seconds