Search found 21 matches

by goeba
Sat Nov 19, 2016 4:45 pm
Forum: C++ Development
Topic: wxT Macro fails
Replies: 7
Views: 1107

Re: wxT Macro fails

@xaviou: I thought that using wxT( ...) should make it possible to build unicode apps using a different source encoding. Dialog Blocks doesn´t offer the possibility to change the source-encoding after project-start, so I´m afraid that I´d mess up the project when doing this myself. @doublemax: I tho...
by goeba
Sat Nov 19, 2016 4:06 pm
Forum: C++ Development
Topic: wxT Macro fails
Replies: 7
Views: 1107

Re: wxT Macro fails

Hi,

thanks for the tip. I checked, the source file is encoded iso-8859-1 , which is also my setting for the source encoding (I build with dialog blocks).

That´s what uchardet says:
uchardet kartei.cpp
ISO-8859-1

So I still think that it´s a bug in wxWidgets - or perhaps in dialog blocks.

Andreas
by goeba
Sat Nov 19, 2016 11:32 am
Forum: C++ Development
Topic: wxT Macro fails
Replies: 7
Views: 1107

Re: wxT Macro fails

speichern << "\\documentclass[10pt, pdftex]{article}\n"<< "\\usepackage{ngerman}\n"<< "\\usepackage[utf8]{inputenc}\n"<< "\\usepackage[T1]{fontenc}\n"<< "\\usepackage{times}\n"<< "\\usepackage[top=1cm, bottom=1cm, left=1cm, right=1.5cm, nohead, nofoot]{geometry}\n"<< "\\usepackage{enumerate}\n"<< "...
by goeba
Sat Nov 19, 2016 8:32 am
Forum: C++ Development
Topic: wxT Macro fails
Replies: 7
Views: 1107

wxT Macro fails

Hi, I´m using wxT on the following string: wxT("\\lstset{ inputencoding=utf8, literate={ä}{{\\\"a}}1 {ö}{{\\\"o}}1 {ü}{{\\\"u}}1 {Ä}{{\\\"A}}1 {Ö}{{\\\"O}}1 {Ü}{{\\\"U}}1 {ß}{{\\\"s}}1 {´}{{'}}1,}\n") << It´s for creating a LaTeX-File, that is why there are so many backslashes. The macro fails with ...
by goeba
Thu Nov 17, 2016 4:09 pm
Forum: C++ Development
Topic: wxSTC, different encodings
Replies: 2
Views: 426

Re: wxSTC, different encodings

The class reference was known to me. But I don´t think it´s the right way to change font-styles (this is where the encodings can be set) to achieve this, so I thought there might be more documentation on this. I have now decided to do it differently. There are command-line-tools that auto-detect an ...
by goeba
Wed Nov 16, 2016 3:49 pm
Forum: C++ Development
Topic: wxSTC, different encodings
Replies: 2
Views: 426

wxSTC, different encodings

Hi, I have a question concerning wxSTC. It seems to me that wxSTC auto-detects the encoding of a file - is that true? If so, how can I ask wxSTC to use a specific encoding when saving the file? I´d like to have - auto-detect when loading - utf8 for saving. Thanks for pointers to the right documentat...
by goeba
Tue Nov 15, 2016 6:05 pm
Forum: C++ Development
Topic: Button pressed
Replies: 13
Views: 1960

Re: Button pressed

I think in your case you dont need to check evt_left_down. If you would like, for instance, start a warning noise when the button is pressed down and want to stop that noise when the button is released, you´d have to do that, but not in your case. You need, as has been said, a list where you remembe...
by goeba
Tue Nov 15, 2016 5:50 pm
Forum: Platform Related Issues
Topic: wxGTK 3.1, debug wxMediaCtrl
Replies: 1
Views: 476

Re: wxGTK 3.1, debug wxMediaCtrl

Hi, I have found out how to debug gstreamer programs. There is an environment variable that controls the amount of messages given on the command line, see here: https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gst-running.html This, however, didn´t help me to solve my origina...
by goeba
Tue Nov 15, 2016 5:43 pm
Forum: C++ Development
Topic: Sending chars to a process
Replies: 1
Views: 263

Re: Sending chars to a process

Hi,

it seems that the way mpg123 handles it´s input stream is out of the ordinary.

I have now tested vlc media player with it´s command-line interface, here I can send commands via the wxProcess input stream with no problems.
by goeba
Mon Nov 14, 2016 4:06 pm
Forum: C++ Development
Topic: Sending chars to a process
Replies: 1
Views: 263

Sending chars to a process

Hi, I have started a process with wxExecute and redirected standard output and input. But if I call MP3Process->GetOutputStream() -> PutC('s'); nothing happens. The process (mpg123 , a command line program to play mp3 files) doesn´t react. mpg123 uses stdin - at least it says so in the docs. If I st...
by goeba
Sun Nov 13, 2016 4:24 pm
Forum: Platform Related Issues
Topic: wxGTK 3.1, debug wxMediaCtrl
Replies: 1
Views: 476

wxGTK 3.1, debug wxMediaCtrl

Hi, I haven´t been around for quite some time, so I´ve posted this on the mailing list, too. Which is more active nowadays, the forum or the mailing list? I use wxMediaCtrl to play mp3-files. My general problem is that I don´t get useful error-messages when something goes wrong. Playing mp3 works fi...
by goeba
Tue May 29, 2007 9:18 pm
Forum: Platform Related Issues
Topic: Opening a file with my program (Mac OSX)
Replies: 2
Views: 573

Thanks!

Regards,

Andreas
by goeba
Tue May 29, 2007 8:20 pm
Forum: Platform Related Issues
Topic: Opening a file with my program (Mac OSX)
Replies: 2
Views: 573

Opening a file with my program (Mac OSX)

Hi, on windows and linux when an extension is connected with a program the OS passes the filename to the program arguments. Thus I can start my program with the right file loaded like this: if (argc == 2){ wxString filename(argv[1]); Mainframe->Update(); Mainframe->Refresh(); Yield(); Mainframe->Loa...
by goeba
Mon Mar 19, 2007 4:35 pm
Forum: C++ Development
Topic: Multiline items in wxTreeCtrl?
Replies: 0
Views: 253

Multiline items in wxTreeCtrl?

Hi,

for a special reason I would like to have multiline-labels in a wxTreeCtrl.

Is this possible? Is there a known "workaround"?

Thanks for your help,

Andreas
by goeba
Mon Apr 24, 2006 6:04 pm
Forum: C++ Development
Topic: wxDC bug in Windows? Desperately need help
Replies: 9
Views: 1822

Hi,

I have the following ideas:

- Memory-DC