[Iup-users] difficult to get scroll bar in list control

2018-10-09 Thread Andy Xiyue
Hi Guys, I hit some setbacks recently while playing with list control and split box. The idea was very simple. I put two list controls in a splitbox so I can use split bar the adjust the ratio of each control, while both have scrollbars to view their contents. The problem was the list control di

Re: [Iup-users] Sotck images on Gtk 3.22.15

2017-06-13 Thread Andy Xiyue
I've also found the IUP_MessageInfo was gone in gtk3, which works fine in gtk2. Just FYI On 14 June 2017 at 02:09, Antonio Scuri wrote: > Hi, > > The latest GTK I have here is 3.20. It works fine. But stock image names > have been deprecated since GTK 3.10, so they are creating more and more

Re: [Iup-users] Can IupFileDlg() set filters which ignoring cases?

2017-06-08 Thread Andy Xiyue
Thanks Scuri. That's fine, gtk issue. Cheers Andy On 8 June 2017 at 19:49, Antonio Scuri wrote: > Hi, > > We use "gtk_file_filter_add_pattern" in Linux. There is no option for > case sensitiveness. Sorry. > > Best, > Scuri > > > 2017-06

[Iup-users] Can IupFileDlg() set filters which ignoring cases?

2017-06-07 Thread Andy Xiyue
Hi Scuri When I'm using IupFileDlg() to choose video files, I set the EXTFILTER like "Video files|*.mp4"to filter out the most likely files. However I noticed it doesn't display files with extensions that aren't in all lowercase, e.g.: Myvideo.MP4 or even Myvideo.Mp4 in gtk build. The windows bui

Re: [Iup-users] The comma is missing in IupFont

2017-05-17 Thread Andy Xiyue
he string? Why that is a problem for you? > > Best, > Scuri > > > On Wed, May 17, 2017 at 1:48 AM, Andy Xiyue wrote: > >> Hi Scuri >> >> When I was using the IupFontDlg, I found this might be an issue. >> >> The value of IupFontDlg, according to the

[Iup-users] The comma is missing in IupFont

2017-05-16 Thread Andy Xiyue
Hi Scuri When I was using the IupFontDlg, I found this might be an issue. The value of IupFontDlg, according to the "FONT" page, 'It is defined as having 3 parts: "*,* ".' However the comma was missed between and . For example, my return value from IupFontDlg was "PT Sans Narrow Bold Italic

Re: [Iup-users] Not to do selection in IupText()?

2016-07-19 Thread Andy Xiyue
ect again the text. > > I could't find any GtkEntry property to control this behavior. > > Best, > Scuri > > > > > On Tue, Jul 19, 2016 at 3:39 AM, Andy Xiyue wrote: >> >> Just tried. It doesn't work. Maybe only for MULTILINE=YES. Cheers. >

Re: [Iup-users] A problem or possible bug in IupFileDlg()

2016-07-19 Thread Andy Xiyue
e it will affect existing applications that expect the value without > the path and are not using the Recent Files feature. > > Best, > Scuri > > > Em 18/07/2016 22:55, "Andy Xiyue" escreveu: >> >> Hi Scuri, >> >> The thing is getting nasty. I bel

Re: [Iup-users] Not to do selection in IupText()?

2016-07-18 Thread Andy Xiyue
Just tried. It doesn't work. Maybe only for MULTILINE=YES. Cheers. On 19 July 2016 at 15:11, Germán Arias wrote: > Try with attribute SELECTION and value NONE. > > Germán > > El mar, 19-07-2016 a las 14:54 +1000, Andy Xiyue escribió: >> Thanks Ariset, though it

Re: [Iup-users] Not to do selection in IupText()?

2016-07-18 Thread Andy Xiyue
Thanks Ariset, though it doesn't work. I reckon the selection was came along with the mapping. I can change its content after mapping by event callbacks, but it would be a bit ugly so not worth doing it. On 19 July 2016 at 13:03, Ariset wrote: > I think you can play around with the *CARET* attrib

Re: [Iup-users] A problem or possible bug in IupFileDlg()

2016-07-18 Thread Andy Xiyue
Hi Scuri, The thing is getting nasty. I believe the fix should become a must, not an option. I created a scenario this morning which caused Segmentation fault by just picking two files: /home/xum1/study/rename/testing scene/link_to_koondrook /home/xum1/.FBReader/state.xml The first file has a lo

[Iup-users] Not to do selection in IupText()?

2016-07-17 Thread Andy Xiyue
Hi Scuri, Just a silly question about IupText(). I wrote codes to use the text control like this: entry = IupText(NULL); IupSetAttribute(entry, "VALUE", "rename.png"); IupSetAttribute(entry, "EXPAND", "HORIZONTAL"); When the control is mapped and displayed, the content in the text control are al

Re: [Iup-users] A problem or possible bug in IupFileDlg()

2016-07-11 Thread Andy Xiyue
tation in the GTK driver. >> >> We have the MULTIVALUEid attribute that can be used. But its definition >> implies that all files must be in the same folder. >> >> Maybe we can use an extra attribute to make MULTIVALUEid to include full >> paths. I'll th

[Iup-users] A problem or possible bug in IupFileDlg()

2016-07-07 Thread Andy Xiyue
Hi Scuri, I ran into a problem when I was using IupFileDlg() to collect file's path. Firstly I define the dialog gui->dlg_open = IupFileDlg(); IupSetAttribute(gui->dlg_open, "PARENTDIALOG", gui->inst_id); IupSetAttribute(gui->dlg_open, "TITLE", "Open Files"); IupS

Re: [Iup-users] A command line tool to generate pixel buffers for IupImage()

2016-05-30 Thread Andy Xiyue
Hi Guys I used to use gdk-pixbuf-csource to generate the pixel buffer in C for IupImage(), soon I found the images had a rotate-over problem. I googled around and confirmed the gdk-pixbuf-csource is not the correct tool but the iupview so I decide to write a gdk-pixbuf-csource-alike tool called iu

Re: [Iup-users] IUP 3.17 Released

2015-12-17 Thread Andy Xiyue
loser now to IUP 4.0, but there is still a lot to do. > > Best Regards, > Antonio Scuri > Em 06/12/2015 21:22, "Andy Xiyue" escreveu: > >> Thanks Antonio. Great work! >> >> On 4 December 2015 at 03:11, Antonio Scuri >> wrote: >> >>>

Re: [Iup-users] IUP 3.17 Released

2015-12-06 Thread Andy Xiyue
Thanks Antonio. Great work! On 4 December 2015 at 03:11, Antonio Scuri wrote: > Hi All, > >We just released IUP version 3.17. > >We would like to highlight some of the new features: > > - New *IupAnimated *Label control that displays an animation in a loop > label. An animation is simply

Re: [Iup-users] Is Iup pthread safe?

2015-10-07 Thread Andy Xiyue
ot, because it is not actually > "idle". > > Best, > Scuri > > > On Wed, Oct 7, 2015 at 6:15 AM, Andy Xiyue wrote: > > > Hey guys, > > > > Please ignore the quoted contents, I don't know why I can't receive the > > thread emails bu

Re: [Iup-users] Is Iup pthread safe?

2015-10-07 Thread Andy Xiyue
", > my_func). You hacked the inner part of it. > But be aware that the IDLE consumes CPU a lot, because it is not > actually "idle". > Best,Scuri > > On Wed, Oct 7, 2015 at 6:15 AM, Andy Xiyue wrote: > Hey guys, > > Please ignore the quote

Re: [Iup-users] Is Iup pthread safe?

2015-10-07 Thread Andy Xiyue
ing, please edit your Subject line so it is more specific > than "Re: Contents of Iup-users digest..." > > > Today's Topics: > >1. Re: Is Iup pthread safe? (John Spikowski) >2. Re: Is Iup pthread safe? (Ranier VF) >3. Re: Is Iup pthread safe? (Andy X

Re: [Iup-users] Is Iup pthread safe?

2015-10-05 Thread Andy Xiyue
Thanks John and Ranier. At least I'm confirmed now I can not update the attributions of IUP controls in other threads so my previous programming module was definitely wrong. So the question becomes how to send the control update event to the main thread? It's quite obvious the main thread is stu

[Iup-users] Is Iup pthread safe?

2015-10-01 Thread Andy Xiyue
Hi Scuri, Recently I tried to use IUP with more than one thread. My plan is simple, run IupMainLoop() in one thread and feed progress bar or text control in another thread. Theoretically I don't need to synchronize the IUP calls because the IupMainLoop() will process the events sooner or later. Ho

Re: [Iup-users] Possible bug in SCROLLBAR attribute of IupList

2014-04-02 Thread Andy Xiyue
d more. Kind regards Andy On 3 April 2014 11:56, Andy Xiyue wrote: > Hi Scuri, > > Here I am again :-) > > When I was studying the IupList control, I found the exposed area of > SCROLLBAR=NO is slightly smaller than SCROLLBAR=YES. Please find the > attached screenshots. The exa

[Iup-users] Is there attributes to highlight an item in IupList

2013-09-12 Thread Andy Xiyue
Hi, I recently moved from gtk to iup because its philosophy of simplicity and straightforward. I tried to program an interface. It's surprisingly simple and easy to use. Bravo guys! Please be kind if I've asked a stupid question since I only have a couple of hours experience in iup. I wonder if t