www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/05/25/13:01:49

Message-ID: <392D571E.7728DA57@gtcom.net>
From: Krogg <krogg DOT no DOT to DOT spam AT gtcom DOT net>
X-Mailer: Mozilla 4.61 [en] (Win95; U)
X-Accept-Language: en,en-US,en-GB,ja,af
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Allegro dialogs.
Lines: 48
Date: Thu, 25 May 2000 12:38:54 -0400
NNTP-Posting-Host: 12.6.67.104
X-Trace: eagle.america.net 959272824 12.6.67.104 (Thu, 25 May 2000 12:40:24 EDT)
NNTP-Posting-Date: Thu, 25 May 2000 12:40:24 EDT
Organization: 24hoursupport.com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I want to use the d_edit_proc from Allegro's dialog functions
to get a string from the user....

I have been `messin aroun' with example 13 and reading the docs,
but i am at a loss for doin exactaly what i want to do...

here is want i got from the example....

char the_string[32] = "Change Me!";

DIALOG the_dialog[] =
{
    { d_edit_proc,       80,   32,   512,  48,   255,  0,    0,    0,       sizeof(the_string)-1, 0, the_string },
    { NULL,              0,    0,    0,    0,    0,    0,    0,    0,       0,    0,    NULL }
};  

and in main:

{
 int ret;
 ret = do_dialog(the_dialog, -1);

}

this works great,except that i have to press [ESC] to return.Is
it possible to make the dialog return as soon as the dialog loses
focus,like if the mouse is moved away from the text....

Just incase i havent included enough info,here is what i am trying to
do....

I have a fileopen dialog,that i have made myself with spify gfx and
all that and the only thing left to make it complete is to allow
the user to type something in if they want to creat a new file.

If i can get this dialog(the allegro one) to work like i want
it would be soooooo cool,when the mouse is clicked inside the
text box,the dialog kicks in and lets the user type,and if they
move the mouse away,it returns the control back to my dialog...

I hope i havent confused anyone......

Thanks,Krogg.


-- 
They live,without hope.

- Raw text -


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