Search found 27 matches

by papafreebird
Thu Jun 05, 2008 12:04 pm
Forum: C++ Development
Topic: How embed icon into application executable in linux.
Replies: 5
Views: 1690

Okay. Thanks for the confirmation.
by papafreebird
Wed Jun 04, 2008 8:23 pm
Forum: C++ Development
Topic: How embed icon into application executable in linux.
Replies: 5
Views: 1690

Hello, Thanks for responding! I guess my initial post wasn't very clear. I'll try to explain what I'm wanting to do better. What I want to do is create an icon for my linux bin/executable similar to what is done in windows. In windows explorer when looking at the program file you would see the icon....
by papafreebird
Wed Jun 04, 2008 2:10 am
Forum: C++ Development
Topic: How embed icon into application executable in linux.
Replies: 5
Views: 1690

How embed icon into application executable in linux.

I have a feeling after reading some other posts that this is not possible. But I am going to ask anyway. Is there a way to embed an xpm icon into the executable of a linux file? I can put an xpm icon into the upper left corner of the app's frame but I want to actually put an embed an icon into the e...
by papafreebird
Sat Apr 19, 2008 4:46 pm
Forum: C++ Development
Topic: Problem adding tooltips (in linux)
Replies: 10
Views: 1700

Here is the weird thing. Objects inside staticboxes don't work with tooltips but if you place an object outside of staticboxes then tooltips work just fine. Weird.
by papafreebird
Sat Apr 19, 2008 2:18 pm
Forum: C++ Development
Topic: Problem adding tooltips (in linux)
Replies: 10
Views: 1700

Must have been an issue with the way that I had created the project because I have also just created a small test project and was able to use tooltips just fine.

Thanks for all who have helped.
by papafreebird
Fri Apr 18, 2008 11:06 pm
Forum: C++ Development
Topic: Problem adding tooltips (in linux)
Replies: 10
Views: 1700

Well that just stinks as checkboxes are primarily what I need the tooltips for. Hmmm. Hopefully I can find a workaround.
by papafreebird
Fri Apr 18, 2008 8:35 pm
Forum: C++ Development
Topic: Problem adding tooltips (in linux)
Replies: 10
Views: 1700

Well I'm sure it is probably something I'm doing wrong or a setting I'm missing in codeblocks. :lol:

As far as I know tooltips work fine in linux as an app I use from time to time in linux that is written in gtk does have tooltips.
by papafreebird
Fri Apr 18, 2008 7:49 pm
Forum: C++ Development
Topic: Problem adding tooltips (in linux)
Replies: 10
Views: 1700

you could also try _T("test"); I'm pretty sure that _T() and wxT() are the same, but its worth a shot. Also, are you setting your tooltip in your createControls() function? Tried _T just now and no luck. Not sure about the createcontrols funtion. I am using codeblocks to create my form and it has a...
by papafreebird
Fri Apr 18, 2008 7:03 pm
Forum: C++ Development
Topic: Problem adding tooltips (in linux)
Replies: 10
Views: 1700

Problem adding tooltips (in linux)

I am having problems adding tooltips using wxGTK for linux. I have tried checkbox->SetToolTip("test"); checkbox->SetToolTip(_("test")); checkbox->SetToolTip(wxT("test")); and get no joy. All compile with no problems I just don't get tips on mouseover of the checkbox. Any help would be appreciated.
by papafreebird
Mon Apr 14, 2008 11:07 pm
Forum: C++ Development
Topic: Redirect output from a shell script of wxexecute to textctrl
Replies: 5
Views: 1996

Thanks Auria. I'll look at popen and see if I can make that go.
Much appreciated.

Other replies are welcome and appreciated as well.
by papafreebird
Mon Apr 14, 2008 9:22 pm
Forum: C++ Development
Topic: Redirect output from a shell script of wxexecute to textctrl
Replies: 5
Views: 1996

Still no luck. I am wondering though. Does it make a difference that the process and text I am trying to redirect are from a bash/shell script? I am able to redirect the command prompt output of a .bat file in windows with c++ builder using createprocess but I just can't wrap my head around this for...
by papafreebird
Sun Apr 13, 2008 3:39 am
Forum: C++ Development
Topic: Redirect output from a shell script of wxexecute to textctrl
Replies: 5
Views: 1996

Redirect output from a shell script of wxexecute to textctrl

Hello! I have looked at the exec sample file but man is it confusing. I am trying to redirect the output of a console app called by my gui to a textctrl. My code will call and execute the console app but unfortunately will not redirect the output to my textctrl. Where am I going wrong? wxProcess *pr...
by papafreebird
Wed Apr 09, 2008 8:58 pm
Forum: C++ Development
Topic: Run a shell script with wxExecute?
Replies: 6
Views: 2076

Okay I got the issue with wxExecute figured out. It was a problem with spaces in the filename. Here is how I fixed it. wxString execute = "bash " + quote->GetLabelText() + app_path + "/" + app_name + quote->GetLabelText(); wxExecute(execute); //quote is nothing but a label with only a quotation mark...
by papafreebird
Wed Apr 09, 2008 4:05 pm
Forum: C++ Development
Topic: Run a shell script with wxExecute?
Replies: 6
Views: 2076

Well I feel like I'm getting somewhere. Instead of using wxExecute or std::cout I used execl("/bin/bash",app_path + "/" + app_name,"hcbatch.sh",NULL); This worked and the gui now executes the shell script. The only problem is that it also imediately crashes the gui. One hurdle jumped and now there i...
by papafreebird
Wed Apr 09, 2008 2:15 pm
Forum: C++ Development
Topic: Run a shell script with wxExecute?
Replies: 6
Views: 2076

Auria wrote:What happens?
The shell script is created fine but not executed.
Auria wrote: have you tried printing the command you issue to check it's rigth?
I double clicked the created shell script and chose run in terminal and it worked as desired.