www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/01/04/14:25:00

From: "Damian Yerrick" <snews AT pineight DOT 8m DOT comMUNIST-PIGS-AOL>
Newsgroups: comp.os.msdos.djgpp
References: <199912200600 DOT BAA12127 AT delorie DOT com> <385F9E8D DOT CC82EFB AT ujf-grenoble DOT fr> <387106D4 DOT 3A2492F1 AT ufu DOT br> <3871D6C3 DOT C5F640FB AT ufu DOT br>
Subject: Re: (Allegro) Listbox Question 2
Lines: 44
Organization: Pin Eight Software <http://pineight.8m.com/>
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
Message-ID: <zypc4.310$WM5.9167@dfiatx1-snr1.gtei.net>
X-Trace: +rnM+l3JzxQcPWtl99JQ/RCnQHw6lEoQ34zYCOq2dZhU1CrMDawV2XTiCF1+c/6WDoPmiBZdup12!s0Uz2z4lX/92m2aP2g85Tjh7UPNrQSIQUC5ajnAGTVZKZX7vrAjJF7kmL1Etlk1Lfe0mez4=
X-Complaints-To: abuse AT gte DOT net
X-Abuse-Info: Please be sure to forward a copy of ALL headers
X-Abuse-Info: Otherwise we will be unable to process your complaint properly
NNTP-Posting-Date: Tue, 04 Jan 2000 16:51:43 GMT
Distribution: world
Date: Tue, 04 Jan 2000 16:51:43 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"Bacharelado Curso Ciencia Computacao-14" <bcc14 AT ufu DOT br> wrote:
> >  Hi all...
> >
> >  I have a problem...
> >
> >  I want to initialize the listbox to be selected to an especific
> > position...
> >
> >  Let's say, i do do do_dialog(___,_) in which the dialog wave a list_box
> > component.
> >
> >  when i show the dialog, i want the list box to be selected to an
> > especific position (let's say, position 2). How can I do that?
>
> Someone (I don't remember who) told-me to change the d1, but it did't
> work...
> I put a variable in place of d1 (say position_selector), and i changed the
> value of it and drew the dialog, but the bar in the listbox was in the
first
> position, as ever...

It initializes the DIALOG at the start of the function.
Try doing it the hard way, by manually modifying
d1 just before you draw the dialog:
  dlg[where_the_list_is].d1 = position_selector;
  foo = do_dialog(dlg, where_the_list_is);


--
Damian Yerrick    http://yerricde.tripod.com/
View full .sig:  http://www.rose-hulman.edu/~yerricde/sig.html










and now you must pay...


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019