LB Booster
« Text Editor Control »

Welcome Guest. Please Login or Register.
Apr 1st, 2018, 03:46am



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
We apologize Conforums does not have any export functions to migrate data.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

Thank you Conforums members.
Speed up Liberty BASIC programs by up to ten times!
Compile Liberty BASIC programs to compact, standalone executables!
Overcome many of Liberty BASIC's bugs and limitations!
LB Booster Resources
LB Booster documentation
LB Booster Home Page
LB Booster technical Wiki
Just BASIC forum
BBC BASIC Home Page
Liberty BASIC forum (the original)

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Text Editor Control  (Read 350 times)
Jack Kelly
Full Member
ImageImageImage


member is offline

Avatar




Homepage PM

Gender: Male
Posts: 106
xx Text Editor Control
« Thread started 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)?
User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1348
xx Re: Text Editor Control
« Reply #1 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.
User IP Logged

Jack Kelly
Full Member
ImageImageImage


member is offline

Avatar




Homepage PM

Gender: Male
Posts: 106
xx Re: Text Editor Control
« Reply #2 on: Jun 21st, 2016, 10:26am »

Thanks, Richard. That did the trick.
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls