Re: [Gambas-user] Drag drop files

2011-11-30 Thread Phạm Quang Dương
Hi, For 1 of your questions, try (require gvfs library): Library libgvfscommon:0 Private Extern g_object_unref(gObject As Pointer) Private Extern g_file_new_for_uri(fUri As Pointer) As Pointer Private Extern g_file_get_path(gFile As Pointer) As String Public Function pathFromURI(uri As String)

[Gambas-user] How different about Expand event of Treeview in Gambas 3

2011-04-08 Thread Phạm Quang Dương
Hi, From the Wiki (for Gambas 2) for Expand event of Tree view: Raised when an item is expanded. The internal cursor is set to the expanded item. This wiki does not exist for Gambas 3 With Gambas3 I get the TreeView.Item same as TreeView.Current in Expand event. Is it change of Expand event?

[Gambas-user] Problem with Search Replace dialog of Gambas 3 IDE

2011-04-05 Thread Phạm Quang Dương
Hello everyone and Benoit, I got a problem with the Search Replace dialog of Gambas 3 IDE From the editor area, I press Ctrl+F to open SR dialog. The SR dialog appears and ready haves focus (with the I-beam cursor blinks in the search text box). I type some text (including backspace) but nothing

Re: [Gambas-user] Read array of string return from external libraries function

2011-04-01 Thread Phạm Quang Dương
of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Phạm Quang Dương

[Gambas-user] Read array of string return from external libraries function

2011-03-29 Thread Phạm Quang Dương
Hi, I have an EXTERN function which returns an array of strings (char**). How to get this array? I just can only get the first string: EXTERN theFunction(params AS ...) As Pointer . Dim p as Pointer, s as String p = theFunction(...) s = String@(Pointer@(p)) What to do next? Thank you.

[Gambas-user] Settings

2011-03-05 Thread Phạm Quang Dương
Hi, I tried use Settings to read index.theme of icon theme: cfgReader = NEW Settings(/path/to/index.theme) With the file ~/.icons/elementaryXubuntu/index.theme [Icon Theme] Directories=actions/16,actions/22,. . cfgReader[Icon Theme/Directories] return whole line. It's OK. But

[Gambas-user] Local path URI

2011-03-03 Thread Phạm Quang Dương
Hi, How to copy a file path to clipboard so I can Paste with nautilus? It seems that when I copy a file from Nautilus, clipboard stores its URI path with special formats. In additional, can Gambas3 convert a local path to URI path like /abc/xyz ltm.pqr to file:///abc/xyz%20ltm.pqr?

[Gambas-user] Re-arrange controls

2011-02-22 Thread Phạm Quang Dương
Hi, I have a from with arrangement=Vertical. I add some buttons in code like: button1 = new Button(Form1) button2 = new Button(Form1) . Of course when program starts, the buttons are displayed from top to bottom with order: button1 = button2 . I want to rearrange those buttons with new

Re: [Gambas-user] Issue 36 in gambas: Problem between Process and DrawingArea

2011-02-19 Thread Phạm Quang Dương
So fast ^_^ I see. Thank you! -- The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the

[Gambas-user] Form Key press event raised twice?

2011-01-09 Thread Phạm Quang Dương
Hi, New project with new FMain: PUBLIC SUB Form_KeyPress() PRINT Key.Code, Key.Text END In run-time, when I press a key, eg. 'a', I get: 97 a 97 a Gambas 2.22, Fedora 14 I want to know if it's a bug?. If it's a bug, it will be fixed, so I wait. But if it's a feature, I

Re: [Gambas-user] KeyPress event with grid view

2011-01-05 Thread Phạm Quang Dương
Thank for reply, Here is my form. I tried remove all code and run the fresh form but nothing happens. 2011/1/4 Benoît Minisini gam...@users.sourceforge.net Hi and Happy new year ! With a grid view on a form I can get KeyPress event. It's fine. But with a grid view contained in a vsplit

[Gambas-user] How to run some job in background separately with UI

2010-12-23 Thread Phạm Quang Dương
Hi everyone, I'm writing for myself a small program to manage my image files. I choose a folder, it will get all image files in this folder and display thumbnail with an Icon view (like Nautilus or other files manager). Current, I do: - Get image files list of the folder. (1) - For each image,

[Gambas-user] Some questions about IconView

2010-12-15 Thread Phạm Quang Dương
Hi all, I'm using Gambas 2.22. I have some question about IconView: 1. IconView.Item.X (Y, W, H) return IconView. How to get IconView item position? 2. Is there a way to know which items are current visible and when user scroll? 3. I can drag only 1 item, that's right? Thank you!

Re: [Gambas-user] Settings with VSplit control

2010-12-12 Thread Phạm Quang Dương
OK, thank you all. @Terry: your code is like mine. It can not restore VSplit layout. I think problem from Form_Open and Form_Resize. So I did: SUB Form_Open() Dim i as Integer Settings.Read(ME.Window) i = Val(Settings[Group/key]) vsplit1.Layout = i , (vsplit1.Height - i) END SUB

[Gambas-user] Settings with VSplit control

2010-12-11 Thread Phạm Quang Dương
Hi, How to save the layout of VSplit? I tried: SUB Form_Open() vsplit1.settings = Settings[Group/Key]; PRINT Settings[Group/Key] ' (1) PRINT vsplit1.settings ' (2) END Of course SUB Form_Close() Settings[Group/Key] = vsplit1.settings END In running, (1) and (2) are different, all numbers in

[Gambas-user] Convert path of drop file

2010-11-26 Thread Phạm Quang Dương
Hi, I try to get input file by drag and drop file from Nautilus onto my form. But the path that I got is HTML format, so I have trouble with the path including space or unicode characters. How to convert this path to normal path so I can work with OPEN statement.

[Gambas-user] Question about read/write file performance

2010-11-25 Thread Phạm Quang Dương
Hi, Maybe this is a basic question. I have 2 scripts like this: Code 1: Dim buff as *Byte* sizeOfFile = Stat(aBigFile).Size hFile = Open aBigFile for read For i = 1 to sizeOfFile Read hFile, buff Next Close hFile Code 2: Dim buff as *Byte* Dim bigBuff as *Float* sizeOfFile =

Re: [Gambas-user] How to exit loop and close the form

2010-11-22 Thread Phạm Quang Dương
Thank for your answers, but the result is the same. I let the progress run to the end but it does not automatically close. I tried some ways: I change Me.Close by: Me.Hide = same result, the dialog still appears ProgressBar2.Visible = False = ProgressBar2 disappears Quit = when I click Cancel

Re: [Gambas-user] How to exit loop and close the form

2010-11-22 Thread Phạm Quang Dương
I understood. Thank you. -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 L3. Spend less time writing and rewriting code and more time

Re: [Gambas-user] Gambas2 IDE preferences System Language

2010-11-21 Thread Phạm Quang Dương
Vietnamese. With Fedora 14, Gambas 2.21. -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 L3. Spend less time writing and rewriting code and

[Gambas-user] How to exit loop and close the form

2010-11-21 Thread Phạm Quang Dương
Hi, I want create a dialog form which showes the current progress and let user stop the operation and close this dialog by clicking a Cancel button On form1 I have 2 progress bars and 1 button: Private shouldStop as Boolean Private Sub Form_Open() shouldStop = False Me.Show() doIt() 'Main loop

[Gambas-user] Gambas2 IDE preferences System Language

2010-11-20 Thread Phạm Quang Dương
Hi, My system language is English. I change the system language (re-login) to test my program GUI (but keep all my user's folders name (Desktop, Music ...) in English), and I lost Gambas2 IDE preferences (like color, font ... of the IDE editor). But when I change system language back to English,

[Gambas-user] Display character on Message box

2010-11-13 Thread Phạm Quang Dương
Hi, How to display '' character? I tried: Message.Info() Message.Info() Message.Info(chr(38)) Message.Info(abc) Message.Info(abc amp;) And got empty message box. -- Centralized Desktop Delivery: Dell and VMware

[Gambas-user] Form transparent

2010-10-15 Thread Phạm Quang Dương
Hi everyone, I knew that we can make a transparent form with Mask Picture properties. But it remove the transparent part of the form, so all controls (part) placed on this area are hidden we can click through. I want a transparent form to see the back of the form display some controls detect

[Gambas-user] How to open a form in modal mode?

2010-09-22 Thread Phạm Quang Dương
I know that this question is basic. But when I try this from Form1 Form2.OpenDialog() or Form2.OpenModal() Some controls on Form2 doesn't work properly, e.g I can input abc text into value box; the text box doesn't raise the key pressed event, the side pane can be hidden by the arrow button

Re: [Gambas-user] How to open a form in modal mode?

2010-09-22 Thread Phạm Quang Dương
Huh, one more thing, is there a way to autoresize the button with its caption? -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift

Re: [Gambas-user] Help about use table view editing with Return key

2010-09-20 Thread Phạm Quang Dương
deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Phạm Quang Dương Mobile

[Gambas-user] Help about use table view editing with Return key

2010-09-19 Thread Phạm Quang Dương
Hi, I created a TableView with three columns. First, I wrote code so that when user double-click the cell at third column on a row, the cell start the editing. My program worked fine. Then I added code so that when the user click the cell at the first column on a row, this row would be removed.

Re: [Gambas-user] Problem of FileChooser with menu shortcut keyboard

2010-09-08 Thread Phạm Quang Dương
Gambas2 was installed from Fedora 13 repository; full version is gambas2-2.20.2-1.fc13 Here is screen shots: My open dialog with menu clickhttp://www.flickr.com/photos/44069...@n02/4971059900/ My open dialog with menu shortcut

[Gambas-user] Problem of FileChooser with menu shortcut keyboard

2010-09-07 Thread Phạm Quang Dương
Bonjour Benoît, 1. Last day I had a question about multi-choosing files and folders and your answer is FileChooser. So I created a dialog form with a FileChooser control and some other controls.I got a problem with the menu shortcut. I have the menu File Open (Ctrl + O) to open this dialog. When

[Gambas-user] Dialog multi-select

2010-09-03 Thread Phạm Quang Dương
Is there a way to select both files and folders in Dialog? I want to select multi items in a folder no distinguish that they're file or folder. -- This SF.net Dev2Dev email is sponsored by: Show off your parallel

Re: [Gambas-user] gambas for iphone or ipad apps

2010-08-19 Thread Phạm Quang Dương
As I know, there's no way to do that. The only way to develop app for Iphone ( and this app can run on device / sell on store ) is use xcode IDE running on Mac. -- This SF.net email is sponsored by Make an app they can't

[Gambas-user] EXEC or SHELL can not READ WRITE simultaneously well with process?

2010-08-15 Thread Phạm Quang Dương
I have searched around with Google but still can not find an other problem like mine. My code below base on the Console example project of Gambas. I want run a process like this: PUBLIC $mainProcess AS Process PUBLIC SUB Form_Open() $mainProcess = SHELL 7z x /demo/file.7z -o/tmp FOR READ