Indigo Rose Software
  #1  
Old 01-13-2007
RizlaUK's Avatar
RizlaUK RizlaUK is offline
Forum Member
 
Join Date: May 2006
Location: London UK
Posts: 3,129
Pin Button + Code (set ontop on the fly)

Hi Guys, i wanted to let the user have the choice of weather to have the app pinned or unpinned (ontop) i took the images from the custom browser example on Azmanar's Site and gave them alphs trans (although my psp skills are not great and some of you could proberly do a better job)

i made a button out of them, make the button toggle and use this code in the onclick event of the button

Quote:
onTop = Button.GetState("Button1");
if onTop == 1 then
Window.SetOrder(Application.GetWndHandle(), HWND_TOPMOST);
else
Window.SetOrder(Application.GetWndHandle(), HWND_NOTOPMOST);
end
Page.Redraw();
now your users can pin and unpin your app on the fly

like i say, its not the greatest button, and if anyone feels like tidying it up a lil bit id love to have it

Last edited by RizlaUK; 02-01-2009 at 12:35 PM.
Reply With Quote
  #2  
Old 02-16-2007
bobbie's Avatar
bobbie bobbie is offline
Forum Member
 
Join Date: Feb 2005
Location: Mn
Posts: 770
Thanks RizlaUK, works great..
Reply With Quote
  #3  
Old 02-17-2007
mz241508's Avatar
mz241508 mz241508 is offline
Forum Member
 
Join Date: Oct 2006
Location: London, UK
Posts: 349
thanks for sharing!!!
Reply With Quote
  #4  
Old 02-19-2007
wasim21k's Avatar
wasim21k wasim21k is offline
Forum Member
 
Join Date: Oct 2006
Posts: 209
thanx

thanx m8, its gr8 tip.
always looking for something little tips.
Reply With Quote
  #5  
Old 04-04-2007
wasim21k's Avatar
wasim21k wasim21k is offline
Forum Member
 
Join Date: Oct 2006
Posts: 209
Grin not working for me.

sorry RizlaUK today i was trying to use this pin
on click of button but its not working for me
am i missing something?
Reply With Quote
  #6  
Old 04-04-2007
GoOgLe's Avatar
GoOgLe GoOgLe is offline
Forum Member
 
Join Date: Mar 2007
Posts: 450
here u go wasim21k

an example
Attached Files
File Type: apz pin button.apz (208.4 KB, 176 views)
Reply With Quote
  #7  
Old 04-04-2007
jimmyID jimmyID is offline
Forum Member
 
Join Date: May 2006
Posts: 1
Arrow

Style : Toggle.

Saludos
Reply With Quote
  #8  
Old 04-04-2007
mindstitchdr's Avatar
mindstitchdr mindstitchdr is offline
Indigo Rose Customer
 
Join Date: Dec 2004
Location: Texas
Posts: 239
Thanks RizlaUK, works great.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Article: Using Authenticode Code Signing Certificates Ted Sullivan Setup Factory 8.0 Examples 4 10-31-2007 10:03 AM
Using a slider to show audio posiion in time Randy3265 AutoPlay Media Studio 5.0 16 01-07-2006 09:34 AM
How to set the paragraph of a page from a button abcnormal AutoPlay Media Studio 6.0 8 12-27-2005 03:49 AM
prob with togle background audio with button Jonas DK AutoPlay Media Studio 5.0 4 04-11-2005 09:06 PM
Example: Creating an on/off button to toggle background audio Jonas DK AutoPlay Media Studio 5.0 Examples 0 07-10-2004 03:54 PM


All times are GMT -6. The time now is 01:22 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software