delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/01/03/16:25:05

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>
Subject: Re: (Allegro) Listbox Question
Lines: 21
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: <GY7c4.487$B74.19449@dfiatx1-snr1.gtei.net>
X-Trace: /KiKeUSQZKKSKAlWNl0Gfa/KTeq/Ej3ye83dSUNOuiOYFvvo6Yrs/I0I4WUtko5Ec6Fya3xqU6ZP!FoTQCLbJFqGqXvuK9ZQZhNR+KclvfZdTN9sqS/xcoD2ZSA4FGqAyHJC4w2FcVdlk9ZIoFfxS
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: Mon, 03 Jan 2000 20:50:46 GMT
Distribution: world
Date: Mon, 03 Jan 2000 20:50:46 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:
>
>  Let's say, i do do_dialog(___,_) in which the
> dialog wave a list_box component.

d_list_proc

>  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?

RTFM: allegro.txt: d_list_proc()
"The index of the selected item is held in the d1 field, and
d2 is used to store how far it has scrolled through the list."

Try storing 2 into the d1 field of the dialog item in question.

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


- Raw text -


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