Topic: position of de Image-backbutton

Sipleviewer pro

Can I change the position of de Image-backbutton from left -middel of the image to left-down of the image.

Thnx

Leon

www.detailinbeeld.nl

Re: position of de Image-backbutton

Yes, in imagearea.as around line 205, you  can set the x and y of baxk and next btns.

hth
Richard

Richard

in order to better assist you, please provide a url, relevant code and details about your problem.
Thanks!

Re: position of de Image-backbutton

Dear Flash Ho

Can You tell me how I must chance the line

mBackBtn.setBtnPosn(imgx,imgy + h/2  - btnW/2);       
mBackBtn.setHitPosn(imgx - fw,imgy- fw);
mBackBtn.setHitSize(w/3,h+ fw*2);       
mNextBtn.setBtnPosn(imgx + w - btnW,imgy + h/2  - btnW/2);
mNextBtn.setHitPosn(imgx + fw + w*2/3,imgy - fw);
mNextBtn.setHitSize(w/3,h+ fw*2);


Thnx fot help

Re: position of de Image-backbutton

Hi Leon,
the code is dependent on your button size so if you changed the button symbol, you will need to adjust the code.

for example , this puts the buttons  below the image and my button size is 33 x33 ( from memory)
Basically, location considers, image width,x, image ht,y, frame width,fw, and button width and ht.

mBackBtn.setBtnPosn(imgx -fw + btnW,imgy + h  + btnW );       
mBackBtn.setHitPosn(imgx - fw - btnW,imgy +h + btnW/2);
mBackBtn.setHitSize(w/4,h/4);       
mNextBtn.setBtnPosn(imgx + w  - btnW,imgy + h  + btnW );       
mNextBtn.setHitPosn(imgx + fw + w*2/3 +btnW,imgy + h + btnW/2 );
mNextBtn.setHitSize(w/4,h/4);


hth
Richard

Richard

in order to better assist you, please provide a url, relevant code and details about your problem.
Thanks!