Dear All,
I want to implement the text fading effect, because sometimes the text string
is too long, so I need to cut the string, and make the last character fading,
just like iphone.
But how to implement this feature in FLTK-1.3, thanks.
My OS is Linux.
Best regards,
Leo
If I have a '@' character in file name, it can't be display in the widget.
Yes it can, but you may need to do some set-up first to make it work...
In fltk-2.0, it has a RAW_LABEL flag to set to display this character, so
I want to know how to display this character in fltk-1.3. Thanks.
Dear All,
If I have a '@' character in file name, it can't be display in the widget.
In fltk-2.0, it has a RAW_LABEL flag to set to display this character, so I
want to know how to display this character in fltk-1.3. Thanks.
My OS is Linux.
Best regards,
Leo
Dear All,
If I have a '@' character in file name, it can't be display in the widget.
In fltk-2.0, it has a RAW_LABEL flag to set to display this character, so I
want to know how to display this character in fltk-1.3. Thanks.
My OS is Linux.
Best regards,
Leo
Dear All,
I have two process named A and B, and each has a window. I run process A first,
then run process B. Now only window B can receive key events, then I called
XMapRaised in process B to set Window A to X stack top, after that only window
A can receive key events, then I called XMapRaised
On 30 Oct 2012, at 09:52, leowang wrote:
Dear All,
I have two process named A and B, and each has a window. I run process =
A first, then run process B. Now only window B can receive key events, =
then I called XMapRaised in process B to set Window A to X stack top, =
after that only
Dear All,
Can I only redraw partial of the window by use damage(FL_DAMAGE_EXPOSE, x, y,
w, h)? I have tried to use this function, but found that it redraw of the
window? Why? And how can I only redraw partial of the window region?
My fltk version is 1.3.0
Best regards,
Leo
Can I only redraw partial of the window by use damage(FL_DAMAGE_EXPOSE, x,
y, w, h)? I have tried to use this function, but found that it redraw of
the window? Why? And how can I only redraw partial of the window region?
Can you describe more fully what you are trying to do, and what
On 05/21/12 19:27, leowang wrote:
Dear All,
I found that the fltk draw image speed is not fast, for example, I have a
1280*800 window which has a 1280*800 png file as it's background, it will
takes about 2 second to display it in my arm board, the CPU is 800MHz, my
compile tools
On 05/21/12 19:27, leowang wrote:
Dear All,
I found that the fltk draw image speed is not fast, for example, I have a
1280*800 window which has a 1280*800 png file as it's background, it will
takes about 2 second to display it in my arm board, the CPU is 800MHz, my
compile
Dear All,
I have a window, it need to use a transparent effect png file as it's
background, but I found that use the transparent png file as background image,
it still can see the white backrgound color in the window, I try to modify the
draw() function in Fl_Window.cxx, comment the following:
Dear All,
I found that the fltk draw image speed is not fast, for example, I have a
1280*800 window which has a 1280*800 png file as it's background, it will takes
about 2 second to display it in my arm board, the CPU is 800MHz, my compile
tools is amr-linux-gcc-4.3.2, I have break down the
Dear All,
I have a question about draw png image in widget.
I have a widget, I want to put a 50% transparent png file as it's background
picture, and the background picture can be changed to another 50% transparent
png file, the problem is when I change to another png file, still can see the
Dear All,
The Fl_Shared_Image::get() can only add one picture on the widget, but now I
want to implement this feature: when the focus is not on the widget, the
picture is icon.bmp, when the focus is on the widget, the picture can change to
icon_focus.bmp. Like MulitImage widget in fltk2.0.
Dear All,
The Fl_Shared_Image::get() can only add one picture on the widget, but now I
want to implement this feature: when the focus is not on the w
___
fltk mailing list
fltk@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk
Dear All,
The Fl_Shared_Image::get() can only add one picture on the widget, but now I
want to implement this feature: when the focus is not on the w
___
fltk mailing list
fltk@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk
Dear All,
I have use take_focus to let the focus on the widget, but how can I remove the
focus from this widget?
Best regards,
Leo
___
fltk mailing list
fltk@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk
On 07.05.2012 11:11, leowang wrote:
I have use take_focus to let the focus on the widget, but how can I remove
the focus from this widget?
Give the focus to another widget, or use Fl::focus(0); maybe.
But what do you want to achieve with this?
Albrecht
Hi Albrecht,
I have the case
On 07.05.2012 12:36, Albrecht Schlosser wrote:
On 07.05.2012 09:22, leowang wrote:
The Fl_Shared_Image::get() can only add one picture on the widget, but
now I want to implement this feature: when the focus is not on the
widget, the picture is icon.bmp, when the focus is on the widget
Dear All,
I have a button, it has a callback, but I found that when the focus is on this
button, press enter key can not auto call the callback, only use mouse to press
button can call the callback. Why?
In fltk2.0, it will auto call the callback when press enter key if the focus is
on the
Dear All,
In fltk2.0, it has a API called selection_textcolor(int color), this can
change text color if the text is select.
But in fltk1.3, I can't find the similar API, can anyone else tell me where
is this API, thanks.
Best regards,
leo
Hmm, for which widget? Usually
Dear All,
Yesterday I have asked how to add bckground picture to the fltk2.0 browser, and
I have implemented this feature in fltk2.0.
But now in fltk1.3, I modify the code same like fltk2.0, but can not get what I
want, so does anyone know how to implement this feature? Thanks.
Best regards,
I have a question of how to set my custom font, for example, I have a font
named MY_FONT, then how can I use this font type to display the text in
Browser widget?
=
I see it has a fl_font API, but the first parameter is a int type, so I
don't know how to set my font for Browser
I have a browser widget in a window, there has some lines in this browser,
press up/down key can select one by one, how can I set one line(or item)
deactivate, then the focus will not move to this line.
Sorry, I'm not understanding your question clearly enough to formulate an a=
nswer -
I have a browser widget in a window, there has some lines in this
browser,
press up/down key can select one by one, how can I set one line(or
item)
deactivate, then the focus will not move to this line.
Sorry, I'm not understanding your question clearly enough to formulate
Dear All,
I found that after the browser widget created, it is focused in the first line,
but the first line does not highlight, how to set it to highlight, I tryed
select(0, true), but has no effect.
Then is there some other API to make one line highlight after browser widget
create.
Best
I found that after the browser widget created, it is focused in the first
line, but the first line does not highlight, how to set it to highlight, I
tryed select(0, true), but has no effect.
=
Then is there some other API to make one line highlight after browser
widget create.
You
On 04/25/12 07:10, leowang wrote:
I found that after the browser widget created, it is focused in the first
line, but the first line does not highlight, how to set it to highlight, I
tryed select(0, true), but has no effect.
You might find that browser lines are numbered from 1
Dear All,
Now I am developing in fltk1.3, and I am a newbie in this version.
I have a question of how to set my custom font, for example, I have a font
named MY_FONT, then how can I use this font type to display the text in Browser
widget?
I see it has a fl_font API, but the first parameter is
Dear All,
In fltk2.0, it has a API called selection_textcolor(int color), this can change
text color if the text is select.
But in fltk1.3, I can't find the similar API, can anyone else tell me where is
this API, thanks.
Best regards,
leo
___
fltk
Dear All,
I want to set a picture as the background image of the browser, I have modify
the fltk2.0/src/Browser.cxx as follows:
void Browser::draw_clip(const Rectangle r) {
..
int bottom_y = interior.y()+HERE.position-yposition_;
+ /*
if (bottom_y r.b()) {
setcolor(color());
Dear All,
I want to set a picture as the background image of the browser, I have modify
the fltk2.0/src/Browser.cxx as follows:
void Browser::draw_clip(const Rectangle r) {
..
int bottom_y = interior.y()+HERE.position-yposition_;
+ /*
if (bottom_y r.b()) {
Dear All,
I have a question of event handle. Suppose I have Window A, it has a sub-window
named B, Window B has a Widget C in it. So my question is: if I return 0 in
B::handle(event), the event will transfer to A or C?
Best regards,
Leo
___
fltk
On 03/20/12 02:29, MacArthur, Ian (SELEX GALILEO, UK) wrote:
That said, ISTR that it really only ever worked on the old
SGI machines, which *nobody* has anymore (except maybe the
one Greg uses as a fan-heater from time to time...)
Or I may be wrong...
No, I think you're right,
Dear All,
Can FLTK support FLTK hardware overlay?
I saw in FLTK2.0 document, it says FLTK 2.0 is not normally compiled to
support hardware overlays, but the emulation still remains, so you can use
these functions. Dose this mean FLTK2.0 can not support hardware overlay?
How about FLTK1.3?
Dear All,
Does the fluid can run in Windows? what's version of it? Does it support
FLTK2.0, or only support FLTK1.x?
Thanks.
Best regards,
Leo
___
fltk mailing list
fltk@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk
That's absolutely correct, but he asked whether fluid can run in
Windows. =
Doh! Yup, I answered the question I thought was being asked, not what was a=
ctually asked...
SELEX Galileo Ltd
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS=
14 3EL
A company
Dear All,
Does anyone familiar with the xfltk? Where can I get the document of it? I even
don't know how to set the attribute of the widgets in the XML file.
Best regards,
Leo
___
fltk mailing list
fltk@easysw.com
W dniu 08.03.2012 11:19, MacArthur, Ian (SELEX GALILEO, UK) pisze:
Does anyone familiar with the xfltk? Where can I get the document of it? I
even don't know how to set the attribute of the widgets in the XML file.
Only Piotr, really, I think... I assume you have looked at what's on
BTW=2C I heard from Ian that Only Ben still in fltk2.0's development=2C h=
ow can I contact with Ben? Thanks.
Ben does still read all the emails on this list=2C but it's somewhat diffic=
ult to devote hours to investigating things while I'm doing (paid) work -- =
apparently people
On 10.02.2012 03:15, leowang wrote:
From the forum I see Nikita Egorov have porting FLTK2 to the DirectFB
library,
Which forum? I don't remember to have seen any DirectFB patches
or announcements for FLTK 2 here, but maybe ...
and he put it to ftp://ftp.varma-el.com/bin/fltk
I have a simple large window, it contains nothing, only display
black,
but it will consumes lots of memory (totally w * h * 4 Bytes), ps:
my
platform is 32bpp.
=3D
Why such a simple window consume so much memory? How to reduce the
memory consume. Thanks.
How
Dear All,
Now I am using fltk1.3, I have the following sample code.
Fl_Button *b1 = new Fl_Button(200, 200, 800, 250, Beep);
b1-labelcolor(FL_BLUE);
b1-labelsize(36);
printf(text size = %d\n, b1-labelsize());
b1-box(FL_NO_BOX);
But the font display is still 14pix but not 36, the print
Dear All,
Now I am using fltk1.3, I have the following sample code.
Fl_Button *b1 = new Fl_Button(200, 200, 800, 250, Beep);
b1-labelcolor(FL_BLUE);
b1-labelsize(36);
printf(text size = %d\n, b1-labelsize());
b1-box(FL_NO_BOX);
But the font display is still 14pix but not 36,
Dear All,
I found that new a empty window will not allocate w*h*bpp/8 byte memory in
fltk1.3, but in fltk2.0, it will consume w*h*bpp/8 bytes memory. Why?
I think it only need allocate memory if it has some picture on it.
Best regards,
Leo
___
fltk
Dear All,
Now I try to moving from fltk2.0 to fltk1.3.
From the point of memory consumption, fltk1.3 is more better than fltk2.0, I
think may be I will use fltk1.3 for my future development.
But I have a question about Fl_Shared_Image, my code is like the following:
int main(int argc, char **
Dear All,
In fltk1.3, there has Fl_Window and Fl_Double_Window class, the Fl_Window will
malloc w*h*bpp/8 Bytes memory, but Fl_Double_Window will malloc double, which
is same as fltk2.0.
Then I want to ask in which case we need to use Fl_Double_Window class but can
not use Fl_Window class
Dear All,
I have a question of set fltk color.
I use color(0x0) to set background color to black, but it display white to me,
and if I use color(0x01010100), the display is black, so why 0x is not
black in fltk?
my fltk version is 2.0, and my system's color bit 32bpp.
Best regards,
Dear All,
Now the fltk is running on XWindow, can we set the fltk running on DirectFB?
If yes, how to configure it? thanks.
My fltk version is 2.0
Best regards,
Leo
___
fltk-dev mailing list
fltk-dev@easysw.com
Dear All,
I have a class A which inherit from Window class, I override it's draw
function. And did nothing in this function.
Void A::draw()
{
return;
}
But I found that when I call show() or redraw() function, it can call draw
function and refresh the window to black. Why? I think it
Dear All,
I have a window which size is w=600, h=800, and has a jpeg file which size is
w=1024, h=768, I want to display the whole image in the window.
I have try to set the RESIZE_FIT and RESIZE_FILL flag, but is still display
partial of the image, how can I to scale the image and display it
leowang wrote:
Dear All,
Now, if push on the button widget, the button will in a pushed status, but
I do not want this pushed status. That's means I do not want the button has
any change if I pushed on it. Is there any method to implement it? Thanks.
I think you just want
Dear All,
I input some chinese character and english character into input widget, it only
display english character, and the chinese character only display as blank. But
if I use input_widget-value() to get the string, it can get the whole
string(include chinese and english chracter), so why it
Dear All,
Now, if push on the button widget, the button will in a pushed status, but I do
not want this pushed status. That's means I do not want the button has any
change if I pushed on it. Is there any method to implement it? Thanks.
my fltk is v2.0
Best regards,
Leo Wang
use topline() function to display 11-20 items, but I found a problem, if
it total has 15 items. It will show 6-15 items in the second page, but not
11-15 items. Why? How to only display 11-15 items.
My fltk version is v2.0
Thanks.
Best regards,
LeoWang
Hi,
Is it possible to hide the focus rectangle for a particular widget using
FLTK 1.3's standard API?
The only way I can see to do it, is to override Fl_Widget::draw_focus() but
this member isn't defined as virtual. I guess I'm hoping that there's a
flag I can set to achieve this result.
Dear All,
Now I have a problem with drawline() function.
I call drawline() draw some lines in the window, but I found that if I call
redraw() function to redraw the whole window, the lines I drawed before will be
cleared. Why?
My fltk version is v2.0-r6985.
I call drawline() draw some lines in the window, but I found that
if I call redraw() function to redraw the whole window, the lines
I drawed before will be cleared. Why?
The redraw() call simply tells the system to call the widgets' draw()
functions at some convenient point in the event
Most systems that support display rotation do so at the WM=20
level, not at
the GUI level, so you probably need to investigate xrandr=20
and so forth
to see how that is done.
Thanks, I tried xrandr, it can rotate the frame buffer, but=20
the widget are still the previous size,
Dear All,
In fltk-2.0 version, does it support the rotate function?
I have the 300 * 400 window, it has some widget in it, then I want to roate it
90 degree, so it should be 400 * 300, and the widget also rotate together.
Can fltk do this? Thanks.
Best regards,
Leo Wang
Dear All,
In fltk-2.0 version, does it support the rotate function?
=20
I have the 300 * 400 window, it has some widget in it, then I=20
want to roate it 90 degree, so it should be 400 * 300, and=20
the widget also rotate together.
=20
Can fltk do this? Thanks.
No, there is no
Dear All,
I found a issue about timeout as belows:
I have add a timeout in my main thread, and it will repeat per 1 second, then I
change the RTC time, change to a previous time, such as (the current time is
9th Mar, 2010, I change to 9th Mar, 2009), the timeout will stop and will not
repeat.
Dear All,
I found a issue about timeout as belows:
I have add a timeout in my main thread, and it will repeat per 1 second, then
I change the RTC time, change to a previous time, such as (the current time
is 9th Mar, 2010, I change to 9th Mar, 2009), the timeout will stop and will
not
leowang wrote:
The two window are not in one process.
Yikes, then you're basically trying to do two tricky things:
* Undermine the window manager behavior for focus of events
* Allow events to cross processes
Not impossible, but might be hard
Dear all,
I have two window in the screen display, one is on the left side, another is on
the right side. Now if I push in the left side window, the right side window
will be in deactivate status and can't recieve any keypad event. It only can
receive keypad event until I push inside it.
So I
Am 21.01.2010 01:58, schrieb leowang:
Am 20.01.2010 02:09, schrieb leowang:
Dear All, I have a browser widget in a window, and set the init item
height, now I need to change to item height when I press a button. Is
there has a API to change the browser widget item height?
pBrowser
Am 20.01.2010 02:09, schrieb leowang:
Dear All, I have a browser widget in a window, and set the init item
height, now I need to change to item height when I press a button. Is
there has a API to change the browser widget item height?
pBrowser-textsize(Textsize);
Hi Edzard,
Thanks
Dear All,
I have a browser widget in a window, and set the init item height, now I need
to change to item height when I press a button. Is there has a API to change
the browser widget item height?
Best regards,
Leo
___
fltk mailing list
Dear All,
Can I add background image to browser widget? I have try to use
browser-image(SharedImage::get(bg.bmp));, but found that the image does not
appear. Does the browser widget support to have a background image?
Best regards,
Leo
___
fltk
As we know, the button widget has a callback, by default it=20
will excute this callback afte we push and release the=20
button. But how to add another callback to the button widget.=20
So I can excute callback A when push the button, and excute=20
callback B when release the button.
Dear All,
As we know, the button widget has a callback, by default it will excute this
callback afte we push and release the button. But how to add another callback
to the button widget. So I can excute callback A when push the button, and
excute callback B when release the button. Thanks.
My
But in fltk-1.3, it can't set as above, I use=20
o-labelfont((Fl_Font)(FONT_NAME));, but it will has segm=20
fault when run the test programme.
=20
How to add a font in fltk-1.3?
Before we go on, there are two font demos distributed in the test folder
of the fltk-1.3 tarball, so you
I think it is not related to the text encoding, because I=20
just run the fltk demo application in arm board, the text are=20
all english letter.
OK - but English (i.e. nominally basic ASCII) text encoded as UTF-16
produces exactly the effect you describe, which is why I asked the
I have dump the raw data of my file, I have input 8 'a', the=20
dump data has the line of below:
=20
0f0 202c 3031 2c30 2220 6161 6161 6161 6161
=20
So I think the encoding should be right.
Yes - that looks OK.
Does your code run correctly on your other platforms, i.e. not on
I have tried your method, but still has segm fault. My code
is as follows:
int main(int argc, char **argv) {
Fl_Window *window = new Fl_Window(480, 272);
Fl_Box *box = new Fl_Box(20,40,260,100,**);
box-box(FL_UP_BOX);
box-labelsize(36);
Fl_Font my_fnt;
Sorry - I
Recently I use the CheckButton and RadioButton widget, but I don't know how
to set a default select CheckButton or RadioButton. For example, I have two
CheckButton widget, when these two display at the first time, they are all
in deselect status unless I choose one. How to make one in
Dear All,
I have compiled fltk-1.3.x-r6985, and run the test program in my arm-board,
but I found that the font display is abnormal, between each letter it has a
empty rectangle. Why?
My configure option is as follows:
./configure --with-x --host=arm-linux --enable-shared --enable-xft
Dear All,
I want to use another font to display Chinese, but I don't know how to set this
font in labelfont(). In fltk-2.0, I can set as follows:
o-labelfont(font(FONT_NAME));
But in fltk-1.3, it can't set as above, I use
o-labelfont((Fl_Font)(FONT_NAME));, but it will has segm fault when run
On 31.12.2009, at 02:09, leowang wrote:
Dear All,
I found that when I call redraw in a thread, it will not really =
redraw, the UI does not refresh untill we have handle on the window. =
why? Does it mean I only can call redraw in main thread?
=20
Thanks.
=20
my fltk version is v2.0
- Original Message -
From: leowang leow...@solomon-systech.com
Newsgroups: fltk.general
To: fltk@easysw.com
Sent: Saturday, January 02, 2010 6:59 AM
Subject: [fltk.general] how to set a default select radio button
Dear all,
Happy new year! :)
Recently I use the CheckButton
Dear All,
I have a long string in a widget, I have used the flag ALIGN_INSIDE |
ALIGN_CENTER | ALIGN_LEFT.
But I found that the string will overflow the width of my widget, how to
shorten it to make it only display part of the string. Thanks.
My fltk version is v2.0
leowang wrote:
I create a simple window, in this window, it has a button. I found that
when I hide this button, it will redraw the whole window. why?
I think it only need to redraw the button area is enough.
my fltk version is fltk-2.0
could someone give me a reason about
I create a simple window, in this window, it has a button. I found that when I
hide this button, it will redraw the whole window. why?
I think it only need to redraw the button area is enough.
my fltk version is fltk-2.0
could someone give me a reason about this? thanks
Dear All,
As I know, fltk can take bmp, xpm, jpg, png format picture as it's accept
image. Now I want to transfer a YUV data as the FLTK image. how can I do?
I try to rename a YUV data to a bmp suffixï¼ such as yuv.bmp, and add a bmp
header to this file, then transfer this image to
Dear All,
I found that when I draw the text in button widget, the corrdinates of the
text is not in the center of the button, but near the bottom part. If I
deactivate the button, the text will be more near the bottom part. Why?
My code is as follows:
m_pButton = new Button(0,0, 47, 21,
I want to only use BMP file as browser item, is it possible=20
to implement? Thanks.
I think I do not understand what you are asking - can you re-phrase your
question to clarify, please?
SELEX Sensors and Airborne Systems Limited
Registered Office: Sigma House, Christopher Martin
I want to only use BMP file as browser item, is it possible to implement?
Thanks.
___
fltk-dev mailing list
fltk-dev@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk-dev
Dear All,
I found that fltk can't display '' character in widget.
such as Button *btn = new Button(0, 0, 100, 100, abcdefg);
it will display as abcdefg.
and in browser widget, nothing will be display.
why?
___
fltk-dev mailing list
88 matches
Mail list logo