Thank you, netmaestro. It works.netmaestro wrote:#VK_OEM_MINUS is working here for the other one, on Windows at least.
Search found 9 matches
- Fri Nov 01, 2013 7:36 pm
- Forum: Coding Questions
- Topic: missing constant for key "-"
- Replies: 3
- Views: 906
Re: missing constant for key "-"
- Fri Nov 01, 2013 4:44 pm
- Forum: Coding Questions
- Topic: missing constant for key "-"
- Replies: 3
- Views: 906
missing constant for key "-"
I am trying to intercept the - key (minus) with the AddKeyboardShortcut() function.
But I can't find the #PB constant for this key. Is there none or was it just forgotten in the documentation?
#PB_Shortcut_Subtract works only for the numeric Keypad.
Any hints ?
Thanks,
Harry
But I can't find the #PB constant for this key. Is there none or was it just forgotten in the documentation?
#PB_Shortcut_Subtract works only for the numeric Keypad.
Any hints ?
Thanks,
Harry
- Sun Aug 11, 2013 9:18 pm
- Forum: Coding Questions
- Topic: Stringgadget: Caption is a variable?
- Replies: 6
- Views: 2269
Re: Stringgadget: Caption is a variable?
Thanks again for your help. I am sorry, that i couldn't make clear what i want.
But English is not my native language.
in the form Definition i have something like this:
Global Window_0
Global Text_0
Procedure OpenWindow_0(x = 0, y = 0, width = 600, height = 400)
Window_0 = OpenWindow(#PB_Any ...
But English is not my native language.
in the form Definition i have something like this:
Global Window_0
Global Text_0
Procedure OpenWindow_0(x = 0, y = 0, width = 600, height = 400)
Window_0 = OpenWindow(#PB_Any ...
- Sat Aug 10, 2013 7:58 pm
- Forum: Coding Questions
- Topic: Stringgadget: Caption is a variable?
- Replies: 6
- Views: 2269
Re: Stringgadget: Caption is a variable?
This string variable "Hello" must then be programmatically assigned some text value to be displayed in the StringGadget() , like this: Hello.s = "Some text for the caption"
Thanks for your answer. I know this, but if i assign a value to the variable, it will not update the stringgadget. What ...
- Fri Aug 09, 2013 8:38 pm
- Forum: Coding Questions
- Topic: Stringgadget: Caption is a variable?
- Replies: 6
- Views: 2269
Stringgadget: Caption is a variable?
Please help a beginner.
How can I update the display after assigning a new value to the caption variable defined in Formdesigner?
Is there some kind of "refresh" procedure?
Harry
How can I update the display after assigning a new value to the caption variable defined in Formdesigner?
Is there some kind of "refresh" procedure?
Harry
- Fri Aug 09, 2013 5:35 pm
- Forum: Bugs - IDE
- Topic: 5.20 B9 - Formdesigner: Background colors disappear
- Replies: 0
- Views: 1694
5.20 B9 - Formdesigner: Background colors disappear
I have defined about 40 stringgadgets in my form, some of them with backgroundcolors.
After saving and reloading the project, some of the previously defined backgroundcolors are lost.
Also in Code view they are no longer there. I can redefine it, but after save and reload the same story.
I am using ...
After saving and reloading the project, some of the previously defined backgroundcolors are lost.
Also in Code view they are no longer there. I can redefine it, but after save and reload the same story.
I am using ...
- Wed Jul 10, 2013 9:19 pm
- Forum: Coding Questions
- Topic: Formatted write into a string
- Replies: 1
- Views: 342
Formatted write into a string
How can i write into a string with formats.
Like C-Language sprintf() or VB s=Format(...)
Is it possible with PB? And how ?
Thanks for an answer
Harry
Like C-Language sprintf() or VB s=Format(...)
Is it possible with PB? And how ?
Thanks for an answer
Harry
- Fri Jul 05, 2013 10:26 pm
- Forum: Coding Questions
- Topic: Global Array of a structure
- Replies: 2
- Views: 726
Re: Global Array of a structure
Welcome to PB
Structure MyStruct
field1.i
field2.s
EndStructure
Global Dim MyArray.MyStruct(10)
MyArray(0)\field1 = 0
MyArray(0)\field2 = "Hello"
MyArray(10)\field1 = 10
MyArray(10)\field2 = "Hello again"
Is this what you mean ?
http://www.purebasic.com/documentation/reference ...
Structure MyStruct
field1.i
field2.s
EndStructure
Global Dim MyArray.MyStruct(10)
MyArray(0)\field1 = 0
MyArray(0)\field2 = "Hello"
MyArray(10)\field1 = 10
MyArray(10)\field2 = "Hello again"
Is this what you mean ?
http://www.purebasic.com/documentation/reference ...
- Fri Jul 05, 2013 10:14 pm
- Forum: Coding Questions
- Topic: Global Array of a structure
- Replies: 2
- Views: 726
Global Array of a structure
I am very new to Pure Basic. I have knowledge about C, a Little C++ and VB.
I am trying to convert a VB6 Project into PureBasic.
How can I declare a global array of a structure ?
Until now, I couldn't find out.
Thank you for any advice.
I am trying to convert a VB6 Project into PureBasic.
How can I declare a global array of a structure ?
Until now, I couldn't find out.
Thank you for any advice.