LB Booster
Programming >> Liberty BASIC language >> Text Editor Control
http://lbb.conforums.com/index.cgi?board=lblang&action=display&num=1466492351

Text Editor Control
Post by Jack Kelly on Jun 21st, 2016, 06:59am

Is there any way to place a text editor control in a window without getting the top-line menu bar with "Edit" (and still have the right-click popup menu)?
Re: Text Editor Control
Post by Richard Russell on Jun 21st, 2016, 08:13am

on Jun 21st, 2016, 06:59am, Jack Kelly wrote:
Is there any way to place a text editor control in a window without getting the top-line menu bar with "Edit" (and still have the right-click popup menu)?

Yes, you can just remove the menu bar entirely:

Code:
    texteditor #w.te, 10, 10, 280, 300
    open "No Menu Bar" for window as #w
    hw = hwnd(#w)
    calldll #user32, "SetMenu", hw as ulong, 0 as long, r as void
    #w.te "I am a texteditor control."
    #w.te "Right-click me for the popup menu."
    wait 

Richard.

Re: Text Editor Control
Post by Jack Kelly on Jun 21st, 2016, 10:26am

Thanks, Richard. That did the trick.