Sign in to follow this  
Followers 0
Fossil Rock

Scroll Bars still showing

8 posts in this topic

Koda correctly turns off scroll bars but Autoit shows them anyway.

Correctly turned off

Posted Image

Still showing

Posted Image

Any suggestions as to what might be the problem?


Agreement is not necessary - thinking for one's self is!

My-Colors.jpg

cuniform2.gif

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

You need to set your sizes and position as per your original code..

$Edit_1 = GUICtrlCreateEdit("AEdit1", 420, 10, 360, 520, $ES_WANTRETURN + $ES_MULTILINE + $WS_TABSTOP)

Edited by ChrisL

Share this post


Link to post
Share on other sites

I don't understand what you mean. How would I modify the code below to turn off the scrollbars?

#include <GUIConstants.au3>
; == GUI generated with Koda ==
$Form1 = GUICreate("AForm1", 215, 160, 192, 125)
$Edit1 = GUICtrlCreateEdit("", 8, 8, 193, 137, -1, $WS_EX_CLIENTEDGE)
GUICtrlSetData($Edit1, "AEdit1")
GUISetState(@SW_SHOW)
While 1
    $msg = GuiGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
        ExitLoop
    Case Else
    ;;;;;;;
    EndSelect
WEnd
Exit

Agreement is not necessary - thinking for one's self is!

My-Colors.jpg

cuniform2.gif

Share this post


Link to post
Share on other sites

I don't understand what you mean. How would I modify the code below to turn off the scrollbars?

#include <GUIConstants.au3>
; == GUI generated with Koda ==
$Form1 = GUICreate("AForm1", 215, 160, 192, 125)
$Edit1 = GUICtrlCreateEdit("", 8, 8, 193, 137, -1, $WS_EX_CLIENTEDGE)
GUICtrlSetData($Edit1, "AEdit1")
GUISetState(@SW_SHOW)
While 1
    $msg = GuiGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
        ExitLoop
    Case Else
;;;;;;;
    EndSelect
WEnd
Exit
Try

#include <GUIConstants.au3>
; == GUI generated with Koda ==
$Form1 = GUICreate("AForm1", 215, 160, 192, 125)
$Edit1 = GUICtrlCreateEdit("", 8, 8, 193, 137,$WS_EX_CLIENTEDGE)
GUICtrlSetData($Edit1, "AEdit1")
GUISetState(@SW_SHOW)
While 1
    $msg = GuiGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
        ExitLoop
    Case Else
   ;;;;;;;
    EndSelect
WEnd
Exit

All I did was loose the "-1"



Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

That works!! Thanks. Any idea what the -1 does?


Agreement is not necessary - thinking for one's self is!

My-Colors.jpg

cuniform2.gif

Share this post


Link to post
Share on other sites

That works!! Thanks. Any idea what the -1 does?

If you read the help file you will see that it sets up the edit box with the default styles which includes the scrollbars. :P


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

I saw that but didn't make the connection :P , thanks for pointing that out.


Agreement is not necessary - thinking for one's self is!

My-Colors.jpg

cuniform2.gif

Share this post


Link to post
Share on other sites

I saw that but didn't make the connection :P , thanks for pointing that out.

No problem, we can all miss stuff.


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0