Search found 425 matches

by cutecode
Fri Dec 22, 2023 10:53 am
Forum: wxWidgets Development (Russian)
Topic: custom event
Replies: 9
Views: 11215

Re: custom event

Я использую это функцию для симуляции нажатия клавиши давно ее делал, уже точно ни помню как она работает __WXDLLMAIN__LIB__ void post_keys(wxWindow* pWnd, UINT nKey, bool bShift) { #ifdef __WXGTK__ bShift = !bShift; #endif // __WXGTK__ pWnd->SetFocus(); wxUIActionSimulator as; int modifiers = wxMOD...
by cutecode
Mon Oct 09, 2023 11:36 pm
Forum: wxWidgets Development (Russian)
Topic: custom event
Replies: 9
Views: 11215

Re: custom event

1. Читал мануал, ничего не понял "ничего не понял" - так не бывает, если ты понял хотябы одно предложение в мануале, значит ты хоть что нибудь да понял. Пиши конкретно что не понятно. Я начинал изучать с этой книги https://docs.yandex.ru/docs/view?tm=1696894104&tld=ru&lang=en&...
by cutecode
Fri Mar 31, 2023 1:50 pm
Forum: C++ Development
Topic: program crashes on wxImage::LoadFile
Replies: 9
Views: 3017

Re: program crashes on wxImage::LoadFile

It's partially displayed
by cutecode
Fri Mar 31, 2023 1:37 pm
Forum: C++ Development
Topic: program crashes on wxImage::LoadFile
Replies: 9
Views: 3017

Re: program crashes on wxImage::LoadFile

Thank you this patch did help
I don't have any warning maybe because I put this line before LoadFile()
im.SetLoadFlags(im.GetLoadFlags() & ~wxImage::Load_Verbose);

Code: Select all

         wxImage im;
        im.SetLoadFlags(im.GetLoadFlags() & ~wxImage::Load_Verbose);
        if(im.LoadFile(sz))
by cutecode
Fri Mar 31, 2023 9:32 am
Forum: C++ Development
Topic: program crashes on wxImage::LoadFile
Replies: 9
Views: 3017

Re: program crashes on wxImage::LoadFile

WOW

Thank you.
Nice full description.
by cutecode
Fri Mar 31, 2023 8:31 am
Forum: C++ Development
Topic: program crashes on wxImage::LoadFile
Replies: 9
Views: 3017

Re: program crashes on wxImage::LoadFile

I don't know how to do it.
I would be grateful if you do it.

Thank you.
by cutecode
Fri Mar 31, 2023 7:24 am
Forum: C++ Development
Topic: program crashes on wxImage::LoadFile
Replies: 9
Views: 3017

program crashes on wxImage::LoadFile

How to check if image file is wrong before loading it with wxImage::LoadFile?
My program crashes if file is wrong
7Y1Ns-B7Uv2-27hPH-J2ibo.gif
7Y1Ns-B7Uv2-27hPH-J2ibo.gif (32.27 KiB) Viewed 3017 times

Code: Select all

      wxImage im;
        if(im.LoadFile(sz))
All prgograms are showing this file without any error
Why wxImage::LoadFile crashes?
by cutecode
Tue Nov 01, 2022 5:18 am
Forum: wxWidgets Development (Russian)
Topic: Linux печать только 2-й страницы
Replies: 16
Views: 30976

Re: Linux печать только 2-й страницы

проверил: на macOS и Windows в моей программе все работает

по поводу "bug report", мне наверно надо сначала wx обновить, это дело ни быстрое

СПС
by cutecode
Mon Oct 31, 2022 4:47 pm
Forum: wxWidgets Development (Russian)
Topic: Linux печать только 2-й страницы
Replies: 16
Views: 30976

Re: Linux печать только 2-й страницы

В других программах то работает такие как "1С" и "Adobe Reader"
причом у меня 2 принтера и на обоих одно и тоже поведение

и пробовал debian 9 и debian 10
by cutecode
Sat Oct 29, 2022 7:11 pm
Forum: wxWidgets Development (Russian)
Topic: Linux печать только 2-й страницы
Replies: 16
Views: 30976

Re: Linux печать только 2-й страницы

документ имеет 3 страницы

1,2,3 - печатает все 3 страницы
1,2 - печатает первые 2 страницы
2,3 - печатает только 2-ю странцу
3 - ничего ни печатает
3,4 - ничего ни печатает
3-4 - ничего ни печатает
by cutecode
Fri Oct 28, 2022 6:04 pm
Forum: wxWidgets Development (Russian)
Topic: Linux печать только 2-й страницы
Replies: 16
Views: 30976

Re: Linux печать только 2-й страницы

пробовал, после закрытия диалога вазращается масив страниц с 1 по 1 range[0].start = range[0].end = 1; case GTK_PRINT_PAGES_RANGES: {// wxWidgets doesn't support multiple ranges, so we can only save the first one even if the user wants to print others. // For example, the user enters "1-3;5-7&q...
by cutecode
Fri Oct 28, 2022 5:52 pm
Forum: wxWidgets Development (Russian)
Topic: Linux печать только 2-й страницы
Replies: 16
Views: 30976

Re: Linux печать только 2-й страницы

ни ругается, просто ни печатает

1-2 - печатает обе страницы
2-2 - молча ничего не печатает
by cutecode
Fri Oct 28, 2022 5:29 pm
Forum: wxWidgets Development (Russian)
Topic: Linux печать только 2-й страницы
Replies: 16
Views: 30976

Re: Linux печать только 2-й страницы

Приветствую
из примера тоже только 1-я страница печатается
На счет драйвера ни понял, у меня 2 принтера один физический, и другой PDF-принтер, на обоих один и тот же результат
Страница выбирается из диалогового окна Перед печатью
1.png
1.png (55.56 KiB) Viewed 26071 times
by cutecode
Fri Oct 28, 2022 6:14 am
Forum: wxWidgets Development (Russian)
Topic: Linux печать только 2-й страницы
Replies: 16
Views: 30976

Re: Linux печать только 2-й страницы

да, думаю 3-й вариант самый простой

1. Сформировать в PDF
2. открыть его приложением по умолчанию
3. А там уже пусть печатают как им угодно

СПС
by cutecode
Wed Oct 26, 2022 11:04 am
Forum: wxWidgets Development (Russian)
Topic: Linux печать только 2-й страницы
Replies: 16
Views: 30976

Linux печать только 2-й страницы

Ни печатает на Линуксе выборочно ни 2-й ни 3-й страницы Залез в исходники и нашел вот такое примечание в print.cpp case GTK_PRINT_PAGES_RANGES: {// wxWidgets doesn't support multiple ranges, so we can only save the first one even if the user wants to print others. // For example, the user enters &qu...