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)
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?
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
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
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.
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
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?
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
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
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
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
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,
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!
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
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
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.
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 =
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
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
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
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
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,
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
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
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
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
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
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.
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
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
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
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
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
33 matches
Mail list logo