Dialogue question

A PocketC native palm library offering native forms and assorted utilities

Postby Mikael on Fri Mar 25, 2005 6:40 pm

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
Mikael
 
Posts: 156
Joined: Sun Apr 13, 2003 9:19 am
Location: Denmark

Postby jstadolnik on Fri Mar 25, 2005 11:05 pm

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
jstadolnik
 
Posts: 1741
Joined: Wed Dec 06, 2000 3:34 am
Location: USA

Postby Mikael on Sat Mar 26, 2005 4:39 am

Thanks Joe,
I get it now. ;)

Mikael
Mikael
 
Posts: 156
Joined: Sun Apr 13, 2003 9:19 am
Location: Denmark


Return to Pocket Toolbox

Who is online

Users browsing this forum: No registered users and 3 guests

cron