Search found 16 matches

by hardik_shah
Thu Nov 27, 2014 6:40 am
Forum: C++ Development
Topic: Showing menu inside wxComboBox Control
Replies: 1
Views: 701

Showing menu inside wxComboBox Control

Hi, I am using wxWidgets 3.0.1 On a standard Dialog (wxDialog), I need to show Menu/Sub-menu inside a Combo Box (drop-down) control. Please see the attachment. Can I achieve this by using combination of wxComboBox and some other control, Or will I have to customize them ? Can anyone guide me please....
by hardik_shah
Tue Jul 08, 2014 7:21 am
Forum: C++ Development
Topic: wxVListBox in wxWidgets 3.0.1
Replies: 9
Views: 1604

Re: wxVListBox in wxWidgets 3.0.1

Yes, you are right ! My OnMeasureItem is like this: wxCoord CustomListBox::OnMeasureItem(size_t WXUNUSED(item)) const { return m_bmpNormalBg.GetHeight(); } There I am calculating height based on the background image which I am using. I have three states of menu item: Normal, Selected, Hover. All are...
by hardik_shah
Tue Jul 08, 2014 4:11 am
Forum: C++ Development
Topic: wxVListBox in wxWidgets 3.0.1
Replies: 9
Views: 1604

Re: wxVListBox in wxWidgets 3.0.1

I tried making each menu item background/foreground images bigger by 20 pixels, so in turn menu item height will be 20 pixels more. I haven't fine tuned exact text size and all, but menu height is increased by 20 pixels to check. Scrollbar is still there. Please see the attachment. I will see if I c...
by hardik_shah
Mon Jul 07, 2014 1:39 pm
Forum: C++ Development
Topic: wxVListBox in wxWidgets 3.0.1
Replies: 9
Views: 1604

Re: wxVListBox in wxWidgets 3.0.1

I tried making it bigger, but it does not solve the problem. I think, the background painting is same as previous look. It is just that the vertical scrollbar is appearing. I tried various ways to remove vertical scroll bar (by removing WS_VSCROLL style and wxVSCROLL flag), but it didn't help me. On...
by hardik_shah
Mon Jul 07, 2014 11:53 am
Forum: C++ Development
Topic: wxVListBox in wxWidgets 3.0.1
Replies: 9
Views: 1604

Re: wxVListBox in wxWidgets 3.0.1

Please see attachment.

Previously, list control's scrollbar was not appearing on right side. That is what I need.

After porting to widgets 3.0.1, now it shows vertical scrollbar like a regular list box.

Any suggestion to solve this issue?

Thanks,
Hardik
by hardik_shah
Mon Jul 07, 2014 11:07 am
Forum: C++ Development
Topic: wxVListBox in wxWidgets 3.0.1
Replies: 9
Views: 1604

wxVListBox in wxWidgets 3.0.1

Hi, I have my working application with wxWidgets 2.8.5 which I'm porting to 3.0.1 I have one of my classes, derived from wxVListBox. I am using it to show custom menu as list items. I am handling drawing in OnDrawItem(...) function. After porting to 3.0.1, now that menu item look as changed like a r...
by hardik_shah
Mon Jun 23, 2014 11:41 am
Forum: Platform Related Issues
Topic: wxComboBox appearance issue on Mac with wxWidgets 3.0.1
Replies: 0
Views: 745

wxComboBox appearance issue on Mac with wxWidgets 3.0.1

Hi, I am migrating my application from wxWidgets version 2.8.5 to 3.0.1 In one of the dialog boxes, I have wxComboBox control placed, which does Not appear properly with wxWidgets 3.0.1 With 3.0.1, when I run my application, the text in the combo box (i.e. in edit control) appears bottom aligned. Al...
by hardik_shah
Thu Mar 13, 2014 11:49 am
Forum: C++ Development
Topic: wxWidgets 2.8.5 --> 3.0.0 - wxScrolledWindow
Replies: 1
Views: 513

wxWidgets 2.8.5 --> 3.0.0 - wxScrolledWindow

Hi, I have my working application developed using wxWidgets 2.8.5. I am porting it to 3.0.0. In 2.8.5 application, I have a working Horizontal Scroll bar in application which is implemented with help of wxScrolledWindow. After porting to 3.0.0, that Horizontal Scroll bar does Not appear anymore. Any...
by hardik_shah
Sat Sep 26, 2009 12:28 pm
Forum: C++ Development
Topic: Defining menu shortcut using wxWidgets
Replies: 2
Views: 505

No, I have Not tried wxAcceleratorTable for this.

Since rest of the menu items are working in similar way, I was wondering if I can find common solution, instead of doing it differently just for one menu item.

Anyways, I will give it a try.

Thanks,
Hardik
by hardik_shah
Sat Sep 26, 2009 8:49 am
Forum: C++ Development
Topic: Defining menu shortcut using wxWidgets
Replies: 2
Views: 505

Defining menu shortcut using wxWidgets

Hi, I am facing one strange problem while defining one specific shortcut using wxWidgets, on Windows. On Windows, for one of the menu items in my application, I want to define shortcut as: Ctrl+, (Ctrl Key + Comma) For this, I am defining shortcut as: wxT("\tCtrl+,") With this, it appears in Menu as...
by hardik_shah
Thu Sep 03, 2009 12:06 pm
Forum: C++ Development
Topic: How to detect if Modal dialog is open within application
Replies: 3
Views: 1551

How to detect if Modal dialog is open within application

Hi, Does anyone have an idea if there is any wxWidgets way to detect whether any Modal Dialog box is open within the scope of the application? While receiving certain events, I need to detect if there is any Modal dialog box (either custom Modal or File Open/File Save etc. Modal dialogs) are open or...
by hardik_shah
Thu Jun 18, 2009 11:52 am
Forum: C++ Development
Topic: ::wxGetKeyState(WXK_COMMAND) does Not work properly on Mac
Replies: 7
Views: 747

i'm not sure if this is a bug. It's somewhat explained here, although they don't use WXK_MENU: http://docs.wxwidgets.org/stable/wx_keymodifiers.html#keymodifiers Well then it's a documentation bug ;) Well, I feel it's implementation bug as well. Since there is already a define WXK_COMMAND in the li...
by hardik_shah
Tue Jun 16, 2009 2:44 pm
Forum: C++ Development
Topic: ::wxGetKeyState(WXK_COMMAND) does Not work properly on Mac
Replies: 7
Views: 747

Hi, have you tried other keys? i.e. do all keys fail or only command? In either case, I think this may well be worth a bug report. hint: if what you're trying to do is get keyboard shortcuts to work, there's much easier/cleaner ways Hi Auria, Yes, I tried with other keys and they worked. I think, I...
by hardik_shah
Tue Jun 16, 2009 1:03 pm
Forum: C++ Development
Topic: ::wxGetKeyState(WXK_COMMAND) does Not work properly on Mac
Replies: 7
Views: 747

::wxGetKeyState(WXK_COMMAND) does Not work properly on Mac

Hi, I am trying to figure out Down/Up state of 'Command' key on Mac and am using following statement: ::wxGetKeyState(WXK_COMMAND); Although Command key is pressed, this returns false. I am NOT using this in any of mouse key handler, but am using it in normal function. Is it still okay to use? The k...
by hardik_shah
Thu Jun 04, 2009 2:19 pm
Forum: C++ Development
Topic: wxWindow::FindFocus Not working on Mac
Replies: 0
Views: 359

wxWindow::FindFocus Not working on Mac

Hi, I'm having a problem that, wxWindow::FindFocus is Not returning handle of the control having focus, on Mac. I've a dialog which contains wxTextCtrl control and below piece of code does Not work as expected. wxWindow *pFocusedWin = NULL; pFocusedWin = wxWindow::FindFocus(); pFocusedWin is returne...