Search found 95 matches

by donSHAYA
Wed Apr 21, 2010 11:38 pm
Forum: Coding Questions
Topic: [SOLVED] How to get the right click event from a listview?
Replies: 10
Views: 1610

Re: How to get the right click event from a listview?

Does this work on all gadgets? I don't know:

Procedure RightClick(#Window, #Gadget, Event)
If Event = #WM_RBUTTONDOWN
If WindowMouseX(#Window) > GadgetX(#Gadget) And WindowMouseX(#Window) < GadgetX(#Gadget) + GadgetWidth(#Gadget)
If WindowMouseY(#Window) > GadgetY(#Gadget) And WindowMouseY(#Window ...
by donSHAYA
Tue Apr 20, 2010 12:29 am
Forum: Coding Questions
Topic: User only able on one window
Replies: 5
Views: 1398

Re: User only able on one window

Oh ok. But so how can you make your Window a System-modal? Can't find nothing on MSDN or forum (that works)?
by donSHAYA
Sun Apr 18, 2010 3:55 am
Forum: Coding Questions
Topic: User only able on one window
Replies: 5
Views: 1398

Re: User only able on one window

Oh ok I see. But I wanted the System Modal. I searched for the System Modal in MSDN. I found SetSysModalwindow, but this is not a function (API), but there is a way to use it, but I dont know how.
by donSHAYA
Fri Apr 16, 2010 2:29 pm
Forum: Coding Questions
Topic: User only able on one window
Replies: 5
Views: 1398

User only able on one window

Hi all. How is it possible to let a specified window always (until the programmer decide when) be open? Just like a OpenFileRequester. When you hit outside the OpenFileRequester window the action doesn't take place. How can I do that on my window? Is it only on windows or is this also possible on ...
by donSHAYA
Wed Apr 07, 2010 2:51 am
Forum: Coding Questions
Topic: Amount of arrays
Replies: 2
Views: 690

Amount of arrays

Hi all.

How can you find out how many arrays you can create? Like let's say in my PC I can create 100, but in my brothers I can create 150. Just examples.

And what decides the maximum amount of arrays? Is it the RAM or harddisk or something else?

Thank you
by donSHAYA
Tue Mar 23, 2010 1:10 am
Forum: Coding Questions
Topic: Create word document
Replies: 4
Views: 1297

Re: Create word document

Ok. Thanks for all your supplies. Really helpful and fast ;)
by donSHAYA
Mon Mar 22, 2010 9:09 pm
Forum: Coding Questions
Topic: Create word document
Replies: 4
Views: 1297

Create word document

Hi all

How do you create a word document, and add text with like word-features (Bold, size, font, Paragraphs etc...) ?

Is it also possible for Mac?

Thanks
by donSHAYA
Wed Jan 27, 2010 3:46 am
Forum: Coding Questions
Topic: Rename preferencegroup
Replies: 2
Views: 666

Re: Rename preferencegroup

Oh ok. But when I delete/remove "3" it will lose it's data?
by donSHAYA
Tue Jan 26, 2010 4:21 am
Forum: Coding Questions
Topic: Rename preferencegroup
Replies: 2
Views: 666

Rename preferencegroup

Hi all
How do you rename a preferencegroup?

Example:
; Created preference groups:
PreferenceGroup("1")
PreferenceGroup("2")
PreferenceGroup("3")
RemovePreferenceGroup("2")
; RenamePreferenceGroup From "3" To "2" where PreferenceGroup("3")'s doesn't lose it's data and keys when renaming it.

Thank ...
by donSHAYA
Sun Jan 17, 2010 10:38 pm
Forum: Coding Questions
Topic: Eject USB drive
Replies: 28
Views: 10467

Re: Eject USB drive

I have tried all those codes, none of them works for ejecting one specified device.
by donSHAYA
Wed Jan 13, 2010 2:03 am
Forum: Coding Questions
Topic: Eject USB drive
Replies: 28
Views: 10467

Eject USB drive

How do you eject a removeable USB drive?

I tried to search and only found this: http://purebasic.fr/english/viewtopic.php?f=12&t=20763&hilit=remove+drive

The codes in that link removes all removeable drives. But I only need to remove one specified drive (like D:\). Thank you.

Another question:
So ...
by donSHAYA
Sun Jan 10, 2010 8:41 pm
Forum: Coding Questions
Topic: Save variable to the program
Replies: 6
Views: 1204

Re: Save variable to the program

Oh ok. Thank you
by donSHAYA
Sun Jan 10, 2010 5:25 am
Forum: Coding Questions
Topic: Save variable to the program
Replies: 6
Views: 1204

Re: Save variable to the program

I tried the PokeI() but when I close the program and open it again, it doesnt remember the value of the variable var when I closed the program last time.

I wanna do it without any files.

Thank you for the replies though.
by donSHAYA
Sun Jan 10, 2010 12:24 am
Forum: Coding Questions
Topic: Save variable to the program
Replies: 6
Views: 1204

Save variable to the program

Hi all

If I have a variable that I want to save in the program, how do I do that? I tried:

Code: Select all

Global Start.i, Var.i

Restore Save
Read.i Start

Start + 1

Var = Start

DataSection
Save:
Data.i Var
EndDataSection
Thank you
by donSHAYA
Thu Jan 07, 2010 6:12 pm
Forum: Coding Questions
Topic: Limit mouse pos on screen
Replies: 4
Views: 892

Re: Limit mouse pos on screen

Thanks for all replies.

I used Kaeru Gaman's example because it worked while OpenScreen. The mousetrap didn't work while OpenScreen.

But thank you for every reply. very helpful