LB Booster
« Grid of Textboxes using Windows API »

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



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 2 3  Notify Send Topic Print
 veryhotthread  Author  Topic: Grid of Textboxes using Windows API  (Read 90 times)
CryptoMan
New Member
Image


member is offline

Avatar




PM

Gender: Male
Posts: 46
xx Re: Grid of Textboxes using Windows API
« Reply #29 on: Aug 21st, 2016, 4:34pm »

Richard,

What I am missing in LB and LBB is using arrays on these and also passing arrays and structs to SUBs and FUNCTIONs and returning ARRAYSs or STRUCTs. And ARRAYS of STRUCTS. And STRUCTS like PASCAL and C.

Is this too difficult to implement in LBB?

Ofcourse, it will not be compatible with LBB but if anybody wants to use a SUPER LB can use it with LBB.

What stops us from

textbox #w.tb[i], 10, x*30-20, 100, 25 ?

I realize that this MAPHANDLE emulates this objective quite elegantly but why not arrays?

Or, like create a syntax like this but hidden in the BBC conversion translate it into MAPHANDLEs behind the scene.

Maybe, too much stunt?

But, I really liked the MAPHANDLE trick. Quite awesome.

« Last Edit: Aug 21st, 2016, 4:38pm by CryptoMan » User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1348
xx Re: Grid of Textboxes using Windows API
« Reply #30 on: Aug 21st, 2016, 5:24pm »

on Aug 21st, 2016, 4:34pm, CryptoMan wrote:
Is this too difficult to implement in LBB?

Two of the features you asked for are already implemented (and documented) in LBB: passing arrays into SUBs and FUNCTIONs, and arrays of STRUCTS:

Passing Arrays Code:
    dim MyArray$(100)
    MyArray$(50) = "Fifty"
    call MySub MyArray$()
    dummy = MyFunc(MyArray$())
    end
    
sub MySub localarray1$()
    print localarray1$(50)
end sub

function MyFunc(localarray2$())
    print localarray2$(50)
end function 

Array of Structures Code:
    struct MyStructArray(100) one as long, two as ptr, three as char[13]
    MyStructArray(50).three.struct = "Hello world!"
    print MyStructArray(50).three.struct 

Richard.
User IP Logged

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


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