[fltk.general] how to implement text fading effect

2012-12-16 Thread leowang
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

Re: [fltk.general] how to display @ character in fltk-1.3

2012-11-21 Thread leowang
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.

[fltk.general] how to display @ character in fltk-1.3

2012-11-20 Thread leowang
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

[fltk.general] how to display @ character in fltk-1.3

2012-11-20 Thread leowang
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

[fltk.general] XMapRaised issue

2012-10-30 Thread leowang
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

Re: [fltk.general] XMapRaised issue

2012-10-30 Thread leowang
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

[fltk.general] how to update partial of the window

2012-10-17 Thread leowang
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

Re: [fltk.general] how to update partial of the window

2012-10-17 Thread leowang
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

Re: [fltk.general] how to improve image draw speed in fltk1.3

2012-05-22 Thread leowang
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

Re: [fltk.general] how to improve image draw speed in fltk1.3

2012-05-22 Thread leowang
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

[fltk.general] question about tranparent png image display

2012-05-22 Thread leowang
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:

[fltk.general] how to improve image draw speed in fltk1.3

2012-05-21 Thread leowang
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

[fltk.general] question about png in fltk1.3

2012-05-17 Thread leowang
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

[fltk.general] question about fltk1.3 Fl_Shared_Image

2012-05-07 Thread leowang
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.

[fltk.general] question about fltk1.3 Fl_Shared_Image

2012-05-07 Thread leowang
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

[fltk.general] question about fltk1.3 Fl_Shared_Image

2012-05-07 Thread leowang
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

[fltk.general] how to remove focus from widget in fltk1.3

2012-05-07 Thread leowang
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

Re: [fltk.general] how to remove focus from widget in fltk1.3

2012-05-07 Thread leowang
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

Re: [fltk.general] question about fltk1.3 Fl_Shared_Image

2012-05-07 Thread leowang
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

[fltk.general] about the callback of the button widget in fltk1.3

2012-05-07 Thread leowang
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

Re: [fltk.general] how to change text color when select the text in fltk1.3

2012-04-25 Thread leowang
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

[fltk.general] how to add bckground picture to the fltk1.3 browser

2012-04-25 Thread leowang
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,

Re: [fltk.general] how to set font in fltk1.3

2012-04-25 Thread leowang
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

Re: [fltk.general] how to deactivate one line in browser widgetin fltk1.3

2012-04-25 Thread leowang
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 -

Re: [fltk.general] how to deactivate one line in browserwidgetin fltk1.3

2012-04-25 Thread leowang
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

[fltk.general] how to select one line after browser widget create

2012-04-25 Thread leowang
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

Re: [fltk.general] how to select one line after browser widgetcreate

2012-04-25 Thread leowang
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

Re: [fltk.general] how to select one line after browser widgetcreate

2012-04-25 Thread leowang
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

[fltk.general] how to set font in fltk1.3

2012-04-24 Thread leowang
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

[fltk.general] how to change text color when select the text in fltk1.3

2012-04-24 Thread leowang
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

[fltk.general] how to add bckground picture to the fltk2.0 browser

2012-04-23 Thread leowang
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());

Re: [fltk.general] how to add bckground picture to the fltk2.0 browser

2012-04-23 Thread leowang
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()) {

[fltk.general] question about event handle in FLTK2.0

2012-03-26 Thread leowang
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

Re: [fltk.general] can FLTK support hardware overlay

2012-03-20 Thread leowang
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,

[fltk.general] can FLTK support hardware overlay

2012-03-19 Thread leowang
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?

[fltk.general] can fluid run in WIndows

2012-03-12 Thread leowang
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

Re: [fltk.general] can fluid run in WIndows

2012-03-12 Thread leowang
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

[fltk.general] about xfltk

2012-03-08 Thread leowang
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

Re: [fltk.general] about xfltk

2012-03-08 Thread leowang
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

Re: [fltk.general] where can I get fltk2dfb branch

2012-02-15 Thread leowang
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

Re: [fltk.general] where can I get fltk2dfb branch

2012-02-12 Thread leowang
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

Re: [fltk.development] new a fltk window will takes more memory

2012-02-09 Thread leowang
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

[fltk.general] why labelsize() has no effect

2012-02-09 Thread leowang
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

Re: [fltk.general] why labelsize() has no effect

2012-02-09 Thread leowang
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,

[fltk.general] a memory question about fltk2.0

2012-02-09 Thread leowang
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

[fltk.general] Fl_Shared_Image issue

2012-02-08 Thread leowang
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 **

[fltk.general] question about Fl_Double_Window

2012-02-08 Thread leowang
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

[fltk.general] why 0x0 not display black color

2012-02-07 Thread leowang
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,

[fltk.development] how to run fltk based on DFB

2012-02-01 Thread leowang
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

[fltk.general] override draw function

2011-02-24 Thread leowang
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

[fltk.general] how to resize the image in the window

2010-08-27 Thread leowang
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

Re: [fltk.general] question about button widget

2010-04-23 Thread leowang
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

[fltk.general] how to display chinese chracter in input widget

2010-04-23 Thread leowang
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

[fltk.general] question about button widget

2010-04-19 Thread leowang
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

[fltk.general] a question about browser widget

2010-04-13 Thread leowang
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

Re: [fltk.general] Hide widget focus rectangle?

2010-04-13 Thread 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.

[fltk.general] problem about drawline()

2010-04-06 Thread leowang
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.

Re: [fltk.general] problem about drawline()

2010-04-06 Thread leowang
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

Re: [fltk.general] rotate window

2010-03-18 Thread leowang
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,

[fltk.general] rotate window

2010-03-17 Thread leowang
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

Re: [fltk.general] rotate window

2010-03-17 Thread leowang
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

[fltk.general] timeout issue

2010-03-08 Thread leowang
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.

Re: [fltk.general] timeout issue

2010-03-08 Thread leowang
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

Re: [fltk.general] how to make a window always activate

2010-02-01 Thread leowang
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

[fltk.general] how to make a window always activate

2010-01-31 Thread leowang
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

Re: [fltk.general] how to change the item height of the browser widget

2010-01-21 Thread leowang
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

Re: [fltk.general] how to change the item height of the browser widget

2010-01-20 Thread 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-textsize(Textsize); Hi Edzard, Thanks

[fltk.general] how to change the item height of the browser widget

2010-01-19 Thread 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? Best regards, Leo ___ fltk mailing list

[fltk.general] can I add a background image to browser widget

2010-01-13 Thread leowang
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

Re: [fltk.general] how to add a callback in button widget

2010-01-12 Thread leowang
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.

[fltk.general] how to add a callback in button widget

2010-01-11 Thread leowang
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

Re: [fltk.general] how to use other fonts in fltk-1.3

2010-01-05 Thread leowang
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

Re: [fltk.general] display issue about fltk-1.3

2010-01-05 Thread leowang
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

Re: [fltk.general] display issue about fltk-1.3

2010-01-05 Thread leowang
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

Re: [fltk.general] how to use other fonts in fltk-1.3

2010-01-05 Thread leowang
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

Re: [fltk.general] how to set a default select radio button

2010-01-04 Thread leowang
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

[fltk.general] display issue about fltk-1.3

2010-01-04 Thread leowang
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

[fltk.general] how to use other fonts in fltk-1.3

2010-01-04 Thread leowang
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

Re: [fltk.general] problem about redraw

2010-01-03 Thread leowang
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

Re: [fltk.general] how to set a default select radio button

2010-01-03 Thread leowang
- 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

[fltk.general] how to short text string in widget

2009-12-20 Thread leowang
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

Re: [fltk.general] about Widget::hide()

2009-12-13 Thread leowang
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

[fltk.general] about Widget::hide()

2009-12-09 Thread leowang
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

[fltk.development] use YUV data as FLTK image

2009-11-10 Thread leowang
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

[fltk.development] draw text inside button widget

2009-11-10 Thread leowang
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,

Re: [fltk.development] about browser widget

2009-04-16 Thread leowang
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

[fltk.development] about browser widget

2009-04-15 Thread leowang
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

[fltk.development] can't display '' character

2009-04-01 Thread leowang
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