Cross-Platform Programming with wxWidgets
Just Make It Cross-Platform
Subscribe to Feed
  • Home
  • Projects
  • Links

Taking Screenshots with wxWidgets under Mac OS is Really Tricky.

Components, Libraries 4 Comments » |

Taking screenshots is a very common task and it was a must for one of my current projects. What was a surprise when I understood that my favourite toolkit can’t do that in cross-platform manner.

It is official bug that wxScreenDC does not work properly under Mac OS and you can’t use Blit() message for copying screen onto wxMemoryDC.

After digging the Internet I found a kind of solution which used OpenGL and created wxWidgets-based class which takes screenshots also under Mac OS. It was really hard task for me because I haven’t used neither Carbon nor Cocoa before. However everything works now and I’m happy.

Here it is:

Click to continue reading “Taking Screenshots with wxWidgets under Mac OS is Really Tricky.”


May 21st, 2009 |

Tags: Articles, Components, wxWidgets




AxTk: An Accessibility Toolkit for wxWidgets

Components, Libraries, News 2 Comments » |

http://code.google.com/p/axtk/

What is AxTk?

AxTk (pronounced Ay Ex Tee Kay) is an open source, C++ add-on for wxWidgets that helps developers create highly accessible, talking applications for users with impaired vision. It may also be useful for other impairments that benefit from a simplified user interface.

AxTk features a new menu-based system that is easy to learn and use, in addition to providing adaptation for some existing GUI controls and dialogs. The developer can choose whether to use the menu system, or to adapt an existing application UI, or use a combination of methods.

AxTk is cross-platform (tested so far on Windows XP, Linux and Mac OS X 10.5), and includes text-to-speech classes with the ability to drive SAPI 5, Apple Speech Synthesis Manager, eSpeak, and Cepstral. Other speech engines can be driven by writing additional handlers.

Note that AxTk is a work in progress and the API is subject to change.

Click to continue reading “AxTk: An Accessibility Toolkit for wxWidgets”


May 7th, 2009 |

Tags: Components, wxWidgets




Работаем с Cairo в wxWidgets – Часть I – Компиляция CAIRO 1.8.6 на Visual C++ 8

Uncategorized 5 Comments » |

Первая статья из цикла, повествующего о том, ка киспользовать библиотеку cairo (и обертку wxCairo) с wxWidgets.

В этот раз речь пойдет о том, как собрать библиотеку cairo с помощью Visual C++ в Windows.

Для начала определимся, что нам нужно:

  • Mozilla Build 1.3
  • cairo 1.8.6
  • libpng 1.2.35
  • zlib 1.2.3
  • pixman 0.14.0

Click to continue reading “Работаем с Cairo в wxWidgets – Часть I – Компиляция CAIRO 1.8.6 на Visual C++ 8″


April 15th, 2009 |

Tags: wxWidgets, Статьи




Do You Need Data Access Layer Code Generator Tool?

Uncategorized No Comments » |

How much would you spend on Data Access Layer code generator tool for wxWidgets/DatabaseLayer which extracts metadata from your database and creates a set of classes for adding/editing/deleting records?













April 11th, 2009 |



Работа с базами данных в wxWidgets – DatabaseLayer – Минимальное приложение

Database No Comments » |

Вслед за анонсом новой версии DatabaseLayer, кросс-платформенной библиотеки для работы с базами данных, решил выложить небольшой туториал с примером использования DatabaseLayer.

В этот раз мы рассмотрим пример создания простейшего консольного приложения, использующего эту библиотеку для работы с базами данных.

Click to continue reading “Работа с базами данных в wxWidgets – DatabaseLayer – Минимальное приложение”


April 11th, 2009 |

Tags: Database, DatabaseLayer




DatabaseLayer 1.8 Released

Database, News 1 Comment » |

Yesterday jb_coder announced new version of cross-platform database access library for wxWidgets, DatabaseLayer 1.8.

DatabaseLayer provides access to different types of databases using unified wxWidgets-based API. It supports:

  • SQLite3
  • Firebird
  • MySQL
  • PostgreSQL
  • Oracle
  • Microsoft SQL Server
  • ODBC

Here is the list of changes for this release:

  • Changed RunQuery message signature to return a list of affected records
  • Database backends are dynamically loaded (at the request of users)
  • Ship with an internal version of SQLite3 to reduce dependency issues when compiling
  • UNICODE fixes for ODBC code
  • ODBC backend should now work for MS SQL Server
  • Various fixes for ODBC, Firebird, MySQL, and PostgreSQL backends
  • Added compile targets “databaselayer” and “databaselayer_gpl” to compile the library with multiple database backends
  • Added DLL exports to be able to use DatabaseLayer as a dynamic library

You can download DatabaseLayer 1.8 from wxCode

Read discussion of this release at wxForum.


April 11th, 2009 |

Tags: Database, DatabaseLayer




Using wxFlatNotebook in Code::Blocks Project

Video, wxWidgets No Comments » |

This tutorial shows how to:

  • Create wxFlatNotebook static library in Code::Blocks.
  • Configure and compile wxFlatNotebook library.
  • Create small wxWidgets project which uses wxFlatNotebook.
  • Configure project and add support of 3rd-party library.

Download video: “Using wxFlatNotebook in Code::Blocks Project”.


March 11th, 2009 |

Tags: Video, wxWidgets




Перевод книги Julian’а Smart’а – Глава IX – Написание собственных диалогов – Часть III

Books No Comments » |

Читать вторую часть главы “Написание собственных диалогов”.

Дополнительные заметки о дизайне диалогов

Несколько советов, которые помогут вашим диалогам выглядеть профессионально выглядящими.

Навигация с помощью клавиатуры

Указывайте мнемоники для меток со статическим текстом и для других элементов управления с метками. Для этого необходимо поставить перед необходимым символом амперсанд (&). На некоторых платформах (особенно Windows и GTK+) мнемоники помогают пользователю быстро передвигаться между элементами управления.

Click to continue reading “Перевод книги Julian’а Smart’а – Глава IX – Написание собственных диалогов – Часть III”


March 10th, 2009 |

Tags: wxWidgets, Библиотека, Книги




Перевод книги Julian’а Smart’а – Глава IX – Написание собственных диалогов – Часть II

Books 2 Comments » |

Читать первую часть главы “Написание собственных диалогов”.

Добавление помощи

Существует по крайней мере три пути как можно реализовать помощь для вашего диалога:

  • Всплывающие подсказки
  • Контекстная помощь
  • Справочная система

Кроме того у нас уже есть некоторый текст на самой панели диалога. Возможно вы захотите также использовать другие технологии, явно не поддерживаемые в wxWidgets. Например, для более сложных диалогов вы можете создать wxHtmlWindow вместо wxStaticText и загрузить в него HTML-файл, содержащий необходимое описание. В качестве альтернативы вы можете поместить маленькую кнопку помощи справа от каждого элемента управления, при нажатии на которую выводился бы некоторый текст с описанием.

Click to continue reading “Перевод книги Julian’а Smart’а – Глава IX – Написание собственных диалогов – Часть II”


March 10th, 2009 |

Tags: wxWidgets, Библиотека, Книги




Перевод книги Julian’а Smart’а – Глава IX – Написание собственных диалогов – Часть I

Books 2 Comments » |

Скачать PDF-версию (342 КБ)

Рано или поздно вам понадобится создать собственный диалог, будь то простой диалог, состоящий из текста и нескольких кнопок, или сложный диалог с вкладками, множеством панелей, собственными элементами управления, контекстной помощью и т.п. В этой главе мы рассмотрим основные принципы создания диалогов, а также передачу данных между переменными C++ и элементами управления. Также будет рассказано об использовании ресурсов, которые позволяют загружать диалоги и другие элементы интерфейса из XML-файлов.

Click to continue reading “Перевод книги Julian’а Smart’а – Глава IX – Написание собственных диалогов – Часть I”


March 10th, 2009 |

Tags: wxWidgets, Библиотека, Книги




Page 1 of 812345»...Last »
  • This blog is about…

    Библиотека Книги Статьи Articles Code::Blocks Components Controls Database DatabaseLayer Document/View Eclipse Localization NetBeans News Printing Reports SQLite Tutorilas Video Visual Studio wxAUI wxButton wxDev-CPP wxGrid wxHelpController wxJavaScript wxJSON wxLocale wxLog wxPaintDC wxPropertyGrid wxSQLite3 wxThread wxValidator wxWidgets wxWinCE wxZipInputStream wxZipOutputStream XML
  • Showcase

    Visit wxToolBox Homepage

    Buy wxToolBox (with source code)

  • Archives

    • May 2009
    • April 2009
    • March 2009
    • February 2009
    • January 2009
    • December 2008
    • September 2008
    • August 2008
    • July 2008
    • June 2008
    • May 2008
    • April 2008
    • March 2008
    • February 2008
    • January 2008
    • December 2007
    • June 2007
    • May 2007
    • January 2007
  • Recent Comments

    • T-Rex on Taking Screenshots with wxWidgets under Mac OS is Really Tricky.
    • al.zatv on Taking Screenshots with wxWidgets under Mac OS is Really Tricky.
    • T-Rex on wxWidgets-2.8 and Code::Blocks (Windows)
    • T-Rex on Taking Screenshots with wxWidgets under Mac OS is Really Tricky.
    • FirE on wxWidgets-2.8 and Code::Blocks (Windows)
  • Blogroll

    • In C++
  • Buttons

    Locations of visitors to this page

    Rambler's Top100

    Рейтинг@Mail.ru
    Blog Flux Directory

Copyright © 2009 Cross-Platform Programming with wxWidgets All Rights Reserved
RSS XHTML CSS Log in