Search found 18 matches

by USB3pt0
Thu Jul 23, 2020 8:21 pm
Forum: C++ Development
Topic: Custom button taking left click event from other controls?
Replies: 2
Views: 224

Re: Custom button taking left click event from other controls?

Perfect, that was exactly what I was looking for.

Silly me kept trying to sleep the program, change around the events, change the mouse position programmatically...use a Boolean to block the first key entered.

Never thought to use a flag in the events...

Thanks.
by USB3pt0
Thu Jul 23, 2020 5:51 pm
Forum: C++ Development
Topic: Custom button taking left click event from other controls?
Replies: 2
Views: 224

Custom button taking left click event from other controls?

Hi, A while ago I posted about creating custom buttons and was pointed to this . While it has worked perfectly so far and with the addition of the following code to its mouseReleased function: wxCommandEvent evt(wxEVT_COMMAND_BUTTON_CLICKED, GetId()); evt.SetEventObject(this); HandleWindowEvent(evt)...
by USB3pt0
Thu Jul 02, 2020 5:06 pm
Forum: Platform Related Issues
Topic: Invoke Windows touch keyboard?
Replies: 2
Views: 261

Re: Invoke Windows touch keyboard?

I went into Tablet mode to see, but clicking the text field in it didn't seem to make a difference.

I will look into invoking osk.exe, either that or adding what the keyboard that exists needs.

Thank you.
by USB3pt0
Thu Jul 02, 2020 3:55 pm
Forum: Platform Related Issues
Topic: Invoke Windows touch keyboard?
Replies: 2
Views: 261

Invoke Windows touch keyboard?

Hi, The app I'm working on is intended to be deployed onto touch screen devices. The user will occasionally need to input alphanumeric characters for purposes of saving files and the like. Right now, I have a keyboard made up in wxWidgets using buttons and a text control, but would like to use the b...
by USB3pt0
Thu Jun 18, 2020 8:14 pm
Forum: C++ Development
Topic: Shaped/rounded button resources
Replies: 5
Views: 536

Re: Shaped/rounded button resources

Actually, I have one last little question. When I make the panel with DrawRoundedRectangle, there's a bit of background around the edges in a rectangular shape. I had been hiding it by making it the same color as the application background, but that doesn't look very good when a button hovers over a...
by USB3pt0
Thu Jun 18, 2020 7:25 pm
Forum: C++ Development
Topic: Shaped/rounded button resources
Replies: 5
Views: 536

Re: Shaped/rounded button resources

I dunno how I managed to gloss over DrawLabel when looking at the reference docs, but I did.

Thank you for all the help.
by USB3pt0
Thu Jun 18, 2020 6:40 pm
Forum: C++ Development
Topic: Shaped/rounded button resources
Replies: 5
Views: 536

Re: Shaped/rounded button resources

Thanks, that custom control is exactly what I need. The buttons are still a little flat looking but I might end up just making them borderless and designing buttons in GIMP to use in their place. One last thing; the events. With that example on the wxWidgets wiki, how would I wire a button to do som...
by USB3pt0
Thu Jun 18, 2020 1:11 pm
Forum: C++ Development
Topic: Shaped/rounded button resources
Replies: 5
Views: 536

Shaped/rounded button resources

Hi everyone. I'm looking into changing wxButtons in my application under MSW to have rounded edges. Right now they're perfectly rectangular and have no shading. I'm working with Visual Studio 2019 Community Edition. I've tried setting the Resources.rc to include wx.rc, but it changes nothing. Same g...
by USB3pt0
Fri Jun 05, 2020 3:14 pm
Forum: C++ Development
Topic: Can't set wxChoice background color
Replies: 2
Views: 342

Can't set wxChoice background color

Hi all, I'm currently changing around background and font colors in my program to be easier on the eyes, but wxChoice is fighting me. The code to generate a wxChoice is as follows: wxString m_choiceBoxChoices[] = { wxT("default"), wxT("default") }; int m_choiceBoxNChoices = sizeof( m_choiceBoxChoice...
by USB3pt0
Tue May 19, 2020 7:21 pm
Forum: C++ Development
Topic: Can pass value between two dialogs but not to wizard?
Replies: 8
Views: 632

Re: Can pass value between two dialogs but not to wizard?

I found out why it wasn't working and it's dumb. I create the Wizard in the MainFrame. But the List dialog was being created in the MainFrame as well, a button in the wizard simply showed it, while creating another Wizard to be able to call its SetValue function. But it wasn't applying that to the w...
by USB3pt0
Mon May 18, 2020 8:45 pm
Forum: C++ Development
Topic: Can pass value between two dialogs but not to wizard?
Replies: 8
Views: 632

Re: Can pass value between two dialogs but not to wizard?

Well, they ARE added to the pages, but they're just all simple pages. Everything is defined in one wizard class file and header. This was all put together in wxFormBuilder, for what it's worth. And you can grab the wxID_FORWARD, find the window associated with it, and call Enable()/Disable() on that...
by USB3pt0
Mon May 18, 2020 7:04 pm
Forum: C++ Development
Topic: Can pass value between two dialogs but not to wizard?
Replies: 8
Views: 632

Re: Can pass value between two dialogs but not to wizard?

Your example works on my machine but I'm not sure what exactly is different between yours and mine. I do notice you subclass wxWizardPageSimple, while I just have my TextCtrl and the public SetValue for that TextCtrl in the Wizard's class file itself. Do I need to be subclassing the page for it to u...
by USB3pt0
Mon May 18, 2020 6:22 pm
Forum: C++ Development
Topic: Can pass value between two dialogs but not to wizard?
Replies: 8
Views: 632

Re: Can pass value between two dialogs but not to wizard?

I wish I could offer more insight but I really can't think of anything else that would be relevant. Oddly, when SetValue on the textctrl is called from the SetTextValue function coming from ListDialog, while the value is updated (checking by calling the ctrl's getValue before and after the SetValue ...
by USB3pt0
Mon May 18, 2020 1:29 pm
Forum: C++ Development
Topic: Can pass value between two dialogs but not to wizard?
Replies: 8
Views: 632

Can pass value between two dialogs but not to wizard?

Hello everyone, I'm working on passing data between classes. Right now I have two dialogs (derived from wxDialog) and a wizard (derived from wxWizard). The config dialog is connected to the list dialog by a pointer, and calling a function in the config dialog called SetRelative, which simply returns...
by USB3pt0
Tue May 05, 2020 3:12 pm
Forum: C++ Development
Topic: wxToolBar and wxTB_BOTTOM - dead space?
Replies: 3
Views: 392

Re: wxToolBar and wxTB_BOTTOM - dead space?

Yeah, that fixed it and it looks the same. Thanks, hope it's an easy fix for the coders.