Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3368: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3370: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3371: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3372: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
OrbWorks Community Forum • View topic - BITMAP ON BUTTONS

BITMAP ON BUTTONS

Discuss PocketC for CE (including Desktop Edition)

Postby rawn shea on Wed May 23, 2001 2:45 pm

I am trying to use a bitmap to label a button. I am unable to make the bitmap appear and retain the button function. is this behaviopr unsupported? see code below. Any bitmap of approximately 12 x 12 willm substitute for arrow_left.

//CODE FOLLOWS//
#include "\\PocketC\\include\\pcheader.h"
#define UP_PAN 114
#define DOWN_PAN 111
#define LEFT_PAN 112
#define RIGHT_PAN 113
#define EXIT 110
int evnt;
main()
{
//first make the buttons
createctrl("BUTTON","v",WS_VISIBLE | WS_CHILD,0,465,40,20,20,DOWN_PAN);
createctrl("BUTTON",(char)94,WS_VISIBLE | WS_CHILD,0,485,40,20,20,UP_PAN);
createctrl("BUTTON","<",WS_VISIBLE | WS_CHILD,0,465,60,20,20,LEFT_PAN);
createctrl("BUTTON",">",WS_VISIBLE | WS_CHILD,0,485,60,20,20,RIGHT_PAN);
createctrl("BUTTON","QT",WS_VISIBLE | WS_CHILD,0,465,80,20,20,EXIT);
//now paste bitmaps over the buttons
drawbitmap("\\PocketC\\bitmp\\arrow_left.2bp",465,60);
drawbitmap("\\PocketC\\bitmp\\arrow_right.2bp",485,60);
//drawbitmap("\\PocketC\\bitmp\\arrow_right.2bp",350,40);
//drawbitmap("\\PocketC\\bitmp\\arrow_up.2bp",300,60);
//drawbitmap("\\PocketC\\bitmp\\arrow_down.2bp",350,60);
menu_off();
//next make the decision loop
flushevent();
event(1);
evnt=guiid();
while (evnt != EXIT)
{
switch (evnt)
{
case UP_PAN: text(70,20,"this is pan up");getc();text(70,20," ");break;
case DOWN_PAN:text(70,20,"this is pan down");getc();text(70,20," ");break;
case LEFT_PAN:text(70,20,"this is pan left");getc();text(70,20," ");break;
case RIGHT_PAN:text(70,20,"this is pan right");getc();text(70,20," ");break;
case EXIT:break;
}
sleep(450);
flushevent();
event(1);
evnt=guiid();
}
quit();
}
//END CODE
rawn shea
 
Posts: 12
Joined: Wed Mar 07, 2001 6:35 pm

Postby Justinespinosa on Wed May 23, 2001 5:37 pm

This isn't supported. You can't put bitmaps on the buttons.


J.Espinosa

OUTS Softwares
J.Espinosa

OUTS Softwares
Justinespinosa
 
Posts: 156
Joined: Wed Dec 06, 2000 2:30 pm
Location: Switzerland


Return to PocketC for CE

Who is online

Users browsing this forum: No registered users and 1 guest

cron