> 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 number
thank you.
Unfortunately vc10 is the one and only enterprise-wide used compiler so I
really have no chance to use gcc at work.
So I'll follow your advice and try it like 1999 ;)
>
> On 25.04.2012, at 18:18, testalucida wrote:
>
> > Hi,
> >=20
> > this code:
> >=20
> > Fl_Button *pBtn =3D new Fl_B
On 25.04.2012, at 18:18, testalucida wrote:
> Hi,
>
> this code:
>
> Fl_Button *pBtn = new Fl_Button(...);
> pBtn->callback( [](Fl_Widget *w, void *u ) {printf(...);} );
>
> compiles fine with gcc but won't with vc10.
> Error message says something like "can't convert lambda to Fl_Callback*".
On 25.04.2012, at 15:52, MacArthur, Ian (SELEX GALILEO, UK) wrote:
>> I use the browser widget to display files, and the files are sorted by
>> name, it looks like follows:
>>
>> a
>> a.txt
>> ab.txt
>> b.txt
>> c
>> ch.txt
>>
>> so the lines which has index character should not be focused.
>>
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, n
Hi,
this code:
Fl_Button *pBtn = new Fl_Button(...);
pBtn->callback( [](Fl_Widget *w, void *u ) {printf(...);} );
compiles fine with gcc but won't with vc10.
Error message says something like "can't convert lambda to Fl_Callback*".
Does anybody know the reason? Is there a way to use lambdas wit
>
> > 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 c
> 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 migh
> I use the browser widget to display files, and the files are sorted by
> name, it looks like follows:
>
> a
> a.txt
> ab.txt
> b.txt
> c
> ch.txt
>
> so the lines which has index character should not be focused.
> Now I have implement this function by modify Fl_Browser.cxx and
> Fl_Browser_.cxx
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 reg
> > > > 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 e
> > > 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 formu
>
> > 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=
>
> 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
answer - can
Dear All,
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.
Best regards,
Leo
___
fltk mailing list
>
> > 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
> 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 widget.
> 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.
Which widget are you asking about?
I'm not sure if this is an API that flt
18 matches
Mail list logo