BCX_EDIT function
Purpose: BCX_EDIT creates a multiline Edit control with auto-scrolling and a vertical scrollbar.
Syntax: hCtl = BCX_EDIT(Text$, _ hWndParent, _ hCtlID%, _ Xpos%, _ Ypos%, _ Width%, _ Height% _ [,WinStyle%] _ [,ExWinStyle%]) Parameters:
Return Value:
|
Remarks: To tab forward out of the BCX_TAB control use the CTRL-TAB key combination.
The default window Style for a BCX_EDIT control also can be changed by using the MODSTYLE function.
The following example uses the MODSTYLE function to add a horizontal scrollbar to the edit control.
GUI"BCX_Edit"SUBFORMLOADDIMForm1ASCONTROLDIMEdit1ASCONTROLDIMFocusASHWNDDIMRetVal% Form1=BCX_FORM("BCX_Edit",0,0,115,115)Edit1=BCX_EDIT("Start Typing And Watch The ScrollBars",Form1,12345,0,0,110,105)MODSTYLE(Edit1,WS_HSCROLL)CENTER(Form1)Focus=SetFocus(Edit1)SHOW(Form1)ENDSUBBEGINEVENTSENDEVENTS
For another example using the BCX_EDIT function see Demo.bas in the BCX\Gui_Demo\EZ_Gui folder.