Page 1 of 1

PostPosted: Fri Mar 25, 2005 6:40 pm
by Mikael
I can't seem to get the objects within this dialogue to work:

case 9441: //done button
resultOfJumpTo=FgetText(9442);
if(startPos==0){
Dialog(9451, 20, 80, 120, 45, "Saved Position error!");
Label(9452,30,95,"Saved position not found!");
Button(9453,0x0,60,105,20,16,"OK");
Fctl(DRAW,9451);
...
The dialogue shows, but not the objects.

Further up in the function, I'm using a resource form and some dynamic buttons and lists - all of which work fine. I don't know if these could be preventing the dialogue's objects from drawing.

Mikael

PostPosted: Fri Mar 25, 2005 11:05 pm
by jstadolnik
You've positioned the objects off the dialog. The coordinates should be relative to the upper left hand corner of the dialog and not the screen.

Joe

The PToolboxLib guy.
http://www.geocities.com/retro_01775/PToolboxLib.htm

PostPosted: Sat Mar 26, 2005 4:39 am
by Mikael
Thanks Joe,
I get it now. ;)

Mikael