![]() |
|
#1
|
|||
|
|||
A couple questions about Fl_TabsI'm a recent FLTK user trying to figure out some details.
I have two questions about Fl_Tabs. (1) (This probably applies to other widgets.) When my window initially comes up, the first tab is on top (naturally), and none of the tab labels have that thin box around them. Clicking on a tab label brings that tab to the front, but it also draws a thin black box around the tab label. Can I get rid of the thin black box? I don't think it looks very good. (2) Is there a way to "beef up" the upper edge of the tabs, so that the selected tab more clearly appears to be on top? Currently there is only a thin white line. Suggestions, and pointers to docs, would be greatly appreciated. |
|
#2
|
||||
|
||||
|
Quote:
Hi WW. Welcome to GIDForums. Unfortunately, I don't have an immediate answer to your question. I ussually don't post unless I have something constructive to say, but I do know excactly what you are talking about. I am going to do some research on this and see if I can find out anything. I would also encourage you to post if you find out any pertinent information. The FLTK forum is quite new here and we are hoping to attract some more traffic as time goes by. I hope that you stick around and continue to ask/answer questions here as you see fit. Hopefully, I can get some better info for you on your question over the weekend. Thanks! __________________
The best damn Sports Blog period. |
|
#3
|
|||
|
|||
|
Thanks for the welcome, dsmith. Sure is quiet around here :-) The FLTK newsgroup seems pretty active, but I do like forums better than newsgroups.
I posted the same question on the newsgroup. Micheal Sweet suggested using Fl::visible_focus(0) to get rid of the thin black focus box, and that worked. I had to do some experimenting to get tabs that I liked a little better than the default. One easy change was to set the box type of the Fl_Tabs widget to FL_EMBOSSED_BOX. This makes the edge of the tab a bit more substantial. To really emphasize the selected tab, I added a callback to the Fl_Tabs widget that changes the font of the selected tab's label to bold, and increases its size by two. Here is the callback: CPP / C++ / C Code:
I also had to change the labelsize and labelfont of the first tab created to 16 and FL_HELVETICA_BOLD, respectively, since the first one created is the one on top initially. I've uploaded a sample. Last edited by dsmith : 07-Oct-2004 at 07:01.
Reason: Please use [c] & [/c] for syntax highlighting
|
|
#4
|
||||
|
||||
|
Quote:
First of all thank you for posting back with a solution. You and I both like forums better than the newsgroups. Over time we should attract some more attention. A big reason for my requesting an FLTK forum is that I have a ton of questions myself... Anyway, I hope that you will stick around and feel free to post any questions, solutions, etc. here. __________________
The best damn Sports Blog period. |
Recent GIDBlog
Python ebook by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Couple of questions Memory and CD RW | schuumi | Computer Hardware Forum | 3 | 15-Sep-2004 15:32 |
| Hello from cali, questions about web design | jonnydangerous | New Member Introductions | 3 | 20-Aug-2004 13:59 |
| Multi-Lingual Webpages & A Couple General Questions. | dwaunthomas | Web Design Forum | 5 | 15-May-2004 11:07 |
| Simple questions? | Netizen Dave | Apache Web Server Forum | 3 | 17-Mar-2004 04:45 |
| [Linux] Top newbie questions. | JdS | Computer Software Forum - Linux | 3 | 22-Jan-2004 12:00 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The