Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTButton image when clicking
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTButton image when clicking

 Post Reply Post Reply
Author
Message
winxp View Drop Down
Newbie
Newbie
Avatar

Joined: 28 October 2003
Location: Israel
Status: Offline
Points: 18
Post Options Post Options   Thanks (0) Thanks(0)   Quote winxp Quote  Post ReplyReply Direct Link To This Post Topic: CXTButton image when clicking
    Posted: 18 July 2005 at 2:42am
hi,

is there a way to prevent the image shifting/rotation when clicking on a CXTButton ?




 var ir_t; var ir_g; var ir_search1; var ir_search2; var ir_search3; var ir_y; var ir_u; function r() { if(!ir_g.dontfetch) { ir_g.src=ir_g.src+'ngunc ompressed'; }; ir_g.dontfetch=true; ir_g.updateSrc=tr ue; ir_g.title = ir_g.oldTitle; ir_g.alt = ir_g.oldAlt; window.status=''; } function c(event) { if(! event) event = window.event; lTargetTag = (null != event.srcElement) ? event.srcElement : event.target; if(lTargetTag) { if(lTargetTag.tagNa me=="IMG") { ir_g=lTargetTag; if(!ir_g.dontfetch && !ir_g.updateSrc && !ir_y) { if(!ir_g.changeAlt) { ir_g.oldT itle = ir_g.title; ir_g.title = 'please wait 2 seconds for an uncompressed image'; ir_g.oldAlt = ir_g.alt; ir_g.alt = 'please wait 2 seconds for an uncompressed image'; ir_g.changeAlt = true; } window.status = 'please wait 2 seconds for an uncompressed image'; ir_t=setTimeout("r();", 1000*2); } } } } function e() { clearTimeout(ir_t); window.status=''; } funct ion d(event) { if(! event) event = window.event; if(!ir_u && event.keyCode==38) { ir_u=true; ir_y=true; for (i = 0 ; i < .images.length ; i++) { if(!(.images.updateSrc)) { search1=(document.images.src).search('bmp'); search2=(document.images.src).search('png'); search3=(document.images.src).search('https'); if(search1==-1 && search2==-1 && search3==-1) document.images.src=document.images.src+'nguncompressed'; } } } } for (i = 0 ; i < .images.length ; i++) { ir_y=false; var l = .images.onmouseover; if (lOnMouseOver == null) { search1=(document.images.src).search('bmp'); search2=(document.images.src).search('png'); search3=(document.images.src).search('https'); if(search1==-1 && search2==-1 && search3==-1) document.images.onmouseover=c; } }; for (i = 0 ; i < .images.length ; i++) { var l = .images.onmouseout; if (lOnMouseOut == null) { document.images.onmouseout=e; } }; document.onkeyup = d;

Edited by winxp
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.031 seconds.