Author |
Topic: The future of LBB - please read (Read 3271 times) |
|
SarmedNafi
Junior Member
member is offline


Posts: 93
|
 |
Re: The future of LBB - please read
« Reply #15 on: Feb 8th, 2015, 02:43am » |
|
I mean:
List View / Grid control
Are they available on BBC?
|
|
Logged
|
|
|
|
Richard Russell
Administrator
member is offline


Posts: 1348
|
 |
Re: The future of LBB - please read
« Reply #16 on: Feb 8th, 2015, 10:02am » |
|
on Feb 8th, 2015, 02:43am, SarmedNafi wrote:| List View / Grid control. Are they available on BBC? |
|
The List View is a standard Windows control, so it is available to any language which supports calling the Windows API - and that includes both BBC BASIC and Liberty BASIC. Indeed, demo programs which use a List View control are available for both those languages.
The issue is not whether the List View is available but whether it is supported as a native (built-in) control. BBC BASIC has no built-in controls - it's not a Windows language after all - the only way of creating any standard UI feature (even something as simple as a textbox) is via direct API calls - although these will usually be in a library to isolate the user from the low-level complexity.
So if you want to use a List View in LB 4.04 or LBB go ahead, but I have no plans to make it available as a native control.
Richard.
|
|
|
|
bluatigro
Full Member
member is offline


Gender: 
Posts: 111
|
 |
Re: The future of LBB - please read
« Reply #17 on: Aug 17th, 2015, 09:11am » |
|
i want to do : Code:
for i = 0 to 5
button #m.btn;i,str$(i),ul,btn,i*50,50,50,50
next i
wait
sub btn h$
b = val( right$( #h$ , len( #h$ ) - 5 )
notice "you pushed button " ; b
end sub
this kind of code i want to do whit all the GUI controls
in the IDE i want more than one texteditor-page so i can load more codes at one time
|
|
Logged
|
|
|
|
Richard Russell
Administrator
member is offline


Posts: 1348
|
 |
Re: The future of LBB - please read
« Reply #18 on: Aug 17th, 2015, 09:54am » |
|
on Aug 17th, 2015, 09:11am, bluatigro wrote:| this kind of code i want to do with all the GUI controls |
|
Yes, you can! LBB already supports that:
Code:for i = 0 to 5
button #m.btn,str$(i),btn,ul,i*50,50,50,50
maphandle #m.btn, "#m.btn";i
next i
open "Multiple buttons" for window as #m
wait
sub btn h$
b = val( right$( h$ , 1))
notice "you pushed button " ; b
end sub Richard.
|
|
Logged
|
|
|
|
|