![]() |
|
|
|||||||
| Javascript and Ajax Questions and information about working with Ajax and Javascript in Delphi for PHP. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
I put the image in dbgrid...but now i discovered that i can't scroll the grid...i have limitcount = -1 and limitstart=-1..
how can i do to resolve this problem? thanks a lot Last edited by kelinda; 29th January 2010 at 16:19. |
| Sponsored Links |
|
|
|
|||
|
Ok 405hp
thanks a lot the link below...show you what i mean... http://www.pratesi.it/ordini/uord.php |
|
||||
|
I moved the
Code:
qx.OO.defineClass('ImageDataCellRenderer', qx.ui.table.IconDataCellRenderer,
function(wide, high) {
qx.ui.table.IconDataCellRenderer.call(this);
this._iconWidth = wide;
this._iconHeight = high;
});
qx.Proto._identifyImage = function(cellInfo) {
var IconDataCellRenderer = qx.ui.table.IconDataCellRenderer;
var image = {
imageWidth: this._iconWidth,
imageHeight: this._iconHeight,
top: 0
};
image.url = 'http://www.pratesi.it/ordini/immaginiP/' + cellInfo.value;
return image;
}
|
|
||||
|
The number format object
Code:
var NFA=new qx.util.format.NumberFormat(); NFA.setMinimumFractionDigits(2); NFA.setMaximumFractionDigits(2); NFA.setGroupingUsed(false); var NFL=new qx.util.format.NumberFormat(); NFL.setGroupingUsed(false); |
|
|||
|
thanks 405
i change the code as you told me....but now the mouse doens't change in pointer.... Unit1 mycode: var NFA = new qx.util.format.NumberFormat(); //there are options to locale like qx.util.format.NumberFormat('de') NFA.setMinimumFractionDigits( 2 ); NFA.setMaximumFractionDigits( 2 ); NFA.setGroupingUsed(false); var NFL = new qx.util.format.NumberFormat(); NFL.setGroupingUsed(false); qx.OO.defineClass('ImageDataCellRenderer', qx.ui.table.IconDataCellRenderer, function(wide,high) { qx.ui.table.IconDataCellRenderer.call(this); this._iconWidth = wide; this._iconHeight = high; } ); qx.Proto._identifyImage = function(cellInfo) { var IconDataCellRenderer = qx.ui.table.IconDataCellRenderer; var image = {imageWidth:this._iconWidth, imageHeight:this._iconHeight, top:0}; image.url ='http://www.pratesi.it/ordini/immaginiP/'+ cellInfo.value; return image; } function ThisIsUseful(aaa) { document.body.style.cursor='pointer'; if (aaa.indexOf('/') > -1) answer = aaa.substring(aaa.lastIndexOf('/')+1,aaa.length); findObj('Image4').src='http://www.pratesi.it/ordini/immaginiG/'+ answer; vcl.show('pnlfoto_outer'); } function ThisIsUsefulOUT(bbb) { document.body.style.cursor='default'; vcl.hide('pnlfoto_outer'); } qx.Proto._getContentHtml = function(cellInfo) { var IconDataCellRenderer = qx.ui.table.IconDataCellRenderer; var urlAndToolTip = this._getImageInfos(cellInfo); var html = IconDataCellRenderer.IMG_START; var mypathimage = new Object; mypathimage.src = urlAndToolTip.url; html += urlAndToolTip.url + '\"' + 'width=' + '\"' + urlAndToolTip.imageWidth + '\"' + 'height=' + '\"' + urlAndToolTip.imageHeight + '\"' + 'onmouseover=' + '\" ThisIsUseful(this.src); ' +'\"' + 'onmouseout=' + '\" ThisIsUsefulOUT(1); '; html += IconDataCellRenderer.IMG_END; return html; } "); |
|
|||
|
Quote:
In that way you can operate directly on it and not try to overuse all document. In your situation you have a pointer property set in a inner element than all document body overriding setting in the body. Try to understand next code... comments in-line Code:
function ThisIsUseful(xxx) // changed line
{
var aaa = xxx.src; // added line
xxx.style.cursor='pointer'; // changed line
if (aaa.src.indexOf('/') > -1)
answer = aaa.substring(aaa.lastIndexOf('/')+1,aaa.length);
findObj('Image4').src='http://www.pratesi.it/ordini/immaginiG/'+ answer;
vcl.show('pnlfoto_outer');
}
function ThisIsUsefulOUT(xxx) // changed line
{
xxx.style.cursor='default'; // changed line
vcl.hide('pnlfoto_outer');
}
qx.Proto._getContentHtml = function(cellInfo)
{
var IconDataCellRenderer = qx.ui.table.IconDataCellRenderer;
var urlAndToolTip = this._getImageInfos(cellInfo);
var html = IconDataCellRenderer.IMG_START;
var mypathimage = new Object;
mypathimage.src = urlAndToolTip.url;
html += urlAndToolTip.url + '\"'
+ 'width=' + '\"'
+ urlAndToolTip.imageWidth
+ '\"' + 'height=' + '\"'
+ urlAndToolTip.imageHeight + '\"'
// changed parameters to ThisIsUseful() and ThisIsUsefulOUT()
+ 'onmouseover=' + '\" ThisIsUseful(this); ' +'\"'
+ 'onmouseout=' + '\" ThisIsUsefulOUT(this); ';
html += IconDataCellRenderer.IMG_END;
return html;
}
__________________
Ciao. Mimmo. |