Jump to content

Scroll Bars still showing


Fossil Rock
 Share

Recommended Posts

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
Link to comment
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

Link to comment
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"


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

Link to comment
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


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

Link to comment
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.


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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...