BBC BASIC for Windows
« Calculated output to combobox »

Welcome Guest. Please Login or Register.
Apr 5th, 2018, 11:21pm



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

If you require a dump of the post on your message board, please come to the support board and request it.


Thank you Conforums members.

BBC BASIC for Windows Resources
Online BBC BASIC for Windows documentation
BBC BASIC for Windows Beginners' Tutorial
BBC BASIC Home Page
BBC BASIC on Rosetta Code
BBC BASIC discussion group
BBC BASIC for Windows Programmers' Reference

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Calculated output to combobox  (Read 832 times)
Matt
Developer

member is offline

Avatar




PM

Gender: Male
Posts: 210
xx Re: Calculated output to combobox
« Reply #7 on: Nov 30th, 2013, 8:10pm »

on Nov 30th, 2013, 5:18pm, ady wrote:
PROC_editbox(Dlg%, "Text box",165, 10, 190, 200, 65, &1)

A$="ggggggggg"

SYS "SetDlgItemText",!dlg%,165,A$

Doesn't work either

The main reason for this seems to be that you're not using the same variable: you create the dlg box with Dlg% and try to change it with dlg%. These are not the same. They need to be both dlg% or both Dlg%.

Matt
User IP Logged

admin
Administrator
ImageImageImageImageImage


member is offline

Avatar




PM


Posts: 1145
xx Re: Calculated output to combobox
« Reply #8 on: Nov 30th, 2013, 8:37pm »

on Nov 30th, 2013, 8:10pm, Matt wrote:
The main reason for this seems to be that you're not using the same variable: you create the dlg box with Dlg% and try to change it with dlg%.

I noticed that, but the fact remains that you can't write to a combobox that way, so even if the variables had been the same his original code wouldn't have worked (although the textbox version would).

We badly need that GUILIB library!

Richard.
« Last Edit: Nov 30th, 2013, 11:34pm by admin » User IP Logged

ady
Junior Member
ImageImage


member is offline

Avatar




PM


Posts: 55
xx Re: Calculated output to combobox
« Reply #9 on: Dec 1st, 2013, 3:49pm »

Got it sorted using the combobox system, thanks chaps

We badly need that GUILIB library!

Took me 2 days to do a 5 minute job there, definitely agree
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