Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-06-2008, 08:02 PM
Senior Member
 
Join Date: Jan 2008
Posts: 123
Default Getting rid of the scrollbar (browser control)

Im interested in if its possible to get rid of the d*mn scrollbar from browser control ?????????

Its ridiculous when its not needed :

its not active but its there on the right side. my exe is in exat fit with the website so i dont need it there

Code:
import SWFKit.*;
import WebBrowser;

// Create the web browser control
var ax = Global.createControl("Shell.Explorer.2", 0, 0, 375, 530);
// Fill the web browser control in the entire client area of the
// main window
var win = Global.getMainWnd();
ax.window.move(0, 0, win.clientRect.width, win.clientRect.height);

function onSize(type, width, height){
  ax.window.move(0, 0, width, height);
}

win.setEventHandler("onSize", onSize);
var wb = WebBrowser.fromID(ax.activex);

// handle event of the ActiveX control
function NavigateComplete2(control, url){
  _root.strace(url);
}

wb.setEventHandler("NavigateComplete2", NavigateComplete2);

// Browse web site
wb.Navigate2("www.mysite.com");
Reply With Quote
  #2 (permalink)  
Old 04-07-2008, 02:26 AM
Senior Member
 
Join Date: Jan 2008
Posts: 123
Default Fixed!

Problem solved easily

this part of code made my day:

Code:
function onSize(type, width, height){
  ax.window.move();
}
in move() just remove width and height and it sets control to auto size
Reply With Quote
Reply

Was this information helpful?    Yes No



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
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:08 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.