LB Booster
« Creating multiple controls in a loop »

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



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: Creating multiple controls in a loop  (Read 288 times)
Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1348
xx Creating multiple controls in a loop
« Thread started on: Feb 6th, 2015, 1:36pm »

Somebody over at the Liberty BASIC Community Forum is asking about how to create multiple controls in a loop. It's not possible in LB4.04 but it is possible in LBB using MAPHANDLE:

Code:
  for box = 1 to 10
    statictext #WIN.st, str$(box), 95, 78 + box*20, 18, 20
    textbox #WIN.tb1, 115, 72 + box*20, 350, 25
    textbox #WIN.tb2, 461, 72 + box*20, 40, 25
    stylebits #WIN.tb2, _ES_RIGHT, 0, 0, 0
    maphandle #WIN.st, "#WIN.statictext";box
    maphandle #WIN.tb1, "#WIN.TEXT";box
    maphandle #WIN.tb2, "#WIN.TEXT";box;".TEMP"
  next
  WindowWidth = 600
  open "Looped controls" for window as #WIN
  wait 


That code creates this window:

User Image

Perhaps somebody with access to the LB forum could tell the OP about this option.

Richard.
User IP Logged

Cor
New Member
Image


member is offline

Avatar




PM

Gender: Male
Posts: 8
xx Re: Creating multiple controls in a loop
« Reply #1 on: Feb 12th, 2015, 8:06pm »

That somebody from Conforums is writing this reply. I've just gotten back into the coding loop. Been out of it for about two and a half years.

I was glad to see rtr respond to my question. Like so many people, I have given up on getting a quick new release of LB to help solve my problems. Such a shame that a released beta has an expiration date. An American would say: DUH?? The 'in a few days' inevitably turns into at least weeks if not months, so this is a welcome solution. Thank you Russell.
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