Thank you very much TI-994A.
It's an interesting solution that I hadn't thought of and that could be useful in some situations.
Search found 43 matches
- Wed Dec 04, 2024 9:43 pm
- Forum: Coding Questions
- Topic: Gadget() Lost focus
- Replies: 5
- Views: 883
- Tue Dec 03, 2024 3:03 pm
- Forum: Coding Questions
- Topic: Gadget() Lost focus
- Replies: 5
- Views: 883
Re: Gadget() Lost focus
Thank you very much mestnyi for your help.
I see that the only correction that seems to be necessary is the one I am proposing now. I did not find any errors in the tests I carried out.
Thank you very much again.
#ReturnKey=1
Procedure FocusLost(K)
Debug "gadget(0) LostFocus "+Str(K)
If ...
I see that the only correction that seems to be necessary is the one I am proposing now. I did not find any errors in the tests I carried out.
Thank you very much again.
#ReturnKey=1
Procedure FocusLost(K)
Debug "gadget(0) LostFocus "+Str(K)
If ...
- Mon Dec 02, 2024 9:13 pm
- Forum: Coding Questions
- Topic: Gadget() Lost focus
- Replies: 5
- Views: 883
Gadget() Lost focus
This code block illustrates the situation in which the user removes focus from gadget(0) by placing the cursor in another getgad(), or uses Enter to advance to the next field.
In both situations it is necessary to ensure that the content of gadget(0) is correct.
When the content of gadget(0) is ...
In both situations it is necessary to ensure that the content of gadget(0) is correct.
When the content of gadget(0) is ...
- Wed Jun 07, 2023 12:14 pm
- Forum: Coding Questions
- Topic: TextGadget on PanelGadget with panels with background color
- Replies: 8
- Views: 1397
TextGadget on PanelGadget with panels with background color
The code I put together below works fine with PB 6.01.
With PB 6.02 the TextGadget(10,50,60,100,20,"ddgdfswewe") has a black background color, and nothing can be read.
The solutions I found are using ImageGadget() or ContainerGadget() to get the background color of the PanelGadget, or activating the ...
With PB 6.02 the TextGadget(10,50,60,100,20,"ddgdfswewe") has a black background color, and nothing can be read.
The solutions I found are using ImageGadget() or ContainerGadget() to get the background color of the PanelGadget, or activating the ...
- Sat Jul 31, 2021 12:25 pm
- Forum: Coding Questions
- Topic: Virtual Keyboard
- Replies: 8
- Views: 2938
Re: Virtual Keyboard
Hello Sicro.
It works. Now I can send the ascii code of the key that the result matches.
Thank you for the help.
It works. Now I can send the ascii code of the key that the result matches.
Thank you for the help.
- Mon Jul 26, 2021 8:31 pm
- Forum: Coding Questions
- Topic: Virtual Keyboard
- Replies: 8
- Views: 2938
Re: Virtual Keyboard
(PureBasic 5.73,Win 10, Portuguese keyboard)
With the code below I get Ã.
But the Chr(191)="¿" and Chr(126)="~".
Is it possible to match the character that the key displays and the Sendinput function?
Thank you
OpenWindow(0, 0, 0, 300,200, "Virtual Keyboard")
ButtonGadget(10, 15, 55, 50, 30 ...
With the code below I get Ã.
But the Chr(191)="¿" and Chr(126)="~".
Is it possible to match the character that the key displays and the Sendinput function?
Thank you
OpenWindow(0, 0, 0, 300,200, "Virtual Keyboard")
ButtonGadget(10, 15, 55, 50, 30 ...
- Tue Jul 06, 2021 6:37 pm
- Forum: Coding Questions
- Topic: VectorDrawing slowness
- Replies: 3
- Views: 1243
Re: VectorDrawing slowness
The changes introduced by mk-soft have not changed the situation, the execution after the computer starts is still very long.
(Windows 7 and 10, PB 5.73)
Thank you all.
(Windows 7 and 10, PB 5.73)
Thank you all.
- Sat Jul 03, 2021 1:33 pm
- Forum: Coding Questions
- Topic: VectorDrawing slowness
- Replies: 3
- Views: 1243
VectorDrawing slowness
Why is the first run so slow?
Is there any way to solve this?
My thanks to anyone who can help.
(If you have already run some software that uses the same library, the delay is not that great.)
Procedure TestVectorOutput()
Static i=0
i+1
LoadFont(0,"",8,#PB_Font_Bold)
CreateImage(0,100,100 ...
Is there any way to solve this?
My thanks to anyone who can help.
(If you have already run some software that uses the same library, the delay is not that great.)
Procedure TestVectorOutput()
Static i=0
i+1
LoadFont(0,"",8,#PB_Font_Bold)
CreateImage(0,100,100 ...
- Mon May 10, 2021 1:56 pm
- Forum: Coding Questions
- Topic: Virtual Keyboard
- Replies: 8
- Views: 2938
Re: Virtual Keyboard
You're right Sicro.
The solution was in your module.
This was the big problem "The trick now is to create a virtual keyboard window that doesn't steal focus from other windows"
My big thanks to you.
The solution was in your module.
This was the big problem "The trick now is to create a virtual keyboard window that doesn't steal focus from other windows"
My big thanks to you.
- Sun May 09, 2021 8:58 pm
- Forum: Coding Questions
- Topic: Virtual Keyboard
- Replies: 8
- Views: 2938
Re: Virtual Keyboard
Thank you very much Sicro.
But I think that I can't solve the problem with that software.
The clicked key must go to the application that has the focus at the moment of the click.
Thanks.
But I think that I can't solve the problem with that software.
The clicked key must go to the application that has the focus at the moment of the click.
Thanks.
- Sun May 09, 2021 6:23 pm
- Forum: Coding Questions
- Topic: Virtual Keyboard
- Replies: 8
- Views: 2938
Virtual Keyboard
It is possible to have a virtual keyboard in PB such as
'Free Virtual Keyboard on
https://freevirtualkeyboard.com, among others?
My main question is how to send the pressed key to the active field of any application.
My thanks in advance to anyone who devotes some time to this matter.
'Free Virtual Keyboard on
https://freevirtualkeyboard.com, among others?
My main question is how to send the pressed key to the active field of any application.
My thanks in advance to anyone who devotes some time to this matter.
- Sun May 09, 2021 12:27 pm
- Forum: Coding Questions
- Topic: Stringgadget generate two events. Why?
- Replies: 6
- Views: 1232
Re: Stringgadget generate two events. Why?
If it is necessary to display a message to the user, it enters an infinite cycle
" got the focus", " lost the focus".
IIs this correct?
Or where is the error?
If OpenWindow(0, 100,100, 250,200, "")
StringGadget(1, 100,20, 50,25, "abc")
StringGadget(2, 100,50, 50,25, "xyz")
Repeat
Select ...
" got the focus", " lost the focus".
IIs this correct?
Or where is the error?
If OpenWindow(0, 100,100, 250,200, "")
StringGadget(1, 100,20, 50,25, "abc")
StringGadget(2, 100,50, 50,25, "xyz")
Repeat
Select ...
- Wed Jun 24, 2020 12:04 pm
- Forum: Coding Questions
- Topic: ListIconGadget in PanelGadget
- Replies: 2
- Views: 984
Re: ListIconGadget in PanelGadget
Ok Fig.
Thank you very much.
I now understand the reason for the two events.
Thanks again.
Thank you very much.
I now understand the reason for the two events.
Thanks again.
- Tue Jun 23, 2020 7:33 pm
- Forum: Coding Questions
- Topic: ListIconGadget in PanelGadget
- Replies: 2
- Views: 984
ListIconGadget in PanelGadget
This small piece of code presents a problem for which it asked for help from the community.
By clicking on a Listicon row / column the event is detected twice if the row / column is selectable. In ListIconGadget 10 if you click on column zero the event is detected twice, if you click on column 1 ...
By clicking on a Listicon row / column the event is detected twice if the row / column is selectable. In ListIconGadget 10 if you click on column zero the event is detected twice, if you click on column 1 ...
- Fri May 08, 2020 5:15 pm
- Forum: Coding Questions
- Topic: DrawVectorText
- Replies: 3
- Views: 1660
Re: DrawVectorText
Hello my friends.
Your ideas are a big help.
Thank you so much for everything.
Your ideas are a big help.
Thank you so much for everything.