RizlaUK
01-13-2007, 10:39 AM
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 (http://www.azman.info/ams/) 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
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
i made a button out of them, make the button toggle and use this code in the onclick event of the button
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