SEAL Forum Index SEAL
The SEAL Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How can I add two Button to the Scrollbar like Windows ?

 
Post new topic   Reply to topic    SEAL Forum Index -> Programming Related
View previous topic :: View next topic  
Author Message
Francesco



Joined: 16 Jul 2002
Posts: 8

PostPosted: Sat Dec 28, 2002 2:09 am    Post subject: How can I add two Button to the Scrollbar like Windows ? Reply with quote

Example I have the normal scrollbar from seal this have no button , i would add two button one of the top and another to the buttom

hier is the source code :

void vscrollbar_draw ( p_view o )
{
t_rect r = o->get_local_extent(o);
t_point p;

BITMAP *out = o->begin_paint(o, &p, r);

if ( out ) {

o->background(o, out, rect_move(r, p.x, p.y));

rectfill(out, r.a.x+p.x, r.a.y+p.y+20, r.b.x+p.x, r.b.y+p.y-20, color_3d_face);



button(out, r.a.x+p.x, r.a.y+p.y+20, r.b.x+p.x, r.b.y+p.y-20, color_3d_shadow, color_3d_light);

VSCROLLBAR(o)->draw_bar(VSCROLLBAR(o));

};

o->end_of_paint(o, r);
};


how can do ?

two button like windows scrollbar ?

thanks
Back to top
View user's profile Send private message
_xduffy_
Administrator


Joined: 15 Mar 2002
Posts: 894
Location: Sweden

PostPosted: Fri Jan 03, 2003 7:41 am    Post subject: Reply with quote

Well, right now you can't there are no control for that, the scrollbar is as it is right now... But you could implement your own scrollbar if you want to...
_________________
http://xduffystuff.sourceforge.net/Desktop/
www.xduffy.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    SEAL Forum Index -> Programming Related All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group