Re: [fltk.general] Can FLTK version 1.x run on Winows Vista?

2008-12-11 Thread Greg Ercolano
UNPEP wrote: > I'd like to know whether FLTK version 1.x can run on windows vista or not? If > can, how to modify in setup setting to fit in windows vista? > Thanks in advance. If you compile an FLTK application on eg. XP or 2K, chances are good the executable will run just fine o

Re: [fltk.general] HTML in fl_message (aka HTML labeltype)

2008-12-10 Thread Greg Ercolano
Roman Kantor wrote: > I want to implement a HTML labeltype, for easy implementation I was > looking into fl_message doc where I have found: > > "A message text can be further formatted with html tags by adding > at the beginning of the message..." > > However this does not work for me (and yes

Re: [fltk.general] label alignment question

2008-12-09 Thread Greg Ercolano
matthiasm wrote: >> I haven't examined the 'one more bit' proposals on complete detail, >> and much as I like the clock positions idea, there are still four >> possible positions that haven't been discussed: >> >> ? 11 121 ? >>++ >> 10 || 2 >>

Re: [fltk.general] [OT] os killing my process

2008-12-08 Thread Greg Ercolano
> It is possible to disable this braindead behaviour by setting the sysctl > `proc.sys.vm.overcommit_memory' to 2 (see malloc(3)[1]) or if you prefer > doing it the Linux way: > > echo 2 > /proc/sys/vm/overcommit_memory > > BTW: what other value than `2' would one expect to disable someth

Re: [fltk.general] label alignment question

2008-12-08 Thread Greg Ercolano
Albrecht Schlosser wrote: > Another great ASCII art from Greg, the master of ASCII art ;-) >> I guess this seems reasonable... Yeah, some retro stuff is too cool to die.. ASCII art, analog clocks, nixie tubes.. > In combination with FL_ALIGN_INSIDE we have a small "conflict" for t

Re: [fltk.general] [OT] os killing my process

2008-12-07 Thread Greg Ercolano
Oguz Akyuz wrote: > I'm writing an image processing application. When an image is resized to a > huge resolution the OS (Linux) is killing my process. I'm calling the resize > function in a try/catch block to catch bad_alloc, and fall back to the > previous resolution. This sometimes works but n

Re: [fltk.general] label alignment question

2008-12-07 Thread Greg Ercolano
>> Is there a way to align at label to be >> at the top of the *left* edge of a widget? eg: >>_ >>xx | | >> | | >> |_| >> >> Seems all I can get with FL_ALIGN_TOP|FL_ALIGN_LEFT >> puts the label at the left of t

[fltk.general] label alignment question

2008-12-07 Thread Greg Ercolano
Is there a way to align at label to be at the top of the *left* edge of a widget? eg: _ xx | | | | |_| Seems all I can get with FL_ALIGN_TOP|FL_ALIGN_LEFT puts the label at the left of the *top* edge. Is t

Re: [fltk.general] Fl_Window not found in fl_set_spot

2008-12-03 Thread Greg Ercolano
Greg Ercolano wrote: > Ian, I took your example, and tweaked it a bit to get it to crash. Forgot to mention: the resulting code was posted to OP's STR: http://www.fltk.org/str.php?L2101 ___ fltk mailing list fltk@easysw.

Re: [fltk.general] Fl_Window not found in fl_set_spot

2008-12-03 Thread Greg Ercolano
MacArthur, Ian (SELEX GALILEO, UK) wrote: > Below is a minimal example I put together that updates an Fl_Input > widget programmatically - do you think this is a credible representation > of what you are doing when you see the fault? Ian, I took your example, and tweaked it a bit to get it

Re: [fltk.general] How to subclass FLTK windows?

2008-12-02 Thread Greg Ercolano
MacArthur, Ian (SELEX GALILEO, UK) wrote: >> I am new to FLTK and just diving into the fantastic world of GUI >> controls. Console no more! :-) >> Now to the point. I saw an example with an OpenGl window, where >> subclassing is used - that is the user window derives from >> FLTK OpenGL >> wind

Re: [fltk.general] Shortcuts Don't Work In 1.1.9 ?

2008-12-01 Thread Greg Ercolano
>>> I recently upgraded an app from FLTK 1.0.11 to 1.1.9. I'm finding >>> that keyboard shortcuts don't work anymore? .. >> Ought to work... > I added my own button with keyboard shortcut to the CubeView demo. > Guess what? It worked.. See also Albrecht's comments to this thread in fltk

Re: [fltk.general] Fl_Window not found in fl_set_spot

2008-12-01 Thread Greg Ercolano
Andreas Ekstrand wrote: > I have come across an intermittent problem in FLTK 1.3 > (from the latest svn) for Win32. I recently upgraded from 1.2.x > where the problem didn't appear. > > Sometimes (quite often) when redrawing an Fl_Output, the fl_set_spot function, > called from Fl_Input_::drawtext

Re: [fltk.general] HELP!--New to using FLTK

2008-11-30 Thread Greg Ercolano
> it doesnt say anything when i type: > which g++ Are you sure it isn't saying /anything/? If it doesn't say anything, I'd be concerned about the stability of your shell environment; 'which' should either print a pathname, alias, or error, but not nothing.

Re: [fltk.general] when to Fl::lock() ?

2008-11-25 Thread Greg Ercolano
jane wrote: > hmm, maybe i missed some lock() here or there? are locks failsafe when > used properly? greg, you said there have been experts that still find > bugs in previously proven "good" code...thats scary. Yes, pretty sure it was a series of articles on MSDN. I was hoping t

Re: [fltk.general] fltk direction?

2008-11-25 Thread Greg Ercolano
The following is just my take as an app programmer.. I'm not one of the core developers. gedumer1 wrote: > The info I read clearly stated that > 2.0 would be the successor to the 1.1.x line of fltk libraries. Yes, that info is slightly dated; I'd revise it to say

Re: [fltk.general] when to Fl::lock() ?

2008-11-24 Thread Greg Ercolano
imacarthur wrote: > figure out why. And I *like* threading as a design solution and do it > a lot - It's exactly this sort of weirdness that makes others (ask > Greg!) wary of threads as a solution. Yes; don't get me started ;) Threads are great if you can very carefully keep

Re: [fltk.general] Program is interrupted when choosing somethingfromthe menu bar

2008-11-24 Thread Greg Ercolano
Sahit Erdis wrote: > I have find out that each time I choose something from the menu bar my > position variables (x, y, theta) are slightly (more or less) changed when > the program continues. I can't say why, perhaps because they become updated > while the program is interrupted. How are

Re: [fltk.general] Program is interrupted when choosing something from the menu bar

2008-11-23 Thread Greg Ercolano
imacarthur wrote: >>> Do someone know which callback function is first called when >>> choosing the >>> menu bar. >> I believe the method Fl_Menu::pulldown() (see fltk/src/Fl_Menu.cxx) >> blocks into an Fl::wait() loop .. > > And knowing which callback function gets called doesn't nec

Re: [fltk.general] Program is interrupted when choosing something fromthe menu bar

2008-11-22 Thread Greg Ercolano
Sahit Erdis wrote: > I wrote a program using among other thing the libfltk. My program is > interrupted each time I choose something from the menu bar. > I use the FL_Menu_Bar class. .. I would prefer if the program continue > when I'm choosing the menu bar. If you want to keep your progra

Re: [fltk.general] Is there a toolkit for file and folder manipulation

2008-11-21 Thread Greg Ercolano
Mitchell wrote: > Managing directories and files is different on every OS. Hmm, standard C functions like open()/fopen() works on all OS's for me, and is the easiest interface for creating files. Rarely when I need more OS specific calls to access native features (

Re: [fltk.general] Reg: Fl_Charts

2008-11-20 Thread Greg Ercolano
Gaurav Awasthi (India - Bangalore) wrote: > Hi All, > I want to use Charts in FLTK , coz my application requires > a graph b/w time and voltage...periodically,can can u give me > an example showing hw to use Fl_Chart. I've never used Fl_Chart before, but was happy to find it easy b

Re: [fltk.general] Encodings under FLTK 1.3.x

2008-11-17 Thread Greg Ercolano
Albrecht Schlosser wrote: > You must encode all your strings and widget values as utf-8, and maybe > convert > the input values from input widgets back to your normal character encoding > (if > this is not utf-8). ..and if you need to automate this conversion, you can use iconv(3)

Re: [fltk.general] fluid: reset-colors?

2008-11-16 Thread Greg Ercolano
imacarthur wrote: > On 15 Nov 2008, at 12:04, Jane wrote: > >> hello, is it possible to tell fluid to unset any previously >> set colors so that the defaults are used again? > > Hmmm - I don't think so, but I have never wanted to do that... I > guess you might have to do something like; I

Re: [fltk.general] fltk.lib conflicts with msvcrt.lib?

2008-11-14 Thread Greg Ercolano
Zdravko wrote: > I have the very same issue. Anyone? Compare your link line to the link line of one of the FLTK apps to see what's different. If you're not sure, paste both here. Also: which compiler? ___ fltk mailing li

Re: [fltk.general] use_system_file_chooser GetOpenFileName

2008-11-10 Thread Greg Ercolano
WangHua wrote: >> Under linux, Fl_Native_File_Chooser should be trying to use FLTK's >> own browser, since linux doesn't really have a 'native' chooser. >> >> This way the one API should work on all platforms. Let me know if >> it's not doing that. > Yes. FLTK's own browser is

Re: [fltk.general] use_system_file_chooser GetOpenFileName

2008-11-09 Thread Greg Ercolano
WangHua wrote: >> Go to Erco's Cheat Sheet >> http://seriss.com/people/erco/fltk/ >> > Thank you. Following above link, I got Fl_Native_File_Chooser. > After reading source codes, It seems having native File_Chooser for Windows > and Mac OS, but no Linux. Under linux, Fl_Native_File_Choos

Re: [fltk.general] toggle tooltips globally?

2008-11-09 Thread Greg Ercolano
Jane wrote: > hello there, > > is there some switch to toggle tooltips globally in FLTK > 1.1? if not, is there some simple way to archieve the same > (eg without having to iterate to every single widget and > disable its tooltip)? > > ty, jane I believe you want: Fl_Tooltip::enabl

Re: [fltk.general] STR listing on "My Account" web page

2008-11-07 Thread Greg Ercolano
BTW, I too have a 'My Account' question. On the 'My Account' page I just changed my greg.ercolano email address from [EMAIL PROTECTED] to [EMAIL PROTECTED], because the old address bounces now. But now when I post text to STRs, I get a warning "Your message to fltk-bugs awaits moderator approva

Re: [fltk.general] Chinese characters

2008-11-05 Thread Greg Ercolano
Greg Ercolano wrote: > I think the 0xA0 character might be the problem here. > A0 being the hi bit set equivalent of an ascii space. qiaogang chen, I compiled the below, slightly modified program on my Vista machine with FLTK 1.3.x, and when I run it, it shows this image:

Re: [fltk.general] Chinese characters

2008-11-05 Thread Greg Ercolano
I think the 0xA0 character might be the problem here. A0 being the hi bit set equivalent of an ascii space. See my followups on the end of Ian's STR #2080 here: http://www.fltk.org/str.php?L2080 In short, I'm thinking some code in FLTK is folding the 0xA0 down into an 0x20, and this might be mess

Re: [fltk.general] Fl_scroll don't redraw

2008-11-05 Thread Greg Ercolano
MacArthur, Ian (SELEX GALILEO, UK) wrote: >> I tried to make an image browser with Fl_Scroll and Fl_Button. >> My code : http://nopaste.info/2b8b92cf0c.html >> When i choose a directory, i call the loadDirectory function >> >> gui->window is the Fl_Double_Window >> >> >> My problem : the Fl_Scroll

Re: [fltk.general] Maximised window capability

2008-11-03 Thread Greg Ercolano
Fabien Costantini wrote: >> Fabien Costantini wrote: > ./.. >>> so I believe we are quite numerous in favor of such an addon. >>> We have some priority work to do with utf8 but I promise I would care for >>> that one if it's in qn RFE somewhere in the 1,3 roadmap ;-) >> Yes, I agree get 1.3 s

Re: [fltk.general] Maximised window capability

2008-11-03 Thread Greg Ercolano
Fabien Costantini wrote: >> Alvin wrote: >>> I just need to figure out how to determine if the window is already >>> maximised :) Oh, and how to "restore" the window as well. > ./.. >> Maybe someone on the core can accumulate all of these X11 and Windows >> examples and roll it all up int

Re: [fltk.general] Maximised window capability

2008-11-03 Thread Greg Ercolano
Alvin wrote: > I just need to figure out how to determine if the window is already > maximised :) Oh, and how to "restore" the window as well. Here's a post showing how to do it under Microsoft Windows; specifically, see the Is_Maximized(Fl_Window*) function in this posting:

Re: [fltk.general] Chinese characters

2008-11-01 Thread Greg Ercolano
imacarthur wrote: > On 1 Nov 2008, at 17:08, Greg Ercolano wrote: >> Does the following program display inconsistently? > > Well, works for me, and lots shorter than the hack I wrote! > Observations are that the 0xFF at the end of the input string needs > to be exci

Re: [fltk.general] Chinese characters

2008-11-01 Thread Greg Ercolano
imacarthur wrote: >> b8 ae e5 8a a9 39 20 e9 80 80 e5 87 ba ff > > I assume the 0xFF at the end is just a typo? (It is not valid UTF-8) > Replacing that with 0x00 seems to form a valid UTF-8 string, and in > my tests it seems to work just fine. I don't seem to see the effects > you report.

Re: [fltk.general] Chinese characters

2008-11-01 Thread Greg Ercolano
qiaogang chen wrote: > OK, The idea to take UTF8 as future's main coding method is a good idea. But > now in china, 2 byte chinese character mix with 1 byte english character in > ANSI text is widly spreaded. A free editor software Notepad++ support this > mode. > > As your wish, I provide the

Re: [fltk.general] Chinese characters

2008-10-29 Thread Greg Ercolano
qiaogang chen wrote: > Hello > I am using fltk 1.19 to develop an application for chinese users,under > windows. In my apps window, Fl_Input , Fl_Text_Editor is used. It is good to > edit english characters ,but when enter chinese character, the cursor is > position at wront place ,so if I wan

Re: [fltk.general] cout to window, how?

2008-10-28 Thread Greg Ercolano
MacArthur, Ian (SELEX GALILEO, UK) wrote: > ..or add the /console option to a VC link line - I think) The link flag I'm familiar with for VS/VC is /subsystem:console which replaces /subsystem:windows if you want to see cout/cerr/printf.

Re: [fltk.general] chars from the void

2008-10-27 Thread Greg Ercolano
Jane wrote: > hello, > > in windows FLTK shows me chars that are not there: > http://img77006.pictiger.com/images/17220960/z/ > > in the top you see the file i read from, its plain text, one preset name > after the other, each exactly 16 chars long. in the middle is the code i use > to feed the

Re: [fltk.general] fltk with pthreads in windows

2008-10-26 Thread Greg Ercolano
imacarthur wrote: > There are "emulations" of pthreads that run on win32 .. > However - I wouldn't bother [with pthreads on win32].. the MS > "_beginthread(...)" > ..and.. "pthread_create(...)" are similar enough.. Yes, "me too".. In my multiplatform apps, I made the decision to

Re: [fltk.general] Event Handling

2008-10-25 Thread Greg Ercolano
Larry Navarro wrote: > When I click the Button Widget, my derived class handles it!? > How do I prevent this from happening? When you override handle(), you take over that widget's events completely. In most cases you want to pass events down to the base class's handle(), b

Re: [fltk.general] browser with substring filter

2008-10-08 Thread Greg Ercolano
Greg Ercolano wrote: > I think when I needed this, I just used a regular Fl_Browser > and Fl_Input field. Any items that didn't match the search > made the non-matching items in the browser 'hidden'. > > So in other words, all items were still

Re: [fltk.general] browser with substring filter

2008-10-08 Thread Greg Ercolano
Jane wrote: > hello, > > i have lot of items that i want to put into a browser so that the user can > see and select them. ") but since its 512 or 1024 or more items, i need some > filter functionality, so, when the user knows what he/she is looking for, the > user has a textfield or some short

Re: [fltk.general] bar graph?

2008-10-05 Thread Greg Ercolano
imacarthur wrote: > On 5 Oct 2008, at 13:45, j. davis wrote: >> Greetings... >> I'm working on an app using fltk and I need a (vertical) bar graph > > If the widget is to be "output only", then you may be best just > rolling your own. > What I did (and it was a while ago) was just derive my ow

Re: [fltk.general] Fluid crash

2008-09-25 Thread Greg Ercolano
MacArthur, Ian (SELEX GALILEO, UK) wrote: >> The platform is an amd 64 dual core, with Linux slamd64 10.2. >> I made what Ian MacArthur wrote, i.e.: >> >> 1) Created a new fltk-1.3.x-r6305 tree from the file bz2. >> 2) make distclean >> 3) ./configure --disable-shared >> 4) make >> 5) cd fluid >> 6

Re: [fltk.general] FLTK programe portability

2008-09-22 Thread Greg Ercolano
Tomas Bym wrote: > when I try to run it on other computer, > I get the error, that the installation is bad. What is the exact error message? It's either DLLs (in which case compile static, or include the DLLs it's complaining about in the same dir as your exe) ..o

Re: [fltk.general] Event handle

2008-09-16 Thread Greg Ercolano
Greg Ercolano wrote: > // A window where mouse events pops open text messages > class MyWindow : public Fl_Window BTW, ignore the comment above the 'class MyWindow' line; leftover from the previous working example I snipped it out of. The rest of the comme

Re: [fltk.general] Event handle

2008-09-16 Thread Greg Ercolano
Tomas Bym wrote: > How should look the handle() function in the main Window.Can I do it just > like this? > > int handle(int event) > { > switch(event) > { > case FL_RELEASE: > std::cout<<"ok"; > return 1; > } > > } No, that's just mak

Re: [fltk.general] use of Fl_Scroll - how do I...

2008-09-10 Thread Greg Ercolano
imacarthur wrote: > So... what I want is a drawing area that resizes horizontally as I > drag the window (there is no horizontal scrollbar). As the image > reflows horizontally, the vertical dimension will change, so a > vertical scrollbar might appear/disappear at some point, and size/ > po

Re: [fltk.general] Fl_File_Chooser: a way to swap OK and Cancel buttons?

2008-09-08 Thread Greg Ercolano
Michael Sweet wrote: > Greg Ercolano wrote: >> ... >> Would it be bad to add an 'Fl_Group *group()' to the >> Fl_File_Chooser API which could at least make that possible? > > If we make Fl_File_Chooser a real subclass of Fl_Group, you'll have

Re: [fltk.general] Fl_File_Chooser: a way to swap OK and Cancelbuttons?

2008-09-08 Thread Greg Ercolano
imacarthur wrote: > This is just for the built-in file chooser, right? Right. > So if, say, you > knew someone who had written a "native" file chooser and you used > that, then the different appearance of the chooser on the variant > hosts might be enough to defray any end-user conf

Re: [fltk.general] Fl_File_Chooser: a way to swap OK and Cancel buttons?

2008-09-08 Thread Greg Ercolano
Michael Sweet wrote: > Greg Ercolano wrote: > > ... >> Seems like this should be controllable from the API until >> the platforms all agree, but I'm thinking the default >> should be opposite of what FLTK has now. (IMHO) > > ... > > I

Re: [fltk.general] Fl_TeacherTool needs UTF-8

2008-09-08 Thread Greg Ercolano
Robert Arkiletian wrote: > The problem was the script in the Makefile was failing because the > variables were not defined. One of them was chmod. So the permission > problem manifests because even as root, you cannot run a file which is > not executable. Hence, the permission problem. > > Once I

Re: [fltk.general] Fl_Input

2008-09-07 Thread Greg Ercolano
Alvin wrote: > Is there a method via the API that I can use to will prevent a Fl_Input > widget (Value_Input, etc.) from losing focus? > > I have a dialog box that contains a Fl_Input. The dialog box appears when a > button is pushed on the main window. > > I would like the text in the Fl_Input t

Re: [fltk.general] Fl_TeacherTool needs UTF-8

2008-09-07 Thread Greg Ercolano
Robert Arkiletian wrote: lcUniConv/cp1251.h:36: warning: 'cp1251_mbtowc' defined but not used Archiving ../lib/libfltk_xutf8.a... Installing libfltk_xutf8.a in /usr/local/lib... make[1]: execvp: /usr/local/lib: Permission denied make[1]: execvp: ../lib/libfltk_xutf8.a: Perm

Re: [fltk.general] Fl_File_Chooser: a way to swap OK and Cancelbuttons?

2008-09-06 Thread Greg Ercolano
matthiasm wrote: > Gnome: > http://library.gnome.org/devel/hig-book/stable/windows-alert.html.en#alert-button-order > > Mac: > http://developer.apple.com/documentation/UserExperience/Conceptual/AppleHIGuidelines/XHIGWindows/chapter_18_section_7.html#//apple_ref/doc/uid/2961-BACFBA

Re: [fltk.general] Fl_File_Chooser: a way to swap OK and Cancel buttons?

2008-09-05 Thread Greg Ercolano
Michael Sweet wrote: > Greg Ercolano wrote: >> ... >> ..so all the time my users are often hitting the 'Cancel' >> button after browsing to a directory. >> >> If it's not in the API, I'd like to make an STR for it.. > > If the major des

[fltk.general] Fl_File_Chooser: a way to swap OK and Cancel buttons?

2008-09-05 Thread Greg Ercolano
Thought I'd better ask before making an STR; is there a way to switch around the positions of the OK and Cancel buttons in Fl_File_Chooser via the API? All my apps (and most apps these days) have the OK button at the far right: +---+ |

[fltk.general] [OT] Google's description of writing a large application

2008-09-03 Thread Greg Ercolano
While catching up on just wtf "Google Chrome" is (their new web browser), I fell across a description of their technology which I found read more like a log book of the coding process of a really large app. I found it pretty good reading: http://www.google.com/googlebooks/chrome/ It describes pro

Re: [fltk.general] During widget resize(), how to get the current window's width/height?

2008-08-31 Thread Greg Ercolano
matthiasm wrote: > On 31.08.2008, at 21:00, Greg Ercolano wrote: > >> As Albrecht mentions in fltk.development (RFE: Fl_Group::resize() >> thread) >> this might actually be a bug in Fl_Group. > > Got it. I read that group *after* this one. The desi

Re: [fltk.general] During widget resize(), how to get the current window's width/height?

2008-08-31 Thread Greg Ercolano
matthiasm wrote: > On 31.08.2008, at 04:29, Greg Ercolano wrote: > The arguments of the resize call are the future coordinates. But I > assume you are overriding the "sticky" widget. Right, the arguments to the parent Fl_Window's resize() are the fu

Re: [fltk.general] Really strange behaviour with a Menu Item, fltk 1.1.9 - WindowsXP

2008-08-31 Thread greg ercolano
Pippo wrote: > by fluid a main window is created with some buttons, a menu bar inside and > various menu items By any chance, do you have your own handle() methods defined in your app? If so, maybe suspect one doing 'something' affecting mouse event delivery. Basically,

[fltk.general] During widget resize(), how to get the current window's width/height?

2008-08-30 Thread Greg Ercolano
I'm trying to write a widget that locks itself to the parent window's bottom/right edge. To do this, I'm overloading the widget's resize() method, and querying window()->w()/h() to get the window's width/height so I can calculate the new position of the widget. But unfortunately at the time the w

Re: [fltk.general] Really strange behaviour with a Menu Item, fltk 1.1.9 - WindowsXP

2008-08-30 Thread Greg Ercolano
> Pippo wrote: >> I cannot give the whole project to compile, Greg Ercolano wrote: > > Right, can't you write a small program that just opens a window > and posts a menu in the same way your big app does, and have the > callback invoke the fl_choice

Re: [fltk.general] Really strange behaviour with a Menu Item, fltk 1.1.9 - Windows XP

2008-08-30 Thread Greg Ercolano
Pippo wrote: >> I thunk you might have to post a minimal but complete, compileable >> example that manifests the fault. >> From you description so far, I don't have enough information > > I cannot give the whole project to compile, Right, can't you write a small program that just opens

Re: [fltk.general] FLTK Installion?

2008-08-27 Thread Greg Ercolano
xarver wrote: > I think FLTK looks interesting to learn, > and I want to install it but have no idea how... > I downloaded the tar.gz file and extracted it to the folder I want it in, > and I typed make in the terminal like it said in the readme > while the folder was open, and it didn't work... >

Re: [fltk.general] Symlinks to app bundles on OS X?

2008-08-26 Thread Greg Ercolano
Fabien Costantini wrote: >> Greg Ercolano wrote: >> Yes, that is probably better than 'open' in that you can >> at least pass arguments to your app normally. >> open(1) is somewhat limited when it comes to passing arguments >> through it. &

Re: [fltk.general] Symlinks to app bundles on OS X?

2008-08-26 Thread Greg Ercolano
Christian Convey wrote: >> #!/bin/sh >> dir="`dirname $0`" >> exec "$dir/name.app/Contents/MacOS/name" "$*" Yes, that is probably better than 'open' in that you can at least pass arguments to your app normally. open(1) is somewhat limited when it comes to passing argumen

Re: [fltk.general] Vista, fl_offscreen and fltk-1.1.9

2008-08-18 Thread Greg Ercolano
imacarthur wrote: > This maybe is pertinent to the problems with Vista Matthias was > asking about a few days ago... > > I have an app that I've been building against my hacked up 1.1.8/ > UTF-8 patched tree for a while, and it seems to work just fine. Ya, I don't think I've seen any i

Re: [fltk.general] Development under Windows

2008-08-17 Thread Greg Ercolano
Greg Ercolano wrote: > echo foo > /windows/temp/foo.txt > echo foo > \windows\temp\foo.txt Oh god, I hate windows: snip C:\Windows\Temp>echo foo > foo.txt<-- create a file <-- NO ERROR MESSAGE, SO IT WORKE

Re: [fltk.general] Development under Windows

2008-08-17 Thread Greg Ercolano
Pippo wrote: > However, I noticed that the FLTK interface is strictly tied to this > environment: > for example, the FLTK file chooser does not show the directories in the native > Windows way with "\" as separtors and ":" as root drives; on the contrary, > "/" are used and all the "usual" drives

Re: [fltk.general] Development under Windows

2008-08-17 Thread Greg Ercolano
Pippo wrote: > As far as I understood under windows there are two possibilities > to compile a fltk application. One is cygwin and the other one is mingw Of course there is the Microsoft compiler approach as well, ie. Visual Studio, which is the approach I've been using since

Re: [fltk.general] Building FLTK without WSOCK32.LIB (combatspyware paranoia)

2008-08-11 Thread Greg Ercolano
imacarthur wrote: > On 11 Aug 2008, at 17:51, christophe VIGNE wrote: > >>> In this age of rampant spyware, some end-users are freaking out when >>> they notice my application loading WSOCK32.DLL and related libraries. >>> Especially when my app isn't supposed to have any network >>> functionali

Re: [fltk.general] FLTK 1.3 labels and symbols

2008-08-06 Thread Greg Ercolano
Alvin wrote: > I haven't looked deeply into the code for drawing the symbols yet, however, > if I were to create a patch to add inner symbol support, would that be > desirable? I'm sure it would be great, as long as it doesn't slow down the non-symbol cases, since text drawing nee

Re: [fltk.general] FLTK 1.3 labels and symbols

2008-08-05 Thread Greg Ercolano
matthiasm wrote: > On 05.08.2008, at 20:59, Greg Ercolano wrote: > >> Alvin wrote: >>> Is it possible to have a symbol be drawn between text? For example, >>> when I >>> enter this: >>> >>> Press @-> to go right >>> >&g

Re: [fltk.general] FLTK 1.3 labels and symbols

2008-08-05 Thread Greg Ercolano
Alvin wrote: > Is it possible to have a symbol be drawn between text? For example, when I > enter this: > > Press @-> to go right > > All I see on the Fl_Box is "Press". I reported this a few years ago, and it was closed as 'won't fix': http://fltk.org/str.php?L703+P0+S-1+C0+I0

Re: [fltk.general] Table in FLTK 2.0

2008-08-01 Thread Greg Ercolano
Alex wrote: > You can try this one. > http://aleksoft.net/samples/table.tar.bz2 Cool -- after some small mods (mostly #include filename casing), was able to compile on linux with: g++ `fltk2-config --cxxflags` Table.cxx g++ `fltk2-config --cxxflags` Collection.cxx g++ `fltk2-confi

Re: [fltk.general] Table in FLTK 2.0

2008-07-31 Thread Greg Ercolano
George Petrov wrote: > There is Fl_Table for fltk 1.x, is it ported to fltk 2, or does something > like it exist in fltk. It hasn't been ported that I know of. I believe if you search the list for "Fl_Table" in the subject, you'll find a few threads from 2005 and 2004 tha

Re: [fltk.general] FLTK2 - RGB Color

2008-07-31 Thread Greg Ercolano
Adam wrote: > Hi. > How can I set the RGB color in FLTK 2? > > Widget Wid(0,0,10,10); > Wid.color(); // ? Wid.color(0xff00); // red Wid.color(0x00ff); // green Wid.color(0xff00); // blue ..eg: color(0xRRGGBB00) Documented here: http://fl

Re: [fltk.general] own layout

2008-07-30 Thread Greg Ercolano
Rafal wrote: > Im working on a testcase... can you paste how you think full ::layout() > should look like? Oh, FLTK2? Sorry, I'm not up on FLTK2 yet. Regarding FLTK2, I take it making a subclass and overriding resize() is not the way things are done anymore..?

Re: [fltk.general] own layout

2008-07-30 Thread Greg Ercolano
Rafal wrote: > As I always say, the more examples, the more popular lib will be. There are more examples here: http://seriss.com/people/erco/fltk/ Also, you can go to "Articles & FAQs" on the main fltk site and under 'Which Articles' choose 'How-To' and/or 'FAQ'

Re: [fltk.general] Fl_Menu_::add problem

2008-07-26 Thread Greg Ercolano
Oguz Akyuz wrote: > I think I can answer my question. It is the expected behavior since the menu_ > might require a realloc when a new item is added. Correct. > I think one should access all menu items using find_item to handle for such > cases. Yes, this is why I submitted find

Re: [fltk.general] Menus won't active on OS X?

2008-07-13 Thread Greg Ercolano
imacarthur wrote: > On 13 Jul 2008, at 18:37, Greg Ercolano wrote: >> Yes, I like the -post update idea. > > I guess so, although to do it well, we might need to extend it to > cover adding icons and all that sort of thing? I suppose if a .icns file exists,

Re: [fltk.general] Menus won't active on OS X?

2008-07-13 Thread Greg Ercolano
Michael Sweet wrote: > It is trivial to wrap FLTK apps in bundles; perhaps we should make > "fltk-config --post foo" create a basic foo.app bundle instead? Yes, I like the -post update idea. > Doing a bundle is the way that Apple wants it, so I guess we must > comply. There is still the

Re: [fltk.general] Fl_Multiline_Output + FL_message

2008-07-12 Thread Greg Ercolano
huda wrote: > I have a problem with writing with "Fl_Multiline_Output" > when i use a "message" function it does not work, i do not know why ??? My guess is you maybe can't open any new windows because you don't have a window.end() in your main(). I'd advise putting this a

Re: [fltk.general] Callback / doing something AFTER run() is called

2008-07-09 Thread Greg Ercolano
[EMAIL PROTECTED] wrote: > I want to have a function DoSomethingAfterWindowShown() which should be > called after run() is called. How do I do that? By using a timeout handler? Maybe you want to intercept the draw() method? When you show() a window, then return to run(),

Re: [fltk.general] Attempt # 137 at building fltk, please help me

2008-07-08 Thread Greg Ercolano
Dejan Lekic wrote: > I don't use Cygwin for years. > I build FLTK 2 on Windows using MinGW+MSYS. > In order to build it you need to install GNU Auto* packages. > > However, your sequence of commands is incorrect. > In cygwin you should do following commands (in exact order): > > cd > aclocal > a

Re: [fltk.general] MouseWheel events? Nope

2008-06-17 Thread Greg Ercolano
Jane wrote: > this and Fl::belowmouse() differ. Not sure what Fl::belowmouse() points to, > probably the window itself. "this" will be a pointer to your class (SpinnerM). Fl::belowmouse() will be a pointer to the widget (Fl_Spinner or Fl_Slider?), so you should make effo

Re: [fltk.general] MouseWheel events? Nope

2008-06-17 Thread Greg Ercolano
Jane wrote: > if (ev == FL_MOUSEWHEEL && this == Fl::belowmouse()) > [..] > It never enters the if(). Is there no FL_MOUSEWHEEL event for spinners? Try printing out the values in the if() statement with printf(). See what the value of ev, FL_MOUSEWHEEL, and "this" and "Fl::bel

Re: [fltk.general] visible() & stacking order (FLTK 2)

2008-06-16 Thread Greg Ercolano
Craig D wrote: > Got a short example program, with pictures here: > http://zenkinetic.com/fltktextbug.aspx > 1 window, 1 TextEditor, 1 TextDisplay (the visible widget, completely covers > the TextEditor), 2 buttons. > Clicking in the TextDisplay causes the TextEdit to blast text on the > TextDis

Re: [fltk.general] i am planning an app, need your advise

2008-06-16 Thread Greg Ercolano
imacarthur wrote: >> That audio mixing board has easily >1200 dial-knobs alone, not even >> counting the lights. > > Yes - exactly that sort of thing! > And let me tell you (maybe you already know) the first time you sit > in front of a desk like that, you freeze, 'cos your mind can't

Re: [fltk.general] i am planning an app, need your advise

2008-06-16 Thread Greg Ercolano
MacArthur, Ian (SELEX GALILEO, UK) wrote: >> with, say 1000 widgets > > Oh, too many. > Human beings can't manage UI's with that many control parameters. Hmm, you mean like this..? http://bradleysound.files.wordpress.com/2007/02/spectraphoto2_300dpi.jpg ;) That a

Re: [fltk.general] "dynamic" Buttons (FLTK2)

2008-06-16 Thread Greg Ercolano
Craig D wrote: >>> place it. It works BUT mouse movement causes redraw events=20 >>> (ie just moving the mouse around the image causes it to be=20 >>> redrawn). Is this expected behavior? No, just moving the mouse around should definitely NOT cause redraws. Otherwise apps would be

Re: [fltk.general] visible() & stacking order (FLTK 2)

2008-06-16 Thread Greg Ercolano
Craig D wrote: > I have a TextDisplay that I toggle (show/hide) with a button. The problem is > if the TextDisplay is obscured, I'd like the button to raise it to the top of > the stack instead of hiding it (which show does) but I don't know if the > TextDisplay is obscured (ie visible & visible

Re: [fltk.general] i am planning an app, need your advise

2008-06-14 Thread Greg Ercolano
Jane wrote: > I wish I could read C++ ... to be honest, I have no idea what the code does > and how to use it. You know, to me a Class is just some functions, called > methods, I can call. (like your code above, but simpler ^^) You might try the video tutorials on fltk here: http

Re: [fltk.general] i am planning an app, need your advise

2008-06-13 Thread Greg Ercolano
Jane wrote: > What about one huge Fl_Widget[] array. Since each parameter has a unique > ID starting by 0 and ending at 1900+ something, the index of that array > is also the parameter ID (we knew that already). > > But since I know what kind of widget is used for each parameter, > I can decide o

Re: [fltk.general] i am planning an app, need your advise

2008-06-13 Thread Greg Ercolano
Evan Laforge wrote: > But now that we are no longer haunted by the ABI specter, we can do > things like make values() virtual, right? I have a list of methods > I'd like to see virtual, and I think there are others scattered around > in STRs, but maybe make a list of methods that already overlap w

Re: [fltk.general] i am planning an app, need your advise

2008-06-13 Thread Greg Ercolano
imacarthur wrote: > On 13 Jun 2008, at 20:53, [EMAIL PROTECTED] wrote: > >>> Then your set_widget(130, 50); would perhaps become something like... >>> >>> set_widget(int id, float val) { >>> widget_array[id]->value(val); >>> } >> But Fl_Widget doesn't have a value() method. Keeping an array of

<    8   9   10   11   12   13   14   15   16   17   >