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 15-May-2008, 06:57
adam.chyla adam.chyla is offline
New Member
 
Join Date: May 2008
Posts: 3
adam.chyla is on a distinguished road

Fltk 2


Hello.

1. How can I set transparent for widget?
I'am found this:
CPP / C++ / C Code:
http://www.fltk.org/doc-2.0/html/classWidget.html#a117
2. How can I set widget options from callback?
CPP / C++ / C Code:
#include <stdlib.h>

#include <fltk/Window.h>
#include <fltk/run.h>
#include <fltk/Color.h>
#include <fltk/Group.h>
#include <fltk/TabGroup.h>
#include <fltk/Button.h>
#include <fltk/SharedImage.h>

using namespace fltk;

void wyjscie_fun(Widget *, void *);

int main(int argc, char **argv)
{
	Window *window = new Window(640, 480, "Control - Centrum sterowania Cdlinux.pl");
	window->color(WHITE);
	window->image(SharedImage::get("images/control.gif"));
	window->begin();
//...

      			Widget *tab4_text1 = new Widget(15, 20, 200, 20);
			tab4_text1->box(FLAT_BOX);
			tab4_text1->labelsize(14);

//...

	window->end();
	window->show(argc, argv);
	return run();
}

void wyjscie_fun(Widget *, void *)
{
//now haw can i change tab4_text1 label
}
 
 

Recent GIDBlogFirst week of IA training 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
[Tutorial] GUI programming with FLTK dsmith FLTK Forum 10 03-Oct-2005 15:41
GIMcontacts - a gim fltk fluid venture cable_guy_67 FLTK Forum 0 14-Feb-2005 14:18
fltk window under design disapear in FLUID.... realken FLTK Forum 2 15-Jan-2005 20:22
FLTK with GLUT usmsci FLTK Forum 4 26-Nov-2004 16:21
Welcome to the FLTK Forums dsmith FLTK Forum 0 08-Sep-2004 06:58

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

All times are GMT -6. The time now is 15:30.


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