Search found 105 matches

by AndrzejB
Sun Aug 14, 2022 7:50 am
Forum: Platform Related Issues
Topic: BringToFront in Cinnamon
Replies: 5
Views: 946

Re: BringToFront in Cinnamon

Main problem is token, which I don't know which should be. KWindowSystem::setCurrentXdgActivationToken(token); In WxWidgets application is probably possible using method used in Lazarus Pascal. There is inside: procedure TGtk2WidgetSet.AppBringToFront; begin if Assigned(Application.MainForm) and App...
by AndrzejB
Sun Aug 14, 2022 4:11 am
Forum: C++ Development
Topic: Interprocess communication
Replies: 1
Views: 4075

Interprocess communication

In file sckipc.cpp, method wxTCPClient::MakeConnection https://github.com/wxWidgets/wxWidgets/blob/02c90d126c58a4901fe1295ad27031789ea49c61/src/common/sckipc.cpp#L369 has parameters: host, serverName, topic but has not port number. This communication is over TCP/IP? Yes, below is name "wxTCPCon...
by AndrzejB
Fri Aug 12, 2022 1:15 pm
Forum: Platform Related Issues
Topic: BringToFront in Cinnamon
Replies: 5
Views: 946

Re: BringToFront in Cinnamon

On other forum I have reply I'm not so sure about X11, but other systems, such as Windows, do not allow applications to "steal" the focus – for reasons of security and user experience. If at all, the process that owns the window which is currently focused will be allowed to transfer the fo...
by AndrzejB
Wed Aug 10, 2022 4:31 pm
Forum: Platform Related Issues
Topic: BringToFront in Cinnamon
Replies: 5
Views: 946

Re: BringToFront in Cinnamon

In which header is Raise() ? OK, this is widget method. After applying, this application is flickering in taskbar, but is not enough. Maybe Cinnamon protect it from bringing to front? But editor Kate probably can bring. Partial solution is in https://stackoverflow.com/questions/73309270/bring-my-app...
by AndrzejB
Wed Aug 10, 2022 3:37 pm
Forum: Platform Related Issues
Topic: BringToFront in Cinnamon
Replies: 5
Views: 946

BringToFront in Cinnamon

I have written multidocument text editor using wxStyledTextCtrl. I have IPC for detect other instance, if other instance is called it send message to first instance and stop. This action work OK. First instance must bring to front, and here begin problems. I have Linux and Cinnamon, and I wrote spec...
by AndrzejB
Sun Mar 27, 2022 6:30 pm
Forum: C++ Development
Topic: Icons from resources and for files
Replies: 4
Views: 315

Re: Icons from resources and for files

I have load from file m_icon[3].LoadFile("../Fairytale_up2.svg",wxBITMAP_TYPE_ICO); how scale to desired size? Using wxMemoryDC ? How to load from resources? Is example code : wxIcon icon = wxIcon(L"ICON_STOP", wxBITMAP_TYPE_ICO_RESOURCE, 32, 32); but how to make resources and ad...
by AndrzejB
Sun Mar 27, 2022 3:55 pm
Forum: C++ Development
Topic: Icons from resources and for files
Replies: 4
Views: 315

Re: Icons from resources and for files

Version last tag = v3.1.5,
I try master
by AndrzejB
Sun Mar 27, 2022 2:00 pm
Forum: C++ Development
Topic: Icons from resources and for files
Replies: 4
Views: 315

Icons from resources and for files

I read icons from Art: m_icon[i] = wxArtProvider::GetIcon(ArtIdents[i], wxART_LIST, wxSize{32,32}); I have several questions: 1. If I read from file, is possible read and render directly from SVG? 2. How link icons to binary file as resources and read from it? 3. How to read icons associated with fi...
by AndrzejB
Sun Mar 27, 2022 12:14 pm
Forum: C++ Development
Topic: Selection color in listview, especially in wxDataViewCtrl
Replies: 5
Views: 489

Re: Selection color in listview, especially in wxDataViewCtrl

I see is way to set attrbutes in example attr.SetColour( wxColour( *wxLIGHT_GREY ) ); in method MyListModel::GetAttrByRow , file samples/dataview/mymodels.cpp Selected items are treated special if ( state & wxDATAVIEW_CELL_SELECTED ) col = wxSystemSettings::GetColour(wxSYS_COLOUR_HIGHLIGHTTEXT);...
by AndrzejB
Sat Mar 26, 2022 10:36 am
Forum: Compiler / Linking / IDE Related
Topic: I can't compile debug wxWidgets
Replies: 1
Views: 335

I can't compile debug wxWidgets

(from tag v3.1.5) I try ../configure --with-gtk --enable-debug and ../configure --with-gtk --enable-debug_info --enable-debug_flag next make -j2 but it build *.so and *.a files without "d" letter in name and they are relative small. It seems that build release. ----------correction ../conf...
by AndrzejB
Fri Mar 25, 2022 6:07 pm
Forum: C++ Development
Topic: Selection color in listview, especially in wxDataViewCtrl
Replies: 5
Views: 489

Re: Selection color in listview, especially in wxDataViewCtrl

1 -> create MyDataViewDateRenderer instead wxDataViewDateRenderer whicch differ in MyDataViewDateRenderer::FormatDate() 2. is possible change all rows color, in example is wxDataViewCtrl * const dvc ..... ..... dvc->SetForegroundColour(col); Is possible in my own renderer draw foreground of some row...
by AndrzejB
Fri Mar 25, 2022 3:27 pm
Forum: C++ Development
Topic: Selection color in listview, especially in wxDataViewCtrl
Replies: 5
Views: 489

Re: Selection color in listview, especially in wxDataViewCtrl

I am looking into wxWidgets/samples/dataview
1.
Is possible render datetime in my format? Is

Code: Select all

val = wxDateTime(5, wxDateTime::Feb, 2022, 5,6,7);
2.
How to set text attributes some rows other than rest of rows?
by AndrzejB
Fri Mar 25, 2022 11:01 am
Forum: C++ Development
Topic: Selection color in listview, especially in wxDataViewCtrl
Replies: 5
Views: 489

Selection color in listview, especially in wxDataViewCtrl

I have Linux Mint.
Color depends from my Mint settings. Is possible change to specified?
More important: Is possible change color unfocused control to color like other , not selected elements?
by AndrzejB
Sat Mar 05, 2022 8:45 am
Forum: C++ Development
Topic: std::remove wants remove from stdio.h
Replies: 1
Views: 292

std::remove wants remove from stdio.h

I am using Mint 20.3 and install wxWidgets version 3.0.4 by sudo apt install libwxgtk3.0-gtk3-dev In /usr/include/wx-3.0/wx/string.h is #if defined(__VISAGECPP__) && __IBMCPP__ >= 400 // problem in VACPP V4 with including stdlib.h multiple times // strconv includes it anyway # include <stdio...
by AndrzejB
Sat Mar 05, 2022 7:09 am
Forum: C++ Development
Topic: wxStyledTextCtrl can read from stream/memory/buffer instead of file?
Replies: 4
Views: 375

Re: wxStyledTextCtrl can read from stream/memory/buffer instead of file?

I use

Code: Select all

stc->LoadFile(path)
where

Code: Select all

wxStyledTextCtrl* stc
I don't know how can set content, I can't see properties like stc->Lines or stc->Content, probably is other way to replace all content to specified.