Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #11015 > unrolled thread
| Started by | ccyasa.sbassano@gmail.com |
|---|---|
| First post | 2017-09-27 05:58 -0700 |
| Last post | 2017-09-27 10:52 -0700 |
| Articles | 5 — 3 participants |
Back to article view | Back to comp.lang.clipper.visual-objects
ComboBox Cursor Problem ccyasa.sbassano@gmail.com - 2017-09-27 05:58 -0700
Re: ComboBox Cursor Problem "Jamal" <noooospam@example.com> - 2017-09-27 13:02 -0400
Re: ComboBox Cursor Problem ccyasa.sbassano@gmail.com - 2017-09-27 10:07 -0700
Re: ComboBox Cursor Problem "Karl-Heinz" <invalid@invalid.invalid> - 2017-09-27 19:31 +0200
Re: ComboBox Cursor Problem ccyasa.sbassano@gmail.com - 2017-09-27 10:52 -0700
| From | ccyasa.sbassano@gmail.com |
|---|---|
| Date | 2017-09-27 05:58 -0700 |
| Subject | ComboBox Cursor Problem |
| Message-ID | <dbc69241-00c3-486b-acfd-d020773f3ab9@googlegroups.com> |
Hi, i'm trying to fill a combobox (drop down style) with data from a table that match with the entered text in the edit part of the combobox. I begin to code: METHOD __EditChange() AS VOID PASCAL CLASS MyComboBox SUPER:__EditChange() // Begin of search for matches and fill combobox with AddItem // End of search for matches and fill combobox with AddItem // If there is any matches drop the list and select the first item IF (SELF:ItemCount > 0) PostMessage(SELF:Handle(), CB_SHOWDROPDOWN, 1, 0L) SELF:CurrentItemNo:= 1 ENDIF RETURN The list is dropped but the cursor disappears, i can see the highlighted items when i move the mouse but the cursor is not there. The cursor appears if i move outside the window but when i move over the windows disappear again. If i click the combobox button to drop and then enter the text the cursor don't disappear. This url is a image tha shows the problem: https://drive.google.com/file/d/0ByTBG5dmuZ9SelduRmtrNjVMMWc/view?usp=sharing I'm missing something... and i can't figure out... Some ideas? Thanks
[toc] | [next] | [standalone]
| From | "Jamal" <noooospam@example.com> |
|---|---|
| Date | 2017-09-27 13:02 -0400 |
| Message-ID | <oqglim$ofp$1@news.albasani.net> |
| In reply to | #11015 |
Try self:SetFocus() after selecting item. Jamal wrote in message news:dbc69241-00c3-486b-acfd-d020773f3ab9@googlegroups.com... Hi, i'm trying to fill a combobox (drop down style) with data from a table that match with the entered text in the edit part of the combobox. I begin to code: METHOD __EditChange() AS VOID PASCAL CLASS MyComboBox SUPER:__EditChange() // Begin of search for matches and fill combobox with AddItem // End of search for matches and fill combobox with AddItem // If there is any matches drop the list and select the first item IF (SELF:ItemCount > 0) PostMessage(SELF:Handle(), CB_SHOWDROPDOWN, 1, 0L) SELF:CurrentItemNo:= 1 ENDIF RETURN The list is dropped but the cursor disappears, i can see the highlighted items when i move the mouse but the cursor is not there. The cursor appears if i move outside the window but when i move over the windows disappear again. If i click the combobox button to drop and then enter the text the cursor don't disappear. This url is a image tha shows the problem: https://drive.google.com/file/d/0ByTBG5dmuZ9SelduRmtrNjVMMWc/view?usp=sharing I'm missing something... and i can't figure out... Some ideas? Thanks
[toc] | [prev] | [next] | [standalone]
| From | ccyasa.sbassano@gmail.com |
|---|---|
| Date | 2017-09-27 10:07 -0700 |
| Message-ID | <a1cc6528-9a27-4502-b1ca-5b90924d1751@googlegroups.com> |
| In reply to | #11016 |
El miércoles, 27 de septiembre de 2017, 14:02:15 (UTC-3), Jamal escribió: > Try self:SetFocus() after selecting item. > > Jamal > > wrote in message > news:dbc69241-00c3-486b-acfd-d020773f3ab9 > > Hi, i'm trying to fill a combobox (drop down style) with data from a table > that match with the entered text in the edit part of the combobox. I begin > to code: > > METHOD __EditChange() AS VOID PASCAL CLASS MyComboBox > > SUPER:__EditChange() > > // Begin of search for matches and fill combobox with AddItem > // End of search for matches and fill combobox with AddItem > > // If there is any matches drop the list and select the first item > IF (SELF:ItemCount > 0) > PostMessage(SELF:Handle(), CB_SHOWDROPDOWN, 1, 0L) > SELF:CurrentItemNo:= 1 > ENDIF > > RETURN > > The list is dropped but the cursor disappears, i can see the highlighted > items when i move the mouse but the cursor is not there. The cursor appears > if i move outside the window but when i move over the windows disappear > again. > If i click the combobox button to drop and then enter the text the cursor > don't disappear. > This url is a image tha shows the problem: > > https://drive.google.com/file/d/0ByTBG5dmuZ9SelduRmtrNjVMMWc/view?usp=sharing > > I'm missing something... and i can't figure out... > Some ideas? > Thanks I Jamal, tried that without success, same behaviour. Thanks. Sebastián
[toc] | [prev] | [next] | [standalone]
| From | "Karl-Heinz" <invalid@invalid.invalid> |
|---|---|
| Date | 2017-09-27 19:31 +0200 |
| Message-ID | <f325msF2v1bU1@mid.individual.net> |
| In reply to | #11015 |
Hi ????? strange things are going on ... The cursor disappears even when i use the (Window) Editchange(oEvent) instead of the (ComboBox) __EditChange(). But this seems to be a common windows problem: The workaround is to send WM_SETCURSOR https://social.msdn.microsoft.com/Forums/windows/en-US/8ac44f99-a04f-4703-830c-27a7f298ded7/combobox-mouse-disappears?forum=winforms IF (SELF:ItemCount > 0) PostMessage(SELF:Handle(), CB_SHOWDROPDOWN, 1, 0L) SELF:CurrentItemNo:= 1 SendMessage(SELF:Handle(), WM_SETCURSOR, 0, 0L ) //<---------- ENDIF regards Karl-Heinz
[toc] | [prev] | [next] | [standalone]
| From | ccyasa.sbassano@gmail.com |
|---|---|
| Date | 2017-09-27 10:52 -0700 |
| Message-ID | <225d2c52-6fde-4b73-92f0-850c25375e38@googlegroups.com> |
| In reply to | #11018 |
El miércoles, 27 de septiembre de 2017, 14:33:18 (UTC-3), Karl-Heinz escribió: > Hi ????? > > strange things are going on ... > > The cursor disappears even when i use the (Window) Editchange(oEvent) > instead of the (ComboBox) __EditChange(). But this seems to be a common > windows problem: > > The workaround is to send WM_SETCURSOR > > https://social.msdn.microsoft.com/Forums/windows/en-US/8ac44f99-a04f-4703-830c-27a7f298ded7/combobox-mouse-disappears?forum=winforms > > IF (SELF:ItemCount > 0) > PostMessage(SELF:Handle(), CB_SHOWDROPDOWN, 1, 0L) > SELF:CurrentItemNo:= 1 > > SendMessage(SELF:Handle(), WM_SETCURSOR, 0, 0L ) //<---------- > > ENDIF > > regards > Karl-Heinz Hi Karl, excellent! Thanks! Sebastián
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.clipper.visual-objects
csiph-web