GIDForums  

Go Back   GIDForums > Computer Programming Forums > FLTK Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 12-Dec-2007, 00:04
Invincible Invincible is offline
New Member
 
Join Date: Jul 2007
Posts: 23
Invincible is on a distinguished road

Making Portion of a Widget Transparent


Hi ,

I read making window transparent thread it was very interesting ,my question
Suppose I want to create particular portion of the widget (not window)transparent in FLTK
how can I do that.

Lets say coordinates of widget are x = 0 ,y = 0 ,width = w ,height = h
I want particular portion say
x+10,y+10,w-20,h-20 to be transparent how can I do the same
__________________
Everything you see is a Dream...
  #2  
Old 13-Jan-2008, 04:26
rbp rbp is offline
Junior Member
 
Join Date: Nov 2005
Location: Melbourne, Australia
Posts: 67
rbp will become famous soon enough

Re: Making Portion of a Widget Transparent


for a start I believe you will need to use FLTK2, and then overload the draw_background() Widget function:
http://www.fltk.org/doc-2.0/html/classWidget.html#a117
  #3  
Old 23-Jan-2008, 06:23
bluekid bluekid is offline
Junior Member
 
Join Date: Apr 2006
Posts: 43
bluekid will become famous soon enough

Re: Making Portion of a Widget Transparent


read background as an image
draw widget
put region over a widget
  #4  
Old 30-May-2008, 14:15
adam.chyla adam.chyla is offline
New Member
 
Join Date: May 2008
Posts: 3
adam.chyla is on a distinguished road

Re: Making Portion of a Widget Transparent


How can I put region over a widget?
 
 

Recent GIDBlogProblems with the Navy (Officers) by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Saving widget graphics silverstar FLTK Forum 3 12-Jun-2007 13:45
drawing widget paolo FLTK Forum 6 17-Apr-2006 04:16
FLTK clock box widget cable_guy_67 FLTK Forum 0 09-Jul-2005 18:51
widget coordinate relative to parent ? Marius Giurgi FLTK Forum 10 10-Mar-2005 06:21

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 20:27.


vBulletin, Copyright © 2000 - 2010, Jelsoft Enterprises Ltd.