From el.carly at ...626... Mon May 1 03:26:42 2006 From: el.carly at ...626... (Carlos Cuello) Date: Sun, 30 Apr 2006 22:26:42 -0300 Subject: [Gambas-user] Trouble using TextArea Message-ID: Hi! I would like to know if the Wrap option for the TextArea in the 1.9.25version is Ok, because I put that option with value=true but when I write in the TextArea, the text continues beyond the width of the area. Maybe wrap just doesn?t work like i need, can anyone tell me how could i do to contain the text within the size of the textarea? Thanks in advance. Carlos -------------- next part -------------- An HTML attachment was scrubbed... URL: From leonardo at ...1237... Mon May 1 11:08:54 2006 From: leonardo at ...1237... (Leonardo Miliani) Date: Mon, 01 May 2006 11:08:54 +0200 Subject: [Gambas-user] Some Little Patch In-Reply-To: <200604291827.32380.arcalis.prod@...11...> References: <200604291827.32380.arcalis.prod@...11...> Message-ID: <4455D026.7090403@...1237...> fabien Bodard ha scritto: > Hi to all this is just a little temporary patch that add a side 'goto' bar. > > Just replace the project.module file and add the Fsubs.Form and . class files, > and recompile the ide ... > > Regards, > Fabien Bodard > > > ------------------------------------------------------------------------ > > ' Gambas module file > > PUBLIC ProjectTree AS TreeView > PUBLIC ProjectMessage AS Label > PUBLIC Workspace AS Workspace > > PUBLIC ActiveForm AS Object > > PUBLIC Path AS String > PUBLIC Name AS String > PUBLIC Dir AS String > PUBLIC ReadOnly AS Boolean > > PUBLIC Title AS String > PUBLIC Startup AS String > PUBLIC Libraries AS String[] > PUBLIC Arguments AS String > PUBLIC KeepDebugInfo AS Boolean > PUBLIC ControlPublic AS Boolean > PUBLIC MajorVersion AS Integer > PUBLIC MinorVersion AS Integer > PUBLIC ReleaseVersion AS Integer > PUBLIC SnapToGrid AS Boolean > PUBLIC ShowGrid AS Boolean > PUBLIC Snap AS Integer > PUBLIC Localize AS Boolean > PUBLIC ComponentFromType AS Collection > PUBLIC Description AS String > PUBLIC Icon AS String > PUBLIC Systems AS String[] > PUBLIC Menus AS Collection > PUBLIC Groups AS Collection > PUBLIC Prefix AS Boolean > PUBLIC TabSize AS Integer > PUBLIC Version AS String > PUBLIC ExecPath AS String > > PUBLIC TileGrid AS Picture > > PUBLIC Running AS Boolean > > PUBLIC Recent AS NEW String[] > PRIVATE CONST MAX_RECENT AS Integer = 24 > > PUBLIC CONST FORM_MAGIC AS String = "# Gambas Form File 1.0" > PUBLIC CONST PROJECT_MAGIC AS String = "# Gambas Project File 1.0" > > PUBLIC CONST DEFAULT_FONT AS String = "Monospace,10" > > PUBLIC Files AS NEW Collection > > PUBLIC AboutToQuit AS Boolean > > PUBLIC Positions AS NEW String[] > > PUBLIC CONST MAX_ICON_SIZE AS Integer = 8192 > > PUBLIC EXAMPLES_DIR AS String > > PUBLIC RPMBUILD_PROG AS String > > PRIVATE CONST IMAGE_DIR AS String = "img/16" > > PRIVATE CONST KEY_MODULE AS String = "$M" > PRIVATE CONST KEY_CLASS AS String = "$C" > PUBLIC CONST KEY_FORM AS String = "$F" > PUBLIC CONST KEY_MISC AS String = "$O" > > PRIVATE CONST CLASS_AUTH_CAR AS String = "abcdefghijklmnopqrstuvwxyz0123456789" > PRIVATE CONST FILE_AUTH_CAR AS String = "abcdefghijklmnopqrstuvwxyz0123456789-.+_" > > PRIVATE CONST PROJECT_FILE AS String = ".project" > > PRIVATE $bGetSource AS Boolean > PRIVATE $bDisplayForm AS Boolean > > PRIVATE TMP_FILE AS String '= "/tmp/.gambas.ver" > PRIVATE OUTPUT_FILE AS String '= "/tmp/.gambas.out" > > PRIVATE $sBrowser AS String > > PUBLIC SUB Main() > > DIM sPath AS String > DIM hGambas AS FGambas > DIM iTest AS Integer > > TMP_FILE = Temp$() > OUTPUT_FILE = Temp$() > 'CLASSES_FILE = Temp$() > > EXAMPLES_DIR = System.Path &/ "share/gambas" & System.Version & "/examples" > > 'Config = NEW Config '(User.Home &/ ".gambas") > > Application.Tooltip.Enabled = Settings["/ShowTooltip", TRUE] > 'Application.Font = Font["10"] > > InitVersion > LoadRecent > > FMain.Load > 'FGambas.Load(Workspace) > > FOutput.Load(Workspace) > 'FDebug.Load(Workspace) > FIconTool.Load(Workspace) > FFormStack.Load(Workspace) > FExplorer.Load(Workspace) > FToolBox.Load(Workspace) > FProperty.Load(Workspace) > 'FSubs.Load(Workspace) > IF Application.Args.Count >= 2 THEN > sPath = Application.Args[1] > ENDIF > > DO > > IF NOT sPath THEN sPath = FWelcome.Run() > 'sPath = User.Home &/ "gambas/test/gambas" > > IF sPath THEN > Project.Open(sPath) > ELSE > FMain.Close > RETURN > ENDIF > > IF Project.Name THEN BREAK > > sPath = "" > > LOOP > > INC Application.Busy > > 'FProperty.Show > 'FToolBox.Show > 'FFormStack.Load > > 'IF Settings["/ShowMascot", TRUE] THEN > ' FGambas.Show > 'ENDIF > > FMain.UpdateRecentMenu > FMain.Show > > DEC Application.Busy > > IF Settings["/ShowTipOnStartup", TRUE] THEN > FTips.Run > ENDIF > > END > > > PRIVATE SUB InitVersion() > > DIM sVer AS String > > Version = "?" > 'SHELL "gbx" & System.Version & " -V > " & TMP_FILE 'WAIT > 'sVer = File.Load(TMP_FILE) > 'KILL TMP_FILE > > SHELL "gbx" & System.Version & " -V" TO sVer > Version = Trim(Mid$(sVer, InStr(sVer, "-") + 1)) > > END > > > PUBLIC FUNCTION Open(sDir AS String) AS Boolean > > DIM sOldPath AS String > DIM sOldName AS String > > sOldPath = Project.Path > sOldName = Project.Name > > IF CloseProject() THEN RETURN TRUE > > IF Exist(sDir &/ ".lock") THEN > IF Message.Warning(("BE CAREFUL! This project seems to be already opened.\n\nOpening the same project twice can crash the IDE\nand lead to data loss."), ("Open after all"), ("Do not open")) = 2 THEN > RETURN TRUE > ENDIF > TRY KILL sDir &/ ".lock" > ENDIF > > ReadOnly = NOT Access(sDir, gb.write) > > Path = sDir &/ PROJECT_FILE > Name = File.Name(sDir) > Project.Dir = sDir > > ReadProject > > Refresh > AddRecent(sDir) > > FMain.OnProjectChange > FFind.OnProjectChange > 'FExplorer.ProjectChange > FDebug.Clear > > TRY File.Save(sDir &/ ".lock", "") > > IF ReadOnly THEN Message.Warning(("This project is read-only.")) > > SetMessage(("OK")) > RETURN > > CATCH > > IF Error.Text THEN > Message.Error(("Cannot open project file :\n") & sDir & "\n\n" & Error.Text & "\n" & Error.Where) > ENDIF > > Path = sOldPath > Project.Dir = File.Dir(Path) > Name = sOldName > > IF Path THEN ReadProject > > RETURN TRUE > > END > > > PUBLIC SUB CloseAll() > > DIM hForm AS Object > > FOR EACH hForm IN Files > hForm.Close > NEXT > > END > > > PRIVATE FUNCTION CloseProject() AS Boolean > > DIM hForm AS Object > DIM bModif AS Boolean > > 'IF Len(Path) = 0 THEN RETURN > > IF Running THEN > FDebug.Stop > 'WAIT 0.5 > ENDIF > > FOR EACH hForm IN Files > IF hForm.IsModified() THEN > bModif = TRUE > BREAK > ENDIF > NEXT > > IF bModif THEN > IF FSave.Run(AboutToQuit) THEN RETURN TRUE > ENDIF > > FFind.Close > > INC Application.Busy > > FOR EACH hForm IN Files > hForm.Delete > NEXT > > Files.Clear > ActiveForm = NULL > > DEC Application.Busy > > IF NOT AboutToQuit THEN FProperty.HideAll > > TRY KILL Project.Dir &/ ".lock" > > RETURN FALSE > > END > > > PUBLIC FUNCTION Close() AS Boolean > > DIM hForm AS Form > DIM iInd AS Integer > DIM sLig AS String > > AboutToQuit = TRUE > IF CloseProject() THEN > AboutToQuit = FALSE > RETURN TRUE > ENDIF > > 'FDebug.Close > > 'FOR EACH hForm IN Windows > ' TRY hForm.Close > 'NEXT > > 'FOR EACH hForm IN Windows > ' TRY hForm.Delete > 'NEXT > > ' FToolBox.Delete > ' FExplorer.Delete > ' FFind.Delete > ' FGambas.Delete > ' FIconTool.Delete > ' FDebug.Delete > ' FProperty.Delete > > CComponent.Exit > > END > > > PRIVATE PROCEDURE AddDir(cDir AS String[]) > > DIM sDir AS String > DIM sFile AS String > DIM sIcon AS String > DIM sPath AS String > DIM sKey AS String > DIM bShow AS Boolean > DIM sExt AS String > DIM sParent AS String > DIM hImage AS Image > DIM hPict AS Picture > DIM aFile AS NEW String[] > DIM bAllowForm AS Boolean > > bAllowForm = AllowForm() > sDir = cDir[0] > > FOR EACH sFile IN Dir(sDir, "*") > IF IsDir(sDir &/ sFile) THEN aFile.Add("D" & sFile) > NEXT > > FOR EACH sFile IN Dir(sDir, "*") > IF NOT IsDir(sDir &/ sFile) THEN aFile.Add("F" & sFile) > NEXT > > aFile.Sort > > FOR EACH sFile IN aFile > > sFile = Mid$(sFile, 2) > sPath = sDir &/ sFile > sKey = sPath > sParent = sDir > > WITH Stat(sPath) > > IF .Hidden THEN CONTINUE > > bShow = FALSE > > IF .Type = gb.Directory THEN > > cDir.Add(sPath) > sIcon = IMAGE_DIR &/ "close.png" > IF sDir = Project.Dir THEN > sParent = KEY_MISC > ENDIF > bShow = TRUE > > ELSE > > 'IF InStr(.Perm.User & .Perm.Group & .Perm.Other, "x") THEN CONTINUE > > sExt = Lower(File.Ext(sFile)) > > IF sDir = Project.Dir THEN > sParent = KEY_MISC > ENDIF > > SELECT CASE sExt > > CASE "form", "class", "module" > > IF sParent = KEY_MISC THEN > > sIcon = IMAGE_DIR &/ sExt & ".png" > bShow = TRUE > > IF sExt = "form" THEN > sParent = KEY_FORM > IF NOT bAllowForm THEN sIcon = "" > ELSE IF sExt = "class" THEN > sParent = KEY_CLASS > > IF $bDisplayForm THEN > > IF NOT bAllowForm THEN > IF Exist(sDir &/ File.BaseName(sFile) & ".form") THEN > sIcon = "" > ENDIF > ENDIF > > ELSE > > IF Exist(sDir &/ File.BaseName(sFile) & ".form") THEN > sIcon = "" > ENDIF > > ENDIF > > ELSE IF sExt = "module" THEN > sParent = KEY_MODULE > ENDIF > > sFile = File.BaseName(sFile) > > ELSE > > sIcon = IMAGE_DIR &/ "unknown.png" > > ENDIF > > CASE "jpg", "jpeg", "xpm", "bmp", "png", "gif" > IF .Size > MAX_ICON_SIZE THEN > sIcon = IMAGE_DIR &/ "image.png" > ELSE > sIcon = sPath > ENDIF > > CASE "svg" > sIcon = IMAGE_DIR &/ "image.png" > > CASE "pot" > > IF sParent = KEY_MISC THEN > sIcon = "" > ENDIF > > CASE "gambas" > > CONTINUE > > CASE ELSE > > sIcon = "" > > IF Right$(sFile, 1) <> "~" THEN > IF sFile <> Project.Name OR sParent <> KEY_MISC THEN > sIcon = IMAGE_DIR &/ "unknown.png" > ENDIF > ENDIF > > END SELECT > > ENDIF > > IF Len(sIcon) THEN > > IF Left$(sIcon) = "/" THEN > TRY hImage = Image.Load(sIcon) > IF hImage.Height > 48 THEN > hImage = hImage.Stretch(hImage.Width * 48 / hImage.Height, 48) > ENDIF > IF hImage.Width > 64 THEN > hImage = hImage.Stretch(64, hImage.Height * 64 / hImage.Width) > ENDIF > hPict = hImage.Picture > ELSE > hPict = Picture[sIcon] > ENDIF > > WITH ProjectTree.Add(sKey, sFile, hPict, sParent) > IF bShow THEN > ProjectTree[sKey].MoveParent > ProjectTree.Item.Expanded = TRUE > ENDIF > END WITH > ENDIF > > END WITH > > NEXT > > END > > > PRIVATE SUB SelectKey(sKey AS String) > > IF NOT ProjectTree.Exist(sKey) THEN > IF Right$(sKey, 6) = ".class" THEN > sKey = Left$(sKey, -6) & ".form" > ENDIF > ENDIF > > TRY ProjectTree[sKey].Selected = TRUE > TRY ProjectTree[sKey].EnsureVisible > > END > > > PUBLIC PROCEDURE Refresh(OPTIONAL bReset AS Boolean) > > DIM sFile AS String > DIM cDir AS NEW String[] > DIM sDir AS String > DIM sKey AS String > DIM sKeyReset AS String > > $bDisplayForm = Settings["/DisplayForm"] > > IF NOT bReset THEN > sKeyReset = ProjectTree.Key > ENDIF > > WITH ProjectTree > > .Clear() > > sKey = Project.Dir > .Add(sKey, Name, Picture["img/32/../16/gambas.png"]).Expanded = TRUE > cDir.Add(Project.Dir) > > .Add(KEY_CLASS, ("Classes"), Picture["img/16/close.png"], sKey) > IF AllowForm() THEN > .Add(KEY_FORM, ("Forms"), Picture["img/16/close.png"], sKey) > ENDIF > .Add(KEY_MODULE, ("Modules"), Picture["img/16/close.png"], sKey) > .Add(KEY_MISC, ("Data"), Picture["img/16/close.png"], sKey) > > '$bGetSource = TRUE > > REPEAT > > AddDir(cDir) > cDir.Remove(0) > $bGetSource = FALSE > > UNTIL cDir.Count = 0 > > '.Sort() > > END WITH > > IF sKeyReset THEN sKey = sKeyReset > TRY ProjectTree[sKey].EnsureVisible > > DefineStartup(Startup, TRUE) > > WITH ProjectTree > .MoveFirst > WHILE .Available > .Current.Expanded = .Current.Children > 0 > .MoveNext > WEND > END WITH > > 'STOP > FMain.Title = ("Project") & " - " & Name & If(ReadOnly, " [" & ("Read only") & "]", "") > > END > > > PUBLIC FUNCTION IsEditor(hFile AS Object) AS Boolean > > RETURN Object.Type(hFile) = "FEditor" > > END > > > PUBLIC FUNCTION IsForm(hFile AS Object) AS Boolean > > IF hFile THEN RETURN Object.Type(hFile) = "FForm" > > END > > > PUBLIC FUNCTION LoadFile(sPath AS String) AS Object > > DIM hForm AS Object > 'DIM hActive AS Object > > INC Application.Busy > > hForm = Files[sPath] > > IF NOT hForm THEN > > 'PRINT "Load: "; sPath > > 'hActive = ActiveForm > > SELECT CASE Lower(File.Ext(sPath)) > > CASE "module", "class" > hForm = NEW FEditor(sPath, Workspace) > > CASE "form" > IF AllowForm() THEN hForm = NEW FForm(sPath, Workspace) > > CASE "png", "gif", "jpg", "jpeg", "bmp", "xpm" > hForm = NEW FIconEditor(sPath, Workspace) > > CASE ELSE > hForm = NEW FTextEditor(sPath, Workspace) > > END SELECT > > Files[sPath] = hForm > > ENDIF > > DEC Application.Busy > RETURN hForm > > CATCH > > DEC Application.Busy > Message.Error(("Cannot open file.") & "\n\n" & Error.Text & "\n" & Error.Where) > > END > > > PUBLIC FUNCTION FindPath(sClass AS String) AS String > > DIM sPath AS String > DIM aDir AS String[] > DIM iInd AS Integer > > aDir = Dir(Project.Dir) > > iInd = aDir.Find(sClass & ".class", gb.Text) > IF iInd >= 0 THEN RETURN Project.Dir &/ aDir[iInd] > > iInd = aDir.Find(sClass & ".module", gb.Text) > IF iInd >= 0 THEN RETURN Project.Dir &/ aDir[iInd] > > 'PRINT "FindPath: "; sClass; " ?" > > END > > > PUBLIC SUB OpenFile(sPath AS String, OPTIONAL iLine AS Integer) > > DIM hForm AS Object > > IF InStr(sPath, "/") = 0 THEN sPath = FindPath(sPath) > > IF NOT Exist(sPath) THEN > Message.Warning("File not found!") > Project.Refresh > RETURN > ENDIF > > 'IF File.Ext(sPath) = "form" THEN > ' FProperty.Show > ' FToolBox.Show > 'ENDIF > > LoadFile(sPath) > > hForm = Files[sPath] > IF NOT hForm THEN RETURN > > hForm.Show > > IF Object.Type(hForm) = "FEditor" THEN > hForm.Editor.SetFocus > ENDIF > > IF iLine THEN hForm.GotoCenter(iLine, 0) > > END > > > PUBLIC FUNCTION ExistForm(sName AS String) AS Boolean > > RETURN Dir(Project.Dir, "*.form").Find(sName & ".form", gb.Text) >= 0 > > END > > > > PUBLIC SUB OpenForm(sName AS String) > > DIM sPath AS String > > sPath = Project.Dir &/ sName & ".form" > IF Exist(sPath) THEN OpenFile(sPath) > > END > > > > PRIVATE FUNCTION AddMessage(sVoid AS String) AS String > > DIM hFic AS File > DIM sLig AS String > > IF Stat(OUTPUT_FILE).Size = 0 THEN > > SetMessage(sVoid) > RETURN > > ELSE > > OPEN OUTPUT_FILE FOR READ AS #hFic > > WHILE NOT Eof(hFic) > > LINE INPUT #hFic, sLig > 'ProjectMessage.Add(sLig) > > WEND > > CLOSE #hFic > > ENDIF > > 'ProjectMessage.Index = ProjectMessage.Count - 1 > 'SetMessage(sLig) > RETURN sLig > > END > > > PRIVATE SUB CompileError(sMsg AS String) > > DIM iPos AS Integer > DIM sFile AS String > DIM iLine AS Integer > > iPos = InStr(sMsg, ":") > 'if iPos = 0 then return > > sFile = Left$(sMsg, iPos - 1) > sMsg = Mid$(sMsg, iPos + 1) > > iPos = InStr(sMsg, ":") > 'if iPos = 0 then return > > iLine = Val(Left$(sMsg, iPos - 1)) > 'if iLine = 0 then return > > sFile = File.Dir(Path) &/ File.Name(sFile) > > SetMessage(File.BaseName(sFile) & "." & CStr(iLine) & ": " & Trim(Mid$(sMsg, iPos + 1))) > > OpenFile(sFile, iLine) > > FGambas.Animate("Depressive") > > Message.Warning(Trim(Mid$(sMsg, iPos + 1)) & "\n" & Subst(("at line &1 in &2"), CStr(iLine), File.Name(sFile))) > > OpenFile(sFile, iLine) > > CATCH > > END > > > PUBLIC FUNCTION Quote(sPath AS String) AS String > > DIM sQuote AS String > DIM iInd AS Integer > DIM sCar AS String > > sPath = SConv$(sPath) > > FOR iInd = 1 TO Len(sPath) > > sCar = Mid$(sPath, iInd, 1) > > IF InStr("0123456789abcdefghijklmnopqrstuvwxyz.-/_~", LCase(sCar)) = 0 THEN > sCar = "\\" & sCar > ENDIF > > sQuote = sQuote & sCar > > NEXT > > RETURN sQuote > > END > > > PUBLIC FUNCTION Escape(sStr AS String) AS String > > DIM sRes AS String > DIM iInd AS Integer > DIM sCar AS String > DIM iPos AS Integer > > FOR iInd = 1 TO Len(sStr) > > sCar = Mid$(sStr, iInd, 1) > iPos = InStr("'\"\\\n\r\t", sCar) > > IF iPos THEN sCar = "\\" & Mid$("'\"\\nrt", iPos, 1) > > sRes = sRes & sCar > > NEXT > > RETURN sRes > > END > > > PUBLIC SUB Process_Read() > > DIM sLig AS String > > LINE INPUT #LAST, sLig > PRINT sLig > > END > > > PUBLIC SUB DeleteCompiledFiles() > > DIM sFile AS String > > EXEC ["rm", "-rf", Project.Dir &/ ".gambas"] WAIT > > IF Exist(Project.Dir &/ ".lang") THEN > FOR EACH sFile IN Dir(Project.Dir &/ ".lang", "*.pot") > TRY KILL Project.Dir &/ ".lang" &/ sFile > NEXT > ENDIF > > END > > > PUBLIC FUNCTION GetCompileCommand(bAll AS Boolean, bNoDebug AS Boolean, bIDE AS Boolean) AS String > > DIM sExec AS String > > sExec = System.Path &/ "bin/gbc" & System.Version & " " > IF bAll THEN sExec = sExec & "-a " > IF NOT bNoDebug THEN sExec = sExec & "-g " > IF Localize THEN sExec = sExec & "-t " > IF ControlPublic THEN sExec = sExec & "-p " > 'sExec = sExec & "-c " & Quote(CLASSES_FILE) & " " & Quote(Project.Dir) & " > " & OUTPUT_FILE & " 2>&1" > IF bIDE THEN > sExec = sExec & Quote(Project.Dir) > sExec = sExec & " > " & OUTPUT_FILE & " 2>&1" > ENDIF > > RETURN sExec > > END > > > > PUBLIC FUNCTION Compile(OPTIONAL bAll AS Boolean, OPTIONAL bNoDebug AS Boolean) AS Boolean > > DIM sExec AS String > DIM sRes AS String > DIM sDir AS String > > IF Project.ReadOnly THEN RETURN > IF Project.Running THEN RETURN 'TRUE > > IF LockIt() THEN RETURN TRUE > > sDir = Project.Dir > > Save > > SetMessage(("Compiling project") & " " & Project.Name & "...") > > IF bAll THEN > CleanUpProject > DeleteCompiledFiles > WriteProject > ENDIF > > sExec = GetCompileCommand(bAll, bNoDebug, TRUE) > SHELL sExec WAIT > > 'Stat(OUTPUT_FILE) > sRes = AddMessage(("Nothing to do.")) > > IF sRes THEN > IF sRes <> "OK" THEN > > UnlockIt() > CompileError(sRes) > RETURN TRUE > > ELSE > > IF Localize THEN > TRY MKDIR sDir &/ ".lang" > SHELL "msgcat " & Quote(sDir) &/ ".lang/*.pot > " & Quote(sDir &/ ".lang/.pot") & " 2>/dev/null" WAIT > ENDIF > > SetMessage(("OK")) > FGambas.Animate("Happy") > > ENDIF > ENDIF > > UnlockIt() > > END > > PRIVATE FUNCTION CheckRunning(OPTIONAL bCompileAll AS Boolean) AS Boolean > > IF Project.Running THEN RETURN > IF Compile(bCompileAll) THEN RETURN TRUE > IF CheckStartupClass() THEN RETURN TRUE > > END > > > PUBLIC SUB Run(OPTIONAL bCompileAll AS Boolean, OPTIONAL iDebug AS Integer) > > IF CheckRunning(bCompileAll) THEN RETURN > > IF iDebug = 1 THEN > FDebug.Step > ELSE IF iDebug = 2 THEN > FDebug.Forward > ELSE IF iDebug = 3 THEN > FDebug.ReturnFrom > ELSE > FDebug.Run > ENDIF > > END > > > PUBLIC SUB Forward() > > IF CheckRunning() THEN RETURN > FDebug.Forward > > END > > > PUBLIC SUB ReturnFrom() > > IF CheckRunning() THEN RETURN > FDebug.ReturnFrom > > END > > PUBLIC SUB RunUntil(hForm AS FEditor, iLine AS Integer) > > IF CheckRunning() THEN RETURN > FDebug.RunUntil(hForm, iLine) > > END > > > PUBLIC SUB Step() > > IF Compile() THEN RETURN > IF CheckStartupClass() THEN RETURN > > FDebug.Step > > END > > > PUBLIC SUB Save() > > DIM hForm AS Object > > INC Application.Busy > > FOR EACH hForm IN Files > IF Object.Type(hForm) = "FEditor" THEN > IF hForm.Save(TRUE) THEN BREAK > ELSE > IF hForm.Save() THEN BREAK > ENDIF > > NEXT > > DEC Application.Busy > > END > > > PUBLIC SUB Insert(sName AS String, sType AS String, OPTIONAL sTemplate AS String, OPTIONAL bNoRefresh AS Boolean) > > DIM sPath AS String > DIM sData AS String > > sPath = Project.Dir &/ File.BaseName(sName) & "." & sType > IF Exist(sPath) THEN > Message.Warning(("File already exists.")) > RETURN > ENDIF > > File.Save(sPath, sTemplate) > > IF NOT bNoRefresh THEN Refresh > > OpenFile(sPath) > > END > > > PUBLIC SUB InsertFile(sName AS String, sDir AS String, OPTIONAL sTemplate AS String) > > DIM sPath AS String > DIM sData AS String > > sPath = sDir &/ sName > > IF Len(sTemplate) THEN > > IF Exist(sPath) THEN > Message.Warning(("File already exists.")) > RETURN > ENDIF > > SHELL "cp " & Quote(sTemplate) & " " & Quote(sPath) WAIT > IF NOT Exist(sPath) THEN > Message.Error(("Cannot copy template file.")) > RETURN > ENDIF > > ENDIF > > Refresh > RefreshLibrary > > OpenFile(sPath) > > END > > > PUBLIC SUB InsertDirectory(sPath AS String) > > IF Exist(sPath) THEN > Message.Warning(("Directory already exists.")) > RETURN > ENDIF > > MKDIR sPath > > Refresh > > END > > > PUBLIC SUB Activate(hForm AS Object) > > DIM sType AS String > > 'DEBUG "Activate: "; Workspace.ActiveWindow.Title > > 'IF Application.ActiveWindow <> hForm THEN RETURN > > 'IF File.Ext(hForm.Path) = "class" THEN > ' IF Exist(File.Dir(hForm.Path) &/ File.BaseName(hForm.Path) & ".form" THEN > > IF AboutToQuit THEN RETURN > IF hForm THEN > SelectKey(hForm.Path) > IF ActiveForm = hForm THEN RETURN > ActiveForm = hForm > ELSE > IF NOT ActiveForm THEN RETURN > ENDIF > > FProperty.RefreshAll > FFormStack.RefreshAll > > IF Object.Type(ActiveForm) = "FIconEditor" THEN > FIconTool.Raise > ELSE > FIconTool.Hide > ENDIF > > IF Object.Type(ActiveForm) = "FForm" THEN > FProperty.Raise > FToolBox.Raise > ActiveForm.Raise > ELSE > FProperty.Lower > FToolBox.Lower > ENDIF > > IF Object.Type(ActiveForm) = "FEditor" THEN > FSubs.RefreshAll > FSubs.Raise > ELSE > FSubs.Hide > ENDIF > > > > ' IF Object.Type(hForm) = "FTextEditor" THEN > ' FFind.SetTextOnly(TRUE) > ' ELSE IF Object.Type(hForm) = "FEditor" THEN > ' FFind.SetTextOnly(FALSE) > ' ENDIF > > END > > PUBLIC SUB Deactivate(hForm AS Object) > > IF ActiveForm <> hForm THEN RETURN > > 'DEBUG "DeActivate: "; hForm.Title > > SELECT CASE Object.Type(hForm) > > CASE "FIconEditor" > FIconTool.Hide > CASE "FEditor" > FSubs.Hide > CASE "FForm" > FProperty.HideAll > FFormStack.HideAll > FProperty.Hide > FToolBox.Hide > > END SELECT > > END > > > > PUBLIC FUNCTION NewProject(sDir AS String, OPTIONAL aOption AS String[]) AS Boolean > > DIM sName AS String > DIM iInd AS Integer > DIM sPath AS String > DIM sOption AS String > > sName = File.Name(sDir) > > MKDIR sDir > sPath = sDir &/ PROJECT_FILE > IF aOption THEN sOption = aOption.Join("\n") > File.Save(sPath, PROJECT_MAGIC & "\nProject=" & sName & "\n" & sOption) > > 'BrowseForm.AddProject(sDir) > > RETURN > > CATCH > > Message.Warning(("Cannot create project!") & "\n\n" & Error.Text) > RETURN TRUE > > END > > > PUBLIC FUNCTION CopyProject(sSrc AS String, sDst AS String) AS Boolean > > DIM sName AS String > DIM iInd AS Integer > DIM sPath AS String > DIM sOut AS String > > sOut = Temp$ > SHELL "cp -r " & Quote(sSrc) & " " & Quote(sDst) & " 2> " & Quote(sOut) WAIT > > sOut = File.Load(sOut) > IF sOut THEN Error.Raise(sOut) > > RETURN > > CATCH > > Message.Warning(("Cannot copy project!") & "\n\n" & Error.Text) > RETURN TRUE > > END > > > PUBLIC FUNCTION MakeExecutable(OPTIONAL bDoNotIncVersion AS Boolean, OPTIONAL bSilent AS Boolean) AS Boolean > > DIM sExec AS String > > IF NOT bSilent THEN > Dialog.Title = ("Make executable") > Dialog.Path = ExecPath > Dialog.Filter = [("Gambas executable files") & " (*.gambas)", ("All files") & " (*)"] > IF NOT Exist(Dialog.Path) THEN > Dialog.Path = Project.Dir &/ Project.Name > ENDIF > IF Dialog.SaveFile() THEN RETURN TRUE > ExecPath = Dialog.Path > ENDIF > > IF Compile(TRUE, NOT KeepDebugInfo) THEN RETURN TRUE > > IF CheckStartupClass() THEN RETURN TRUE > > SetMessage(("Making executable...")) > > sExec = System.Path &/ "bin/gba" & System.Version & " " & Quote(Project.Dir) & " > " & OUTPUT_FILE & " 2>&1" > > 'PRINT sExec > > SHELL sExec WAIT > IF ExecPath <> (Project.Dir &/ Project.Name & ".gambas") THEN > TRY KILL ExecPath > TRY move Project.Dir &/ Project.Name TO ExecPath > ENDIF > > 'Stat(OUTPUT_FILE) > AddMessage(("Nothing to do.")) > > Compile(TRUE, FALSE) > > IF Not bDoNotIncVersion THEN INC ReleaseVersion > WriteProject > > END > > > PUBLIC FUNCTION GetClasses(OPTIONAL bFullPath AS Boolean) AS String[] > > DIM sFile AS String > DIM aClass AS NEW String[] > DIM bStop AS Boolean > > FOR EACH sFile IN Dir(Project.Dir, "*.module") > IF bFullPath THEN > aClass.Add(Project.Dir &/ sFile) > ELSE > aClass.Add(File.BaseName(sFile)) > ENDIF > NEXT > > FOR EACH sFile IN Dir(Project.Dir, "*.class") > IF bFullPath THEN > aClass.Add(Project.Dir &/ sFile) > ELSE > aClass.Add(File.BaseName(sFile)) > ENDIF > NEXT > > aClass.Sort > > RETURN aClass > > END > > > PUBLIC SUB ReadProject() > > DIM hFic AS File > DIM sLig AS String > DIM iPos AS Integer > DIM sKey AS String > DIM sVal AS String > DIM cVer AS String[] > DIM sElt AS String > DIM iElt AS Integer > DIM aMissing AS NEW String[] > DIM sMsg AS String > > Libraries = NEW String[] > Title = "" > TabSize = Settings["/DefaultTabSize", 2] > Arguments = "" > MajorVersion = 0 > MinorVersion = 0 > ReleaseVersion = 1 > SnapToGrid = TRUE > ShowGrid = TRUE > Snap = Settings["/DefaultGridResolution", 8] > ControlPublic = FALSE > KeepDebugInfo = FALSE > Localize = FALSE > Description = "" > Icon = "" > Systems = NEW String[] > Menus = NEW Collection > Groups = NEW Collection > Prefix = FALSE > ExecPath = Project.Dir &/ Project.Name & ".gambas" > > hFic = OPEN Path FOR READ > > WHILE NOT Eof(hFic) > > LINE INPUT #hFic, sLig > sLig = Trim(sLig) > > IF Len(sLig) = 0 THEN CONTINUE > IF Left$(sLig, 1) = "#" THEN CONTINUE > > iPos = InStr(sLig, "=") > IF iPos = 0 THEN CONTINUE > > sKey = Lower$(Trim(Left$(sLig, iPos - 1))) > sVal = Trim(Mid$(sLig, iPos + 1)) > > SELECT sKey > > CASE "title" > Title = sVal > > CASE "startup" > DefineStartup(sVal, TRUE) > > CASE "library" > IF CComponent.All.Exist(sVal) THEN > Libraries.Add(sVal) > ELSE > aMissing.Add(sVal) > ENDIF > > CASE "tabsize" > TabSize = Val(sVal) > > CASE "argument" > IF Arguments THEN Arguments = Arguments & "\n" > Arguments = Arguments & sVal > > CASE "version" > cVer = Split(sVal, ".") > TRY MajorVersion = Val(cVer[0]) > TRY MinorVersion = Val(cVer[1]) > TRY ReleaseVersion = Val(cVer[2]) > > CASE "snaptogrid" > SnapToGrid = Val(sVal) <> 0 > > CASE "showgrid" > ShowGrid = Val(sVal) <> 0 > > CASE "snapx", "snap" > Snap = Val(sVal) > > CASE "localize" > Localize = Val(sVal) <> 0 > > ' CASE "language" > ' Language = sVal > > CASE "keepdebuginfo" > KeepDebugInfo = Val(sVal) <> 0 > > CASE "controlpublic" > ControlPublic = Val(sVal) <> 0 > > CASE "description" > Description = Replace(sVal, "\\n", "\n") > > CASE "icon" > Icon = sVal > > CASE "systems" > Systems = Split(sVal, ",") > > CASE "menus" > iElt = 0 > FOR EACH sElt IN Split(sVal, ",") > IF iElt >= Systems.Count THEN BREAK > Menus[Systems[iElt]] = sElt > INC iElt > NEXT > > CASE "groups" > iElt = 0 > FOR EACH sElt IN Split(sVal, ",") > IF iElt >= Systems.Count THEN BREAK > Groups[Systems[iElt]] = sElt > INC iElt > NEXT > > CASE "prefix" > Prefix = Val(sVal) > > CASE "execpath" > ExecPath = sVal > > END SELECT > > WEND > > CLOSE hFic > > IF aMissing.Count THEN > sMsg = Subst(("Some components are missing: &1"), aMissing.Join(", ")) > IF Message.Error(sMsg, ("Continue"), ("Cancel")) = 2 THEN > Error.Raise("") > ENDIF > ENDIF > > 'Libraries.Sort > > FMain.UpdateTranslate > RefreshLibrary > > 'TileGrid = NEW Picture > 'TileGrid.Type = Picture.Bitmap > 'TileGrid.Resize(SnapX, SnapY) > 'Draw.Begin(TileGrid) > 'Draw.FillColor = Color. > 'Draw.End > > END > > > PUBLIC SUB WriteProject() > > DIM hFic AS File > DIM sLib AS String > DIM sSys AS String > DIM sElt AS String > DIM sPath AS String > DIM sArg AS String > DIM iKey AS Integer > DIM iCount AS Integer > DIM hComp AS CComponent > > IF Project.ReadOnly THEN RETURN > > hFic = OPEN Path & ".tmp" FOR CREATE > > PRINT #hFic, PROJECT_MAGIC > PRINT #hFic, "Project="; Name > > IF Title THEN PRINT #hFic, "Title="; Title > IF Description THEN PRINT #hFic, "Description="; Replace(Description, "\n", "\\n") > IF Icon THEN PRINT #hFic, "Icon="; Icon > IF Startup THEN PRINT #hFic, "Startup="; Startup > 'IF StackSize THEN PRINT #hFic, "Stack="; CStr(StackSize) > PRINT #hFic, "TabSize="; CStr(TabSize) > > FOR EACH sArg IN Split(Arguments, "\n") > PRINT #hFic, "Argument="; sArg > NEXT > > PRINT #hFic, "Version="; CStr(MajorVersion) & "." & CStr(MinorVersion) & "." & CStr(ReleaseVersion) > > ' FOR iKey = 1 TO 1000 > ' FOR EACH sLib IN Libraries > ' IF CComponent.All[sLib].SortKey = iKey THEN > ' PRINT #hFic, "Library="; sLib > ' INC iCount > ' ENDIF > ' NEXT > ' IF iCount = Libraries.Count THEN BREAK > ' NEXT > > FOR EACH hComp IN CComponent.All > IF Libraries.Find(hComp.Key) >= 0 THEN > PRINT #hFic, "Library="; hComp.Key > ENDIF > NEXT > > PRINT #hFic, "SnapToGrid="; If(SnapToGrid, "1", "0") > PRINT #hFic, "ShowGrid="; If(ShowGrid, "1", "0") > PRINT #hFic, "Snap="; CStr(Snap) > PRINT #hFic, "Localize="; If(Localize, "1", "0") > 'PRINT #hFic, "Language="; Language > PRINT #hFic, "KeepDebugInfo="; If(KeepDebugInfo, "1", "0") > PRINT #hFic, "ControlPublic="; If(ControlPublic, "1", "0") > IF ExecPath <> (Project.Dir &/ Project.Name & ".gambas") THEN > PRINT #hFic, "ExecPath="; ExecPath > ENDIF > > IF Systems.Count THEN > > PRINT #hFic, "Systems="; Systems.Join(",") > > sElt = "" > FOR EACH sSys IN Systems > sElt = sElt & "," & Menus[sSys] > NEXT > PRINT #hFic, "Menus="; Mid$(sElt, 2) > > sElt = "" > FOR EACH sSys IN Systems > sElt = sElt & "," & Groups[sSys] > NEXT > PRINT #hFic, "Groups="; Mid$(sElt, 2) > > ENDIF > > PRINT #hFic, "Prefix="; If(Prefix, "1", "0") > > CLOSE #hFic > > KILL Path > move Path & ".tmp" TO Path > > sPath = Project.Dir &/ ".lang/#project.pot" > TRY KILL sPath > IF Localize THEN > > TRY MKDIR File.Dir(sPath) > OPEN sPath FOR CREATE AS #hFic > PRINT #hFic, "# "; Path > PRINT #hFic, File.Load("pot-header.txt") > IF Title THEN > PRINT #hFic, "#: .project:1" > PRINT #hFic, "msgid \""; Escape(Title); "\"" > PRINT #hFic, "msgstr \"\"\n" > ENDIF > IF Description THEN > PRINT #hFic, "#: .project:2" > PRINT #hFic, "msgid \""; Escape(Description); "\"" > PRINT #hFic, "msgstr \"\"\n" > ENDIF > CLOSE #hFic > > ENDIF > > RefreshLibrary > FMain.UpdateTranslate > > CATCH > > Message.Error(("Cannot write project file.") & "\n\n" & Error.Text) > > END > > > ' PUBLIC FUNCTION GetSorted() AS String[] > ' > ' DIM cList AS NEW String[] > ' DIM hFile AS Object > ' DIM bStop AS Boolean > ' > ' ProjectTree[KEY_CLASS].MoveChild > ' WHILE ProjectTree.Available > ' cList.Add(ProjectTree.Item.Key) > ' ProjectTree.MoveNext > ' WEND > ' > ' ProjectTree[KEY_MODULE].MoveChild > ' WHILE ProjectTree.Available > ' cList.Add(ProjectTree.Item.Key) > ' ProjectTree.MoveNext > ' WEND > ' > ' 'cList.Sort > ' > ' RETURN cList > ' > ' END > > > PUBLIC FUNCTION GetNextEditor(sKey AS String) AS String > > DIM sFirst AS String > DIM sFile AS String > DIM bNext AS Boolean > > FOR EACH sFile IN GetClasses(TRUE) > > IF bNext THEN RETURN sFile > > IF NOT sFirst THEN > sFirst = sFile > ENDIF > > IF sFile = sKey THEN > bNext = TRUE > ENDIF > > NEXT > > IF bNext THEN RETURN sFirst > > END > > > PUBLIC FUNCTION GetPreviousEditor(sKey AS String) AS String > > DIM sLast AS String > DIM sFile AS String > > FOR EACH sFile IN GetClasses(TRUE) > > IF sFile = sKey THEN > IF sLast THEN > RETURN sLast > ENDIF > ENDIF > > sLast = sFile > > NEXT > > RETURN sLast > > END > > > PRIVATE $bBlock AS Boolean > > PUBLIC SUB Shortcut(Code AS Integer, Ascii AS String, State AS Integer) > > IF $bBlock THEN RETURN > > $bBlock = TRUE > > SELECT CASE Code > > CASE Key.F2 > FExplorer.Show > > CASE Key.F4 > FProperty.Show > > CASE Key.F5 > ME.Run > > CASE Key.F6 > FToolBox.Show > > CASE Key.F7 > Compile(State And Mouse.Alt) > > CASE Key.F8 > ME.Step > > END SELECT > > $bBlock = FALSE > > END > > > PUBLIC SUB SetMessage(sMsg AS String) > > ProjectMessage.Text = sMsg > WAIT > > END > > > PUBLIC SUB DeleteFile(sPath AS String) > > DIM sExt AS String > DIM hForm AS Object > > IF NOT Exist(sPath) THEN RETURN > > hForm = Files[sPath] > > IF hForm THEN > hForm.Delete > Files[sPath] = NULL > ENDIF > > TRY ProjectTree.Remove(sPath) > > TRY KILL sPath & "~" > TRY move sPath TO sPath & "~" > IF sExt = "form" OR sExt = "class" OR sExt = "module" THEN > TRY KILL Project.Dir &/ ".gambas" &/ UCase(File.BaseName(sPath)) > TRY KILL Project.Dir &/ ".lang" &/ File.BaseName(sPath) & ".pot" > ENDIF > > sExt = File.Ext(sPath) > > IF sExt = "form" THEN > DeleteFile(File.Dir(sPath) &/ File.BaseName(sPath) & ".class") > ELSE IF sExt = "class" THEN > DeleteFile(File.Dir(sPath) &/ File.BaseName(sPath) & ".form") > ENDIF > > IF File.BaseName(sPath) = Startup THEN > DefineStartup("") > ENDIF > > 'CATCH > > 'Message("*Unable to delete file.||" & sPath) > 'Refresh > > END > > PUBLIC SUB DeleteDir(sDir AS String) > > DIM sFile AS String > > FOR EACH sFile IN Dir(sDir, "*~") > TRY KILL sDir &/ sFile > NEXT > > RMDIR sDir > > END > > > > PRIVATE FUNCTION CheckStartupClass() AS Boolean > > IF Startup THEN RETURN > > Message.Warning(("You must define a startup class or form!")) > > RETURN TRUE > > END > > > PUBLIC FUNCTION CheckFileName(sName AS String, OPTIONAL sDir AS String) AS Boolean > > DIM iInd AS Integer > > IF Not sName THEN GOTO VOID_NAME > > FOR iInd = 1 TO Len(sName) > > IF InStr(FILE_AUTH_CAR & "-._+()", LCase(Mid$(sName, iInd, 1))) = 0 THEN GOTO BAD_CHAR > > NEXT > > IF Len(sDir) THEN > IF Exist(sDir &/ sName) THEN GOTO ALREADY_EXIST > ENDIF > > RETURN > > VOID_NAME: > > Message.Warning(("Please type a name.")) > RETURN TRUE > > BAD_CHAR: > > Message.Warning(("This name contains a forbidden character :") & " [ " & Mid$(sName, iInd, 1) & " ]") > RETURN TRUE > > ALREADY_EXIST: > > Message.Warning(("This name is already used. Choose another one.")) > RETURN TRUE > > END > > > PUBLIC FUNCTION CheckClassName(sName AS String, OPTIONAL bCheckNotExist AS Boolean) AS Boolean > > DIM iInd AS Integer > > IF Not sName THEN GOTO VOID_NAME > > FOR iInd = 1 TO Len(sName) > IF InStr(CLASS_AUTH_CAR, LCase(Mid$(sName, iInd, 1))) = 0 THEN GOTO BAD_CHAR > NEXT > > IF InStr("0123456789", Left$(sName)) THEN > iInd = 1 > GOTO BAD_CHAR > ENDIF > > IF bCheckNotExist THEN > IF Project.Exist(sName) THEN GOTO ALREADY_EXIST > ENDIF > > RETURN > > VOID_NAME: > > Message.Warning(("Please type a name.")) > RETURN TRUE > > BAD_CHAR: > > Message.Warning(("This name contains a forbidden character :") & " [ " & Mid$(sName, iInd, 1) & " ] \n\n" & ("A name must begin with a letter, followed by any letter or digit.")) > RETURN TRUE > > ALREADY_EXIST: > > Message.Warning(("This name is already used. Choose another one.")) > RETURN TRUE > > END > > > PRIVATE FUNCTION RenameOneFile(sDir AS String, sName AS String, sNewName AS String, OPTIONAL sExt AS String) AS String > > DIM sPath AS String > DIM hForm AS Object > DIM sNewPath AS String > > sPath = sDir &/ sName > IF sExt THEN sPath = sPath & "." & sExt > IF NOT Exist(sPath) THEN RETURN > > sNewPath = sDir &/ sNewName > IF sExt THEN sNewPath = sNewPath & "." & sExt > > move sPath TO sNewPath > IF sExt THEN > TRY KILL sDir &/ ".gambas" &/ UCase(sName) > ENDIF > > hForm = Files[sPath] > IF hForm THEN > hForm.Rename(sNewName, sNewPath) > Files[sPath] = NULL > Files[sNewPath] = hForm > ENDIF > > RETURN sNewPath > > END > > > > PUBLIC SUB RenameFile(sPath AS String) > > DIM sName AS String > DIM sExt AS String > DIM sDir AS String > DIM sNewName AS String > DIM sNewPath AS String > DIM sTitle AS String > > sDir = File.Dir(sPath) > sExt = File.Ext(sPath) > > IF Project.IsClassName(sPath) THEN > > sName = File.BaseName(sPath) > > SELECT CASE sExt > CASE "form" > sTitle = ("Rename form") > CASE "class" > sTitle = ("Rename class") > CASE "module" > sTitle = ("Rename module") > END SELECT > > sNewName = FRename.Run(sName, sTitle, TRUE) > IF NOT sNewName THEN RETURN > > IF sName = Startup THEN > Startup = sNewName > WriteProject > ENDIF > > sNewPath = RenameOneFile(sDir, sName, sNewName, sExt) > > IF sExt = "form" THEN > RenameOneFile(sDir, sName, sNewName, "class") > ELSE IF sExt = "class" THEN > RenameOneFile(sDir, sName, sNewName, "form") > ENDIF > > ELSE > > sName = File.Name(sPath) > > sNewName = FRename.Run(sName, If(IsDir(sPath), ("Rename directory"), ("Rename file"))) > IF Not sNewName THEN RETURN > > sNewPath = RenameOneFile(sDir, sName, sNewName) > > ENDIF > > Refresh > TRY ProjectTree[sNewPath].Selected = TRUE > TRY ProjectTree[sNewPath].EnsureVisible > > CATCH > > Message.Error(Subst(("Unable to rename '&1'"), File.Name(sPath))) > > END > > > PUBLIC FUNCTION Exist(sName AS String) AS Boolean > > RETURN Project.GetClasses().Find(sName, gb.Text) >= 0 > > END > > > PRIVATE FUNCTION LockIt() AS Boolean > > IF Application.Busy THEN RETURN TRUE > INC Application.Busy > 'PRINT "Lock" > > END > > PRIVATE SUB UnLockIt() > > DEC Application.Busy > > END > > > PUBLIC FUNCTION GetProject() AS String > > RETURN FOpenProject.Run() > > END > > > PUBLIC FUNCTION GetNewProject() AS String > > RETURN FNewProject.Run() > > END > > > PRIVATE SUB LoadRecent() > > DIM nRecent AS Integer > DIM hMenu AS Menu > DIM iInd AS Integer > DIM sPath AS String > > nRecent = Settings["/Recent/Count", 0] > > Recent.Clear > > FOR iInd = 1 TO nRecent > sPath = Settings["/Recent/File[" & CStr(iInd) & "]"] > IF sPath THEN > IF Exist(sPath) THEN > Recent.Add(sPath) > IF Recent.Count >= MAX_RECENT THEN BREAK > ENDIF > ENDIF > NEXT > > END > > > PRIVATE SUB AddRecent(sPath AS String) > > DIM iInd AS Integer > > IF Right$(sPath) = "/" THEN sPath = Left$(sPath, -1) > > 'sPath = "(" & File.BaseName(sPath) & ") " & File.Dir(sPath) > > WHILE iInd < Recent.Count > > IF Recent[iInd] = sPath THEN > Recent.Remove(iInd) > ELSE > INC iind > ENDIF > > WEND > > Recent.Add(sPath, 0) > > WHILE Recent.Count > MAX_RECENT > Recent.Remove(Recent.Count - 1) > WEND > > SaveRecent > > END > > > PRIVATE SUB SaveRecent() > > DIM iInd AS Integer > > Settings["/Recent/Count"] = CStr(Recent.Count) > > FOR iInd = 0 TO Recent.Count - 1 > Settings["/Recent/File[" & CStr(iInd + 1) & "]"] = Recent[iInd] > NEXT > > Settings.Save > > END > > > PUBLIC FUNCTION CheckProjectName(sName AS String, OPTIONAL sDir AS String) AS Boolean > > DIM iInd AS Integer > DIM sCar AS String > > IF NOT sName THEN > Message.Warning(("Please type a project name.")) > RETURN TRUE > ENDIF > > FOR iInd = 1 TO Len(sName) > > sCar = Mid$(sName, iInd, 1) > > IF iInd = 1 THEN > IF InStr(" ?*.", sCar) = 0 And Asc(sCar) < 128 THEN CONTINUE > ELSE > IF InStr(" ?*", sCar) = 0 And Asc(sCar) < 128 THEN CONTINUE > ENDIF > > Message.Warning(("Forbidden characters in project name.")) > RETURN TRUE > > NEXT > > IF sDir THEN > IF Exist(sDir &/ sName &/ PROJECT_FILE) THEN > Message.Warning(("This project already exists.")) > RETURN TRUE > ENDIF > ENDIF > > END > > > PUBLIC SUB MakeSourcePackageTo(sPath AS String) > > DIM sCmd AS String > DIM sOpt AS String > > INC Application.Busy > > IF Right$(sPath, 3) = ".gz" THEN > sOpt = "z" > ELSE IF Right$(sPath, 4) = ".bz2" THEN > sOpt = "j" > ENDIF > > sCmd = "cd " & Quote(File.Dir(Project.Dir)) & ";" > sCmd = sCmd & " tar cfv" & sOpt & " " & Quote(sPath) > sCmd = sCmd & " --exclude=" & ".gambas/*" > sCmd = sCmd & " --exclude=" & "*~" > sCmd = sCmd & " --exclude=" & ".lock" > sCmd = sCmd & " --exclude=" & ".lang/*.pot" > sCmd = sCmd & " --exclude=" & ".lang/.pot" > sCmd = sCmd & " --exclude=" & "*/.xvpics/*" > sCmd = sCmd & " --exclude=" & ".xvpics/*" > sCmd = sCmd & " " & Quote(File.Name(Project.Dir)) & " > /dev/null" > > SHELL sCmd WAIT > > DEC Application.Busy > > END > > > PUBLIC SUB MakePackage() > > Dialog.Path = User.Home &/ Name & "-" & Subst("&1.&2", MajorVersion, MinorVersion) & IIf(ReleaseVersion > 0, "." & ReleaseVersion, "") & ".tar.gz" > Dialog.Title = ("Create source package") > Dialog.Filter = [("Source packages") & " (*.tar.gz)", ("All files") & " (*)"] > > IF Dialog.SaveFile() THEN RETURN > > MakeSourcePackageTo(Dialog.Path) > > END > > > > PUBLIC SUB RefreshForm() > > DIM hFile AS Object > > FOR EACH hFile IN Project.Files > > IF Not Project.IsEditor(hFile) THEN > hFile.Refresh > ENDIF > > NEXT > > END > > > PUBLIC SUB RefreshEditor() > > DIM hFile AS Object > > FOR EACH hFile IN Project.Files > > IF Project.IsEditor(hFile) THEN > hFile.Refresh > ENDIF > > NEXT > > END > > > PUBLIC SUB RefreshLibrary() > > DIM sLib AS String > DIM sClass AS String > > CComponent.Reset > > ComponentFromType = NEW Collection > > FOR EACH sLib IN Libraries > IF NOT CComponent.All.Exist(sLib) THEN CONTINUE > WITH CComponent.All[sLib] > .Load > IF .Type THEN ComponentFromType[.Type] = sLib > END WITH > NEXT > > FToolBox.RefreshToolbar > FCompletion.RefreshLibrary > FExplorer.RefreshTree > Project.Refresh > > END > > > PUBLIC FUNCTION IsClassName(sName AS String) AS Boolean > > DIM sExt AS String > > sExt = File.Ext(sName) > IF sExt = "class" THEN RETURN TRUE > IF sExt = "module" THEN RETURN TRUE > IF sExt = "form" THEN RETURN TRUE > > END > > > PUBLIC FUNCTION StripPath(sPath AS String) AS String > > DIM sDir AS String > > sDir = Project.Dir > IF Right$(sDir) <> "/" THEN sDir = sDir & "/" > > IF Left$(sPath, Len(sDir)) = sDir THEN > RETURN Mid$(sPath, Len(sDir) + 1) > ELSE > RETURN sPath > ENDIF > > END > > > PUBLIC SUB RunTool(sTool AS String) > > DIM aExec AS NEW String[] > > aExec.Add(System.Path &/ "bin" &/ sTool & ".gambas") > aExec.Add(Project.Dir) > > EXEC aExec > > END > > > PUBLIC FUNCTION GetExamples() AS String[] > > DIM sFile AS String > DIM sFile2 AS String > DIM aList AS NEW String[] > > FOR EACH sFile IN Dir(EXAMPLES_DIR) > IF Exist(EXAMPLES_DIR &/ sFile &/ ".project") THEN > aList.Add(sFile) > ELSE > FOR EACH sFile2 IN Dir(EXAMPLES_DIR &/ sFile) > aList.Add(sFile &/ sFile2) > NEXT > ENDIF > NEXT > > aList.Sort > > FINALLY > > RETURN aList > > END > > > PUBLIC SUB DefineStartup(sPath AS String, OPTIONAL bDoNotWrite AS Boolean) > > IF Startup THEN > TRY ProjectTree[Project.Dir &/ Startup & ".module"].Picture = Picture["img/16/module.png"] > TRY ProjectTree[Project.Dir &/ Startup & ".class"].Picture = Picture["img/16/class.png"] > TRY ProjectTree[Project.Dir &/ Startup & ".form"].Picture = Picture["img/16/form.png"] > ENDIF > > Startup = File.BaseName(sPath) > IF NOT Project.Exist(Startup) THEN > Startup = "" > ENDIF > > IF Startup THEN > TRY ProjectTree[Project.Dir &/ Startup & ".module"].Picture = Picture["img/16/module-start.png"] > TRY ProjectTree[Project.Dir &/ Startup & ".class"].Picture = Picture["img/16/class-start.png"] > TRY ProjectTree[Project.Dir &/ Startup & ".form"].Picture = Picture["img/16/form-start.png"] > ENDIF > > IF NOT bDoNotWrite THEN WriteProject > > END > > > PUBLIC SUB CopyFile(sSrc AS String, sDst AS String) > > DIM iInd AS Integer > DIM sDest AS String > DIM sExt AS String > > 'PRINT sSrc; " -> "; sDst > > sDest = sDst > > WHILE Exist(sDest) > INC iInd > sExt = File.Ext(sDst) > IF sExt THEN > sDest = File.Dir(sDst) &/ File.BaseName(sDst) & " (" & iInd & ")." & sExt > ELSE > sDest = File.Dir(sDst) &/ File.BaseName(sDst) & " (" & iInd & ")" > ENDIF > WEND > > COPY sSrc TO sDest > Refresh > SelectKey(sDest) > > CATCH > > Message.Error(Subst(("Cannot copy file &1."), sSrc) & "\n\n" & Error.Text) > > END > > PUBLIC SUB MoveFile(sSrc AS String, sDst AS String) > > move sSrc TO sDst > Refresh > SelectKey(sDst) > > CATCH > > Message.Error(Subst(("Cannot move file &1."), sSrc) & "\n\n" & Error.Text) > > END > > > ' PUBLIC SUB RefreshToolbox() > ' > ' FToolBox.ClearToolbar > ' > ' END > > > PUBLIC FUNCTION GetNewName(sPrefix AS String) AS String > > DIM iInd AS Integer > DIM sName AS String > > DO > INC iInd > sName = sPrefix & iInd > IF NOT Project.Exist(sName) THEN RETURN sName > LOOP > > END > > > PUBLIC SUB ResetScan() > > DIM hFile AS Object > > FOR EACH hFile IN Files > TRY hFile.Scan = NULL > NEXT > > END > > PUBLIC FUNCTION AllowForm() AS Boolean > > RETURN ComponentFromType.Exist("Form") > > END > > > PUBLIC SUB MakeInstall() > > IF MakeExecutable(TRUE, TRUE) THEN RETURN > IF NOT CheckProgram("rpmbuild") THEN > RPMBUILD_PROG = "rpmbuild" > ELSE IF NOT CheckProgram("rpm") THEN > RPMBUILD_PROG = "rpm" > ELSE > Message.Error(("rpmbuild is not installed on your system.")) > RETURN > ENDIF > FMakeInstall.ShowModal > > END > > PUBLIC SUB InitMove(hForm AS Form) > > hForm.Move(Int(Rnd(0, Max(0, Workspace.Width - hForm.Width - 8))), Int(Rnd(0, Max(0, Workspace.Height - hForm.Height - 8)))) > > END > > > PUBLIC FUNCTION GetIcon(sPath AS String, iSize AS Integer) AS Picture > > DIM hFile AS File > DIM sLig AS String > DIM hImage AS Image > DIM hPict AS Picture > > OPEN sPath &/ ".project" FOR READ AS #hFile > > WHILE NOT Eof(hFile) > LINE INPUT #hFile, sLig > IF Left$(sLig, 5) = "Icon=" THEN > sPath = sPath &/ Mid$(sLig, 6) > TRY hImage = Image.Load(sPath) > IF ERROR THEN hImage = NULL > BREAK > ENDIF > WEND > > CLOSE #hFile > > FINALLY > > IF NOT hImage THEN > hImage = Image.Load("img/32/gambas.png") > ENDIF > > RETURN hImage.Stretch(iSize, iSize, TRUE).Picture > > END > > > PRIVATE SUB CleanUpProject() > > DIM aDir AS NEW String[] > DIM sFile AS String > DIM sPath AS String > > aDir.Add(Project.Dir) > > WHILE aDir.Count > > FOR EACH sFile IN Dir(aDir[0]) > sPath = aDir[0] &/ sFile > IF IsDir(sPath) THEN > aDir.Add(sPath) > ELSE IF Right(sPath) = "~" THEN > TRY KILL sPath > ENDIF > NEXT > > aDir.Remove(0) > > WEND > > CATCH > > Message.Error(("Cannot clean the project.") & "\n\n" & Error.Text) > > END > > > PUBLIC SUB SetFormIcon(hForm AS FForm) > ' > ' DIM hPict AS Picture > ' DIM eRap AS Float > ' > ' 'hForm.Raise > ' hPict = hForm.Grab() > ' hForm.Refresh > ' eRap = hPict.Width / hPict.Height > ' IF eRap > 4 THEN > ' eRap = 4 > ' hPict = hPict.Copy(0, 0, hPict.Height * eRap, hPict.Height) > ' ELSE IF eRap < 0.5 THEN > ' eRap = 0.5 > ' hPict = hPict.Copy(0, 0, hPict.Width, hPict.Width / eRap) > ' ENDIF > ' IF eRap > 1 THEN > ' hPict = hPict.Image.Stretch(32 * eRap, 32).Picture > ' ELSE > ' hPict = hPict.Image.Stretch(32, 32 / eRap).Picture > ' ENDIF > ' > ' Draw.Begin(hPict) > ' Draw.Foreground = &H808080& > ' Draw.Rect(0, 0, hPict.Width, hPict.Height) > ' Draw.End > ' > ' ProjectTree[Project.Dir &/ hForm.Name & ".form"].Picture = hPict > ' > ' CATCH > ' > ' PRINT Error.Text > ' > END > > PUBLIC FUNCTION CheckProgram(sProg AS String) AS Boolean > > DIM sTemp AS String > DIM bError AS Boolean > > sTemp = Temp$ > SHELL "which " & sProg & " > " & sTemp WAIT > bError = Trim(File.Load(sTemp)) LIKE "which: *" > KILL sTemp > > RETURN bError > > END > > > PUBLIC FUNCTION OpenWebPage(sLink AS String) AS String > > DIM sExec AS String > > IF NOT $sBrowser THEN > > sExec = Application.Env["BROWSER"] > IF NOT sExec THEN > sExec = "konqueror" > IF CheckProgram(sExec) THEN sExec = "firefox" > IF CheckProgram(sExec) THEN sExec = "mozilla-firefox" > IF CheckProgram(sExec) THEN sExec = "mozilla" > IF CheckProgram(sExec) THEN sExec = "opera" > IF CheckProgram(sExec) THEN RETURN > ENDIF > > $sBrowser = sExec > > ENDIF > > SHELL $sBrowser & " " & Chr$(34) & sLink & Chr$(34) > > CATCH > > Message.Error(Error.Text) > > END > > > > ------------------------------------------------------------------------ > > # Gambas Form File 1.0 > > { FSubs Form > MoveScaled(7.375,0.125,33.125,45.25) > 'Move(59,1,265,362) > Text = ("Goto") > Persistent = True > TopOnly = True > Arrangement = Arrange.Vertical > { Label1 Label > MoveScaled(1,1,31,3) > 'Move(8,8,248,24) > Text = ("Goto") > Border = Border.Raised > } > { tvFct TreeView > MoveScaled(2,8,25,27) > 'Move(16,64,200,216) > Font = Font["-1"] > Expand = True > } > } > > > ------------------------------------------------------------------------ > I've read about this patch just right now. I'd like to know if I can apply it on SDI version of Gambas too or that is only for the MDI one. -- Ciao. Leo Visita il mio sito personale: www.leonardomiliani.com e-mail: leonardo at ...1237... From mike_keehan at ...679... Mon May 1 13:03:12 2006 From: mike_keehan at ...679... (Mike Keehan) Date: Mon, 01 May 2006 12:03:12 +0100 Subject: [Gambas-user] Trouble using TextArea In-Reply-To: References: Message-ID: <4455EAF0.1020908@...679...> Carlos Cuello wrote: > Hi! I would like to know if the Wrap option for the TextArea in the > 1.9.25 version is Ok, because I put that option with value=true but when > I write in the TextArea, the text continues beyond the width of the area. > Maybe wrap just doesn?t work like i need, can anyone tell me how could i > do to contain the text within the size of the textarea? > Thanks in advance. > > Carlos Hi Carlos. 1.9.25 is very old - I don't think many people will still be using it and be able to help. If you upgrade to 1.2.29, you will need to apply the patch that Benoit posted to the list, subject line "Stupid bug in 1.9.29", as it is needed to fix a similar problem there. Mike From leonardo at ...1237... Mon May 1 17:32:54 2006 From: leonardo at ...1237... (Leonardo Miliani) Date: Mon, 01 May 2006 17:32:54 +0200 Subject: [Gambas-user] KDE & Gambas executable Message-ID: <44562A26.7080407@...1237...> I would like to ask why I have problems running Gambas executables on my Suse 9.3 & KDE 3.5.2 When I write a program with Gambas 2 and I create the executable file (Project/Create executable), after that if I click on the generated file from a Konqueror window the program doesn't start (of course, I specified to open it with gb2x), But if I open a console and I try to type the name of the program, it starts with no problems.... Is there any option to specify from Konqueror to get the Gambas executable running? -- Ciao. Leo Visita il mio sito personale: www.leonardomiliani.com e-mail: leonardo at ...1237... From ronstk at ...239... Mon May 1 18:07:22 2006 From: ronstk at ...239... (ron) Date: Mon, 1 May 2006 18:07:22 +0200 Subject: [Gambas-user] KDE & Gambas executable In-Reply-To: <44562A26.7080407@...1237...> References: <44562A26.7080407@...1237...> Message-ID: <200605011807.23310.ronstk@...239...> On Monday 01 May 2006 17:32, Leonardo Miliani wrote: > I would like to ask why I have problems running Gambas executables on my > Suse 9.3 & KDE 3.5.2 > > When I write a program with Gambas 2 and I create the executable file > (Project/Create executable), after that if I click on the generated file > from a Konqueror window the program doesn't start (of course, I > specified to open it with gb2x), But if I open a console and I try to > type the name of the program, it starts with no problems.... > Is there any option to specify from Konqueror to get the Gambas > executable running? > I did add it to suse9.2 with KDE 3.5.2 Got to Personal Settings Select KDE Components->File Associations Press Add... Select Group:Applications Type name:x-gambas2 At General tab Click Add... Enter :*.gambas Enter in the Description box :Gambas2 executable At Application Preference Order click Add.. enter as application gbr2 (do nor browse the tree) press OK Back select under Application Preference Order your entered app. click Edit At General tab enter something usefull At Application tab Name:gbr2 (if not there) Command:gbr2 (if not there) By supported filetypes there should be Application/x-gambas2 Gambas Executable ================================== You can put gbr2.dexktop in /home/ron/.kde/share/applnk/.hidden You can put x-gambas2.desktop in /home/ron/.kde/share/mimelnk/application/x-gambas2.desktop run from commandline: kbuildsycoca Now it should be working ================================== replace '/home/ron/.kde/' eventualy to '/opt/kde3/' for system wide. but check the contenyt of the files for correct paths. Hope this will help you If success please give response so the method is tested and can be put in the wiki help. Ron -------------- next part -------------- A non-text attachment was scrubbed... Name: gbr2.desktop Type: application/x-desktop Size: 308 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: x-gambas2.desktop Type: application/x-desktop Size: 125 bytes Desc: not available URL: From ronstk at ...239... Mon May 1 18:23:02 2006 From: ronstk at ...239... (ron) Date: Mon, 1 May 2006 18:23:02 +0200 Subject: [Gambas-user] KDE & Gambas executable part2 In-Reply-To: <200605011807.23310.ronstk@...239...> References: <44562A26.7080407@...1237...> <200605011807.23310.ronstk@...239...> Message-ID: <200605011823.02651.ronstk@...239...> from old mail I send previous From: ron To: gambas-user at lists.sourceforge.net Date: 2006-04-17 15:10 Subject: Re: [Gambas-user] gambas will not run ------------------------------------- In the File associations, add new type. say 'application/x-gambas2' add Filename pattern '*.gambas' enter description 'Gambas exe' Add application and type 'gbr2' or '/usr/bin/gbr2' in the textbox. press OK Verify now with the Edit button at tab 'Application' Command is gbr2 and use the Advanced options, set 'Run in Terminal' on Try out on a *.gambas file The terminal ?stays open for duration of the gambas app works :) If all works OK then 'run in terminal' can switched off. Take a look in '/home/ron/.kde/share/mimelnk/application' Find the file 'x-gambas2.desktop' with content: [Desktop Entry] Comment=Gambas executable Hidden=false Icon= MimeType=application/x-gambas2 Patterns=*.gambas Type=MimeType goto '/home/ron/.kde/share/applnk/.hidden' Find file 'gbr2.desktop' with content: [Desktop Entry] Comment= Comment[en_US]= Exec=gbr2 GenericName= GenericName[en_US]= Icon= InitialPreference=2 MimeType=application/x-gambas2 Name=gbr2 Name[en_US]=gbr2 Path= StartupNotify=true Terminal=false TerminalOptions= Type=Application X-DCOP-ServiceType=none X-KDE-SubstituteUID=false X-KDE-Username= These both files are now new on my box and it works. SuSE 9.2, KDE 3.5.0 (a) SuSE version If you add these as files direct you must run kbuildsycoca !!! Have fun Ron From gandor at ...1422... Tue May 2 00:50:12 2006 From: gandor at ...1422... (Shannon Kuchler) Date: Mon, 1 May 2006 17:50:12 -0500 Subject: [Gambas-user] how do i package a project In-Reply-To: <200605011823.02651.ronstk@...239...> References: <44562A26.7080407@...1237...> <200605011807.23310.ronstk@...239...> <200605011823.02651.ronstk@...239...> Message-ID: <200605011750.12732.gandor@...1422...> im using gambas2 1.9.29 there doesnt seem to be an option in the ide to package a project. I have looked on the website, in all the help file, search the list archive, and asked Guillermo Ballester Valor where i got the gambas2 rpms for the suse 10.0 distro... all to no avail.. any suggestions? From ronstk at ...239... Tue May 2 01:15:36 2006 From: ronstk at ...239... (ron) Date: Tue, 2 May 2006 01:15:36 +0200 Subject: [Gambas-user] how do i package a project In-Reply-To: <200605011750.12732.gandor@...1422...> References: <44562A26.7080407@...1237...> <200605011823.02651.ronstk@...239...> <200605011750.12732.gandor@...1422...> Message-ID: <200605020115.37111.ronstk@...239...> On Tuesday 02 May 2006 00:50, Shannon Kuchler wrote: > im using gambas2 1.9.29 there doesnt seem to be an option in the ide to > package a project. I have looked on the website, in all the help file, search > the list archive, and asked Guillermo Ballester Valor where i got the gambas2 > rpms for the suse 10.0 distro... all to no avail.. > > any suggestions? > Download the source tarbal and compile your self. Ron BTW Do not use reply if you have a different question. Make simple a new message, every mail program can do that. It's nicer for everybody to have the messages ordered by subject. Now is my subject dirty with not related stuff. From sourceforge-raindog2 at ...94... Tue May 2 02:06:02 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Mon, 1 May 2006 20:06:02 -0400 Subject: [Gambas-user] how do i package a project In-Reply-To: <200605011750.12732.gandor@...1422...> References: <44562A26.7080407@...1237...> <200605011823.02651.ronstk@...239...> <200605011750.12732.gandor@...1422...> Message-ID: <200605012006.03072.sourceforge-raindog2@...94...> On Mon May 1 2006 18:50, Shannon Kuchler wrote: > im using gambas2 1.9.29 there doesnt seem to be an option in > the ide to package a project. I have looked on the website, in Sorry, the package builder doesn't work (yet) in gambas2. I imagine it'll be back after the new IDE is released (if not, I'll submit a patch.) Rob From ronstk at ...239... Tue May 2 02:27:17 2006 From: ronstk at ...239... (ron) Date: Tue, 2 May 2006 02:27:17 +0200 Subject: [Gambas-user] how do i package a project In-Reply-To: <200605012006.03072.sourceforge-raindog2@...94...> References: <44562A26.7080407@...1237...> <200605011750.12732.gandor@...1422...> <200605012006.03072.sourceforge-raindog2@...94...> Message-ID: <200605020227.17626.ronstk@...239...> On Tuesday 02 May 2006 02:06, Rob Kudla wrote: > On Mon May 1 2006 18:50, Shannon Kuchler wrote: > > im using gambas2 1.9.29 there doesnt seem to be an option in > > the ide to package a project. I have looked on the website, in > > Sorry, the package builder doesn't work (yet) in gambas2. I > imagine it'll be back after the new IDE is released (if not, > I'll submit a patch.) > > Rob > It looks as 2 things are mixed? First he can't create a package in the IDE. Second he wants gambas2-1.9.29.rpm (gbv)package. They are somewhere in conflict. Gambas does not make the gambas2-1.9.29.rpm files (yet) You have no IDE if you do not have the gambas2-1.9.29.rpm installed to be able to make a package of his project. Or he must have download the source tarbal and compile it himself. But then you do not need the gambas2-1.9.29.rpm It's misty outside my windows. :) Ron From gandor at ...1422... Tue May 2 02:47:41 2006 From: gandor at ...1422... (Shannon Kuchler) Date: Mon, 1 May 2006 19:47:41 -0500 Subject: [Gambas-user] how do i package a project In-Reply-To: <200605012006.03072.sourceforge-raindog2@...94...> References: <44562A26.7080407@...1237...> <200605011750.12732.gandor@...1422...> <200605012006.03072.sourceforge-raindog2@...94...> Message-ID: <200605011947.42232.gandor@...1422...> Thanks Rob I'm really looking forword to both the new IDE and package builder On Monday 01 May 2006 7:06 pm, Rob Kudla wrote: > On Mon May 1 2006 18:50, Shannon Kuchler wrote: > > im using gambas2 1.9.29 there doesnt seem to be an option in > > the ide to package a project. I have looked on the website, in > > Sorry, the package builder doesn't work (yet) in gambas2. I > imagine it'll be back after the new IDE is released (if not, > I'll submit a patch.) > > Rob > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From benoit.minisini at ...2... Tue May 2 10:12:21 2006 From: benoit.minisini at ...2... (Benoit Minisini) Date: Tue, 2 May 2006 10:12:21 +0200 Subject: [Gambas-user] Release of gambas 1.0.16 Message-ID: <200605021012.22012.benoit.minisini@...2...> Hi, This new release just fixes the three following bugs: * Subst(), that works correctly again. * Tooltips in view controls. * Czech language ISO code. Enjoy it! Regards, -- Benoit Minisini From spitzz992000 at ...43... Tue May 2 19:54:01 2006 From: spitzz992000 at ...43... (Peter Russell) Date: Tue, 2 May 2006 10:54:01 -0700 (PDT) Subject: [Gambas-user] file list in combobox Message-ID: <20060502175401.15223.qmail@...1428...> Hi all Using Version 1.0.15 I actually resolved this but thought it may be an issue worth commenting on. I had the following code in my program for getting a number of files from a directory with the extension ending in .z and then removing the extension. ***************** sFiles = Dir("players", "*.z") cboxPlayers.Clear FOR EACH sFile IN sFiles sName = Split(sFile, ".") cboxPlayers.Add(sName[0],i) INC i NEXT *********************** This ran fine until I created the exexcutable file where it crashed in this routine The following changes fixed the crash. ******************** sPath = Application.Path & "/players" sFiles = Dir(sPath, "*.z") cboxPlayers.Clear FOR EACH sFile IN sFiles sName = Split(sFile, ".") cboxPlayers.Add(sName[0],i) INC i NEXT *************************** Strange! Hope this may help someone unless someone can enlighten me to a better way. Oh by the way I'm new to the list and only been messing with gambas a short while. In one word! Fantastic. Thanks. Regards Pete --------------------------------- Get amazing travel prices for air and hotel in one click on Yahoo! FareChase -------------- next part -------------- An HTML attachment was scrubbed... URL: From joe1962 at ...626... Wed May 3 02:09:53 2006 From: joe1962 at ...626... (Jose J. Rodriguez) Date: Tue, 2 May 2006 20:09:53 -0400 Subject: [Gambas-user] "Incorrect property value" In-Reply-To: <200604282221.07940.benoit.minisini@...2...> References: <6c208f950604280054h5c7727e0n235f583c3fad66ce@...627...> <200604281030.27173.benoit.minisini@...2...> <200604281310.21832.ronstk@...239...> <200604282221.07940.benoit.minisini@...2...> Message-ID: <6c208f950605021709n6810cbc0l3c88f19e8c5ad596@...627...> On 4/28/06, Benoit Minisini wrote: > On Friday 28 April 2006 13:10, ron wrote: > > On Friday 28 April 2006 10:30, Benoit Minisini wrote: > > > On Friday 28 April 2006 10:24, Jose J. Rodriguez wrote: > > > > On 4/28/06, Benoit Minisini wrote: > > > > > On Friday 28 April 2006 09:54, Jose J. Rodriguez wrote: > > > > > > Anybody else getting these "Incorrect property value" popups while > > > > > > trying to change a lot of widget properties in the IDE (Gambas > > > > > > 1.9.29)? Happens even with simple stuff like the Enabled property > > > > > > of a button. They all work in code, but it makes for some pretty > > > > > > boring form load events... > > > > > > > > > > > > Regards, > > > > > > Joe1962 > > > > > > > > > > Actually a project converter will have to be written so that a 1.0 > > > > > project can be ported to 2.0 easily. > > > > > > > > Yes, but that's not the problem, it happens with new projects created > > > > by Gambas 1.9.29 itself. > > > > > > > > Regards, > > > > Joe1962 > > > > > > I think you have a problem in your gambas installation or compilation... > > > Can you send me the output of ./configure, make & make install ? > > > > Or the Val() function does wrong. > > I have checked then FProperty code > > > > PRIVATE FUNCTION SaveProperty() AS Boolean > > $sType ask for "b" > > > > CASE "i", "l" ', "b" > > vVal = Val(vVal) '<---- in vVal is "TRUE" as string > > IF IsNull(vVal) THEN GOTO _BAD > > > > As TRUE should be True it returns NULL > > > > > > Suggest > > CASE "b" > > vVal = CBool(vVal) > > > > CASE "i", "l" ', "b" > > vVal = Val(vVal) > > IF IsNull(vVal) THEN GOTO _BAD > > > > The error is gone but the enabled property of a button stay at true if true > > Changing from False to True works but True to False goes back to true. > > > > CASE "b" > > 'vVal = CBool(vVal) > > IF vVal = "False" THEN > > vVal = 0 > > ELSE > > vVal = 1 > > ENDIF > > > > And this let worked again. > > I do not know if there are some other places but it seams to me > > the Val function has something wrong. > > > > > > Ron > > > > Arf! You have to add a patch. You will find it on the mailing-list, under the > following subject: "Stupid bug in 1.9.29" > > Sorry for the inconvenience! > Thanks, Benoit! That worked. Guess I missed it because I had no intention of leaving 1.0.x until I started off on this new installer project for VL, lol. And switched for the GTK component, but it's not working well for me, has a while to go, I guess. Anyway, I'm sticking with 1.9.x for the embedder and a few other goodies. Regards, Joe1962 From joe1962 at ...626... Wed May 3 04:08:53 2006 From: joe1962 at ...626... (Jose J. Rodriguez) Date: Tue, 2 May 2006 22:08:53 -0400 Subject: [Gambas-user] KDE & Gambas executable In-Reply-To: <200605011807.23310.ronstk@...239...> References: <44562A26.7080407@...1237...> <200605011807.23310.ronstk@...239...> Message-ID: <6c208f950605021908o4f642f2dh46e6c6259c725046@...627...> On 5/1/06, ron wrote: > On Monday 01 May 2006 17:32, Leonardo Miliani wrote: > > I would like to ask why I have problems running Gambas executables on my > > Suse 9.3 & KDE 3.5.2 > > > > When I write a program with Gambas 2 and I create the executable file > > (Project/Create executable), after that if I click on the generated file > > from a Konqueror window the program doesn't start (of course, I > > specified to open it with gb2x), But if I open a console and I try to > > type the name of the program, it starts with no problems.... > > Is there any option to specify from Konqueror to get the Gambas > > executable running? > > > > I did add it to suse9.2 with KDE 3.5.2 > > Got to Personal Settings > Select KDE Components->File Associations > > Press Add... > Select Group:Applications > Type name:x-gambas2 > > At General tab Click Add... > Enter :*.gambas > > Enter in the Description box :Gambas2 executable > > At Application Preference Order > click Add.. > enter as application gbr2 > (do nor browse the tree) > press OK > > Back select under Application Preference Order > your entered app. > click Edit > > At General tab enter something usefull > > At Application tab > Name:gbr2 (if not there) > Command:gbr2 (if not there) > > By supported filetypes there should be > Application/x-gambas2 > Gambas Executable > > ================================== > > You can put gbr2.dexktop in > /home/ron/.kde/share/applnk/.hidden > > You can put x-gambas2.desktop in > /home/ron/.kde/share/mimelnk/application/x-gambas2.desktop > > run from commandline: kbuildsycoca > Now it should be working > > ================================== > replace '/home/ron/.kde/' eventualy to '/opt/kde3/' for system wide. > but check the contenyt of the files for correct paths. > > Hope this will help you > If success please give response so the method is tested > and can be put in the wiki help. > > Ron > > Works as user by copying the 2 files and running kbuildsycoca, but couldn't get it to work system-wide (tried that first). Regards, Joe1962 From maillists at ...1367... Wed May 3 08:32:42 2006 From: maillists at ...1367... (GuruLounge - MailLists) Date: Tue, 02 May 2006 23:32:42 -0700 Subject: [Gambas-user] file list in combobox In-Reply-To: <20060502175401.15223.qmail@...1428...> References: <20060502175401.15223.qmail@...1428...> Message-ID: <1146637962.13707.2.camel@...1368...> Maybe it has something to do with paths being relative to the executable. Specifically implying the path in the fix forces gambas to look in the actual directory. Just a thot. Jeff On Tue, 2006-05-02 at 10:54 -0700, Peter Russell wrote: > Hi all > Using Version 1.0.15 > > I actually resolved this but thought it may be an issue worth > commenting on. > > I had the following code in my program for getting a number of files > from a directory with the extension ending in .z and then removing the > extension. > ***************** > sFiles = Dir("players", "*.z") > > cboxPlayers.Clear > > FOR EACH sFile IN sFiles > sName = Split(sFile, ".") > cboxPlayers.Add(sName[0],i) > INC i > NEXT > *********************** > > This ran fine until I created the exexcutable file where it crashed in > this routine > > The following changes fixed the crash. > > ******************** > sPath = Application.Path & "/players" > > sFiles = Dir(sPath, "*.z") > > cboxPlayers.Clear > > FOR EACH sFile IN sFiles > sName = Split(sFile, ".") > cboxPlayers.Add(sName[0],i) > INC i > NEXT > *************************** > > Strange! Hope this may help someone unless someone can enlighten me to > a better way. > > Oh by the way I'm new to the list and only been messing with gambas a > short while. In one word! Fantastic. Thanks. > > Regards Pete > > > > ______________________________________________________________________ > Get amazing travel prices for air and hotel in one click on Yahoo! > FareChase -- .^. /V\ /( )\ ^^-^^ Linux Advocate From benoit.minisini at ...2... Wed May 3 09:31:27 2006 From: benoit.minisini at ...2... (Benoit Minisini) Date: Wed, 3 May 2006 09:31:27 +0200 Subject: [Gambas-user] file list in combobox In-Reply-To: <20060502175401.15223.qmail@...1428...> References: <20060502175401.15223.qmail@...1428...> Message-ID: <200605030931.27977.benoit.minisini@...2...> On Tuesday 02 May 2006 19:54, Peter Russell wrote: > Hi all > Using Version 1.0.15 > > I actually resolved this but thought it may be an issue worth commenting > on. > > I had the following code in my program for getting a number of files from > a directory with the extension ending in .z and then removing the > extension. ***************** > sFiles = Dir("players", "*.z") > > cboxPlayers.Clear > > FOR EACH sFile IN sFiles > sName = Split(sFile, ".") > cboxPlayers.Add(sName[0],i) > INC i > NEXT > *********************** > > This ran fine until I created the exexcutable file where it crashed in > this routine > What crash *exactly* ? -- Benoit Minisini From spitzz992000 at ...43... Wed May 3 09:40:21 2006 From: spitzz992000 at ...43... (Peter Russell) Date: Wed, 3 May 2006 00:40:21 -0700 (PDT) Subject: [Gambas-user] file list in combobox In-Reply-To: <200605030931.27977.benoit.minisini@...2...> Message-ID: <20060503074021.46029.qmail@...1429...> Benoit Minisini wrote: On Tuesday 02 May 2006 19:54, Peter Russell wrote: > Hi all > Using Version 1.0.15 > > I actually resolved this but thought it may be an issue worth commenting > on. > > I had the following code in my program for getting a number of files from > a directory with the extension ending in .z and then removing the > extension. ***************** > sFiles = Dir("players", "*.z") > > cboxPlayers.Clear > > FOR EACH sFile IN sFiles > sName = Split(sFile, ".") > cboxPlayers.Add(sName[0],i) > INC i > NEXT > *********************** > > This ran fine until I created the exexcutable file where it crashed in > this routine > What crash *exactly* ? -- Benoit Minisini Hi Benoit The program stopped responding and after about 30 secs I got an error msg which when I clicked ok it killed the stalled program. I will recreate the error if you wish and send you a pic of the error msg. Give me an hour or so though. Regards Pete ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user --------------------------------- Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates. -------------- next part -------------- An HTML attachment was scrubbed... URL: From eilert-sprachen at ...221... Wed May 3 09:52:52 2006 From: eilert-sprachen at ...221... (Eilert) Date: Wed, 03 May 2006 09:52:52 +0200 Subject: [Gambas-user] Very strange printing problem + SHELL Message-ID: <44586154.7070802@...221...> Hi everybody, After having been searching for this bug for months, I've found it at last. In one of my apps, when the user makes an entry into a customer's account for instance and has it saved, the program won't print anymore. The printing dialog appears, and everything runs through as expected, but there is no output to the printer. If I restart the program, it will print as usual. Now, this appears to be the reason: In the saving SUB I found I had included a SHELL command changing the file's mode to 660 after writing so every member of the group can write into this file. When I comment this SHELL command out, the app runs as expected. As soon as it is activated, however, the bug appears: Whenever the SHELL is called, printing will fail afterwards. Here is one of the critical parts in code: OPEN datei$ & "konto" FOR WRITE CREATE AS #dtnr FOR i = 0 TO ktNr.Count - 1 IF ktModus[i] = "N" THEN BREAK PRINT #dtnr, " account" & Chr$(13) PRINT #dtnr, " number=" & CStr(i + 1) & Chr$(13) PRINT #dtnr, " date=" & SpeicherDatum(ktDatum[i]) & Chr$(13) PRINT #dtnr, " text=" & Str2Tag(ktText[i]) & Chr$(13) PRINT #dtnr, " debit=" & ktSoll[i] & Chr$(13) PRINT #dtnr, " credit=" & ktHaben[i] & Chr$(13) PRINT #dtnr, " mode=" & SpeicherModus(ktModus[i]) & Chr$(13) PRINT #dtnr, " end account" & Chr$(13) PRINT #dtnr, " " & Chr$(13) NEXT CLOSE #dtnr SHELL "chmod 660 " & datei$ & "konto" WAIT Does anyone here have an idea why this SHELL line might keep the printer from printing? Is there another way of having the chmod 660? Or did I implement the SHELL command wrong? Thanks for all ideas! Rolf From benoit.minisini at ...2... Wed May 3 09:54:34 2006 From: benoit.minisini at ...2... (Benoit Minisini) Date: Wed, 3 May 2006 09:54:34 +0200 Subject: [Gambas-user] file list in combobox In-Reply-To: <20060503074021.46029.qmail@...1429...> References: <20060503074021.46029.qmail@...1429...> Message-ID: <200605030954.35014.benoit.minisini@...2...> On Wednesday 03 May 2006 09:40, Peter Russell wrote: > ?Hi Benoit > ? ? > ?The program stopped responding and after about 30 secs I got an error msg > which when I clicked ok it killed the stalled program. I will recreate the > error if you wish and send you a pic of the error msg. Give me an hour or > so though. > ?Regards Pete > ? Run your project in the gdb debugger, as explained in the 'Reporting a problem' web site page, in the 'Reporting a crash' section. When your program freezes, hit CTRL+C, and type 'bt' when you get the debugger prompt. Send me the result. Or send me your full project, and explain me how to reproduce the freeze. Regards, -- Benoit Minisini From benoit.minisini at ...2... Wed May 3 10:00:19 2006 From: benoit.minisini at ...2... (Benoit Minisini) Date: Wed, 3 May 2006 10:00:19 +0200 Subject: [Gambas-user] Very strange printing problem + SHELL In-Reply-To: <44586154.7070802@...221...> References: <44586154.7070802@...221...> Message-ID: <200605031000.19677.benoit.minisini@...2...> On Wednesday 03 May 2006 09:52, Eilert wrote: > Hi everybody, > > After having been searching for this bug for months, I've found it at last. > > In one of my apps, when the user makes an entry into a customer's > account for instance and has it saved, the program won't print anymore. > The printing dialog appears, and everything runs through as expected, > but there is no output to the printer. If I restart the program, it will > print as usual. > > Now, this appears to be the reason: > > In the saving SUB I found I had included a SHELL command changing the > file's mode to 660 after writing so every member of the group can write > into this file. > > When I comment this SHELL command out, the app runs as expected. As soon > as it is activated, however, the bug appears: Whenever the SHELL is > called, printing will fail afterwards. > > Here is one of the critical parts in code: > > OPEN datei$ & "konto" FOR WRITE CREATE AS #dtnr > FOR i = 0 TO ktNr.Count - 1 > IF ktModus[i] = "N" THEN BREAK > PRINT #dtnr, " account" & Chr$(13) > PRINT #dtnr, " number=" & CStr(i + 1) & Chr$(13) > PRINT #dtnr, " date=" & SpeicherDatum(ktDatum[i]) & Chr$(13) > PRINT #dtnr, " text=" & Str2Tag(ktText[i]) & Chr$(13) > PRINT #dtnr, " debit=" & ktSoll[i] & Chr$(13) > PRINT #dtnr, " credit=" & ktHaben[i] & Chr$(13) > PRINT #dtnr, " mode=" & SpeicherModus(ktModus[i]) & Chr$(13) > PRINT #dtnr, " end account" & Chr$(13) > PRINT #dtnr, " " & Chr$(13) > NEXT > CLOSE #dtnr > SHELL "chmod 660 " & datei$ & "konto" WAIT > > Does anyone here have an idea why this SHELL line might keep the printer > from printing? Is there another way of having the chmod 660? Or did I > implement the SHELL command wrong? > > Thanks for all ideas! > > Rolf > The same question again :-) Which version of Gambas do you use? -- Benoit Minisini From eilert-sprachen at ...221... Wed May 3 10:03:34 2006 From: eilert-sprachen at ...221... (Eilert) Date: Wed, 03 May 2006 10:03:34 +0200 Subject: [Gambas-user] Very strange printing problem + SHELL In-Reply-To: <200605031000.19677.benoit.minisini@...2...> References: <44586154.7070802@...221...> <200605031000.19677.benoit.minisini@...2...> Message-ID: <445863D6.9000902@...221...> Benoit Minisini schrieb: > On Wednesday 03 May 2006 09:52, Eilert wrote: >> Hi everybody, >> >> After having been searching for this bug for months, I've found it at last. >> >> In one of my apps, when the user makes an entry into a customer's >> account for instance and has it saved, the program won't print anymore. >> The printing dialog appears, and everything runs through as expected, >> but there is no output to the printer. If I restart the program, it will >> print as usual. >> >> Now, this appears to be the reason: >> >> In the saving SUB I found I had included a SHELL command changing the >> file's mode to 660 after writing so every member of the group can write >> into this file. >> >> When I comment this SHELL command out, the app runs as expected. As soon >> as it is activated, however, the bug appears: Whenever the SHELL is >> called, printing will fail afterwards. >> >> Here is one of the critical parts in code: >> >> OPEN datei$ & "konto" FOR WRITE CREATE AS #dtnr >> FOR i = 0 TO ktNr.Count - 1 >> IF ktModus[i] = "N" THEN BREAK >> PRINT #dtnr, " account" & Chr$(13) >> PRINT #dtnr, " number=" & CStr(i + 1) & Chr$(13) >> PRINT #dtnr, " date=" & SpeicherDatum(ktDatum[i]) & Chr$(13) >> PRINT #dtnr, " text=" & Str2Tag(ktText[i]) & Chr$(13) >> PRINT #dtnr, " debit=" & ktSoll[i] & Chr$(13) >> PRINT #dtnr, " credit=" & ktHaben[i] & Chr$(13) >> PRINT #dtnr, " mode=" & SpeicherModus(ktModus[i]) & Chr$(13) >> PRINT #dtnr, " end account" & Chr$(13) >> PRINT #dtnr, " " & Chr$(13) >> NEXT >> CLOSE #dtnr >> SHELL "chmod 660 " & datei$ & "konto" WAIT >> >> Does anyone here have an idea why this SHELL line might keep the printer >> from printing? Is there another way of having the chmod 660? Or did I >> implement the SHELL command wrong? >> >> Thanks for all ideas! >> >> Rolf >> > > The same question again :-) Which version of Gambas do you use? > Arrrrgh :-) 1.0.15 Thanks! Rolf From spitzz992000 at ...43... Wed May 3 10:29:54 2006 From: spitzz992000 at ...43... (Peter Russell) Date: Wed, 3 May 2006 01:29:54 -0700 (PDT) Subject: [Gambas-user] file list in combobox In-Reply-To: <200605030954.35014.benoit.minisini@...2...> Message-ID: <20060503082954.96692.qmail@...1430...> Hi Benoit This is acting really strange. I did as you said and ran my program under gdb, and guess what!! no errors. If I run from the IDE also no errors. But if I run outside the ide and outside gdb I get the window not responding when I click on the routine that I posted earlier. As I mentioned in my first post I have managed to resolve it but I am quite willing to continue the bug hunt if you wish. Let me know what you would like me to do. Regards Pete Benoit Minisini wrote: On Wednesday 03 May 2006 09:40, Peter Russell wrote: > Hi Benoit > > The program stopped responding and after about 30 secs I got an error msg > which when I clicked ok it killed the stalled program. I will recreate the > error if you wish and send you a pic of the error msg. Give me an hour or > so though. > Regards Pete > Run your project in the gdb debugger, as explained in the 'Reporting a problem' web site page, in the 'Reporting a crash' section. When your program freezes, hit CTRL+C, and type 'bt' when you get the debugger prompt. Send me the result. Or send me your full project, and explain me how to reproduce the freeze. Regards, -- Benoit Minisini ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642 _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user --------------------------------- New Yahoo! Messenger with Voice. Call regular phones from your PC and save big. -------------- next part -------------- An HTML attachment was scrubbed... URL: From benoit.minisini at ...2... Wed May 3 10:45:40 2006 From: benoit.minisini at ...2... (Benoit Minisini) Date: Wed, 3 May 2006 10:45:40 +0200 Subject: [Gambas-user] file list in combobox In-Reply-To: <20060503082954.96692.qmail@...1430...> References: <20060503082954.96692.qmail@...1430...> Message-ID: <200605031045.40397.benoit.minisini@...2...> On Wednesday 03 May 2006 10:29, Peter Russell wrote: > Hi Benoit > > This is acting really strange. I did as you said and ran my program under > gdb, and guess what!! no errors. If I run from the IDE also no errors. But > if I run outside the ide and outside gdb I get the window not responding > when I click on the routine that I posted earlier. As I mentioned in my > first post I have managed to resolve it but I am quite willing to continue > the bug hunt if you wish. Let me know what you would like me to do. > > Regards Pete > Can you send me your executable, and tell me how to reproduce the freeze? -- Benoit Minisini From benoit.minisini at ...2... Wed May 3 10:46:49 2006 From: benoit.minisini at ...2... (Benoit Minisini) Date: Wed, 3 May 2006 10:46:49 +0200 Subject: [Gambas-user] Very strange printing problem + SHELL In-Reply-To: <44586154.7070802@...221...> References: <44586154.7070802@...221...> Message-ID: <200605031046.50011.benoit.minisini@...2...> On Wednesday 03 May 2006 09:52, Eilert wrote: > Hi everybody, > > After having been searching for this bug for months, I've found it at last. > > In one of my apps, when the user makes an entry into a customer's > account for instance and has it saved, the program won't print anymore. > The printing dialog appears, and everything runs through as expected, > but there is no output to the printer. If I restart the program, it will > print as usual. > > Now, this appears to be the reason: > > In the saving SUB I found I had included a SHELL command changing the > file's mode to 660 after writing so every member of the group can write > into this file. > > When I comment this SHELL command out, the app runs as expected. As soon > as it is activated, however, the bug appears: Whenever the SHELL is > called, printing will fail afterwards. > > Here is one of the critical parts in code: > > OPEN datei$ & "konto" FOR WRITE CREATE AS #dtnr > FOR i = 0 TO ktNr.Count - 1 > IF ktModus[i] = "N" THEN BREAK > PRINT #dtnr, " account" & Chr$(13) > PRINT #dtnr, " number=" & CStr(i + 1) & Chr$(13) > PRINT #dtnr, " date=" & SpeicherDatum(ktDatum[i]) & Chr$(13) > PRINT #dtnr, " text=" & Str2Tag(ktText[i]) & Chr$(13) > PRINT #dtnr, " debit=" & ktSoll[i] & Chr$(13) > PRINT #dtnr, " credit=" & ktHaben[i] & Chr$(13) > PRINT #dtnr, " mode=" & SpeicherModus(ktModus[i]) & Chr$(13) > PRINT #dtnr, " end account" & Chr$(13) > PRINT #dtnr, " " & Chr$(13) > NEXT > CLOSE #dtnr > SHELL "chmod 660 " & datei$ & "konto" WAIT > > Does anyone here have an idea why this SHELL line might keep the printer > from printing? Is there another way of having the chmod 660? Or did I > implement the SHELL command wrong? > > Thanks for all ideas! > > Rolf > I think there is a clash between interpreter process management and qt process management, used for running 'lpr'. Try to print to a postscript file, and send this file to the printer with SHELL or EXEC. It should work. Regards, -- Benoit Minisini From spitzz992000 at ...43... Wed May 3 11:59:01 2006 From: spitzz992000 at ...43... (Peter Russell) Date: Wed, 3 May 2006 02:59:01 -0700 (PDT) Subject: [Gambas-user] file list in combobox In-Reply-To: <200605031045.40397.benoit.minisini@...2...> Message-ID: <20060503095901.35392.qmail@...1431...> ok I emailed the progam. Regards Pete Benoit Minisini wrote: On Wednesday 03 May 2006 10:29, Peter Russell wrote: > Hi Benoit > > This is acting really strange. I did as you said and ran my program under > gdb, and guess what!! no errors. If I run from the IDE also no errors. But > if I run outside the ide and outside gdb I get the window not responding > when I click on the routine that I posted earlier. As I mentioned in my > first post I have managed to resolve it but I am quite willing to continue > the bug hunt if you wish. Let me know what you would like me to do. > > Regards Pete > Can you send me your executable, and tell me how to reproduce the freeze? -- Benoit Minisini ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user --------------------------------- How low will we go? Check out Yahoo! Messenger?s low PC-to-Phone call rates. -------------- next part -------------- An HTML attachment was scrubbed... URL: From eilert-sprachen at ...221... Wed May 3 12:05:05 2006 From: eilert-sprachen at ...221... (Eilert) Date: Wed, 03 May 2006 12:05:05 +0200 Subject: [Gambas-user] Very strange printing problem + SHELL In-Reply-To: <200605031046.50011.benoit.minisini@...2...> References: <44586154.7070802@...221...> <200605031046.50011.benoit.minisini@...2...> Message-ID: <44588051.2050208@...221...> Benoit Minisini schrieb: > On Wednesday 03 May 2006 09:52, Eilert wrote: >> Hi everybody, >> >> After having been searching for this bug for months, I've found it at last. >> >> In one of my apps, when the user makes an entry into a customer's >> account for instance and has it saved, the program won't print anymore. >> The printing dialog appears, and everything runs through as expected, >> but there is no output to the printer. If I restart the program, it will >> print as usual. >> >> Now, this appears to be the reason: >> >> In the saving SUB I found I had included a SHELL command changing the >> file's mode to 660 after writing so every member of the group can write >> into this file. >> >> When I comment this SHELL command out, the app runs as expected. As soon >> as it is activated, however, the bug appears: Whenever the SHELL is >> called, printing will fail afterwards. >> >> Here is one of the critical parts in code: >> >> OPEN datei$ & "konto" FOR WRITE CREATE AS #dtnr >> FOR i = 0 TO ktNr.Count - 1 >> IF ktModus[i] = "N" THEN BREAK >> PRINT #dtnr, " account" & Chr$(13) >> PRINT #dtnr, " number=" & CStr(i + 1) & Chr$(13) >> PRINT #dtnr, " date=" & SpeicherDatum(ktDatum[i]) & Chr$(13) >> PRINT #dtnr, " text=" & Str2Tag(ktText[i]) & Chr$(13) >> PRINT #dtnr, " debit=" & ktSoll[i] & Chr$(13) >> PRINT #dtnr, " credit=" & ktHaben[i] & Chr$(13) >> PRINT #dtnr, " mode=" & SpeicherModus(ktModus[i]) & Chr$(13) >> PRINT #dtnr, " end account" & Chr$(13) >> PRINT #dtnr, " " & Chr$(13) >> NEXT >> CLOSE #dtnr >> SHELL "chmod 660 " & datei$ & "konto" WAIT >> >> Does anyone here have an idea why this SHELL line might keep the printer >> from printing? Is there another way of having the chmod 660? Or did I >> implement the SHELL command wrong? >> >> Thanks for all ideas! >> >> Rolf >> > > I think there is a clash between interpreter process management and qt process > management, used for running 'lpr'. > > Try to print to a postscript file, and send this file to the printer with > SHELL or EXEC. It should work. > > Regards, > Yes. In my app, there is a printer dialog. If I choose "print to file", it prints a standard ps file. Hm. Is deviating the printing through a ps file + SHELL to lpr really the only way of getting rid of this problem? Rolf From benoit.minisini at ...2... Wed May 3 13:37:34 2006 From: benoit.minisini at ...2... (Benoit Minisini) Date: Wed, 3 May 2006 13:37:34 +0200 Subject: [Gambas-user] Very strange printing problem + SHELL In-Reply-To: <44588051.2050208@...221...> References: <44586154.7070802@...221...> <200605031046.50011.benoit.minisini@...2...> <44588051.2050208@...221...> Message-ID: <200605031337.34209.benoit.minisini@...2...> On Wednesday 03 May 2006 12:05, Eilert wrote: > Benoit Minisini schrieb: > > On Wednesday 03 May 2006 09:52, Eilert wrote: > >> Hi everybody, > >> > >> After having been searching for this bug for months, I've found it at > >> last. > >> > >> In one of my apps, when the user makes an entry into a customer's > >> account for instance and has it saved, the program won't print anymore. > >> The printing dialog appears, and everything runs through as expected, > >> but there is no output to the printer. If I restart the program, it will > >> print as usual. > >> > >> Now, this appears to be the reason: > >> > >> In the saving SUB I found I had included a SHELL command changing the > >> file's mode to 660 after writing so every member of the group can write > >> into this file. > >> > >> When I comment this SHELL command out, the app runs as expected. As soon > >> as it is activated, however, the bug appears: Whenever the SHELL is > >> called, printing will fail afterwards. > >> > >> Here is one of the critical parts in code: > >> > >> OPEN datei$ & "konto" FOR WRITE CREATE AS #dtnr > >> FOR i = 0 TO ktNr.Count - 1 > >> IF ktModus[i] = "N" THEN BREAK > >> PRINT #dtnr, " account" & Chr$(13) > >> PRINT #dtnr, " number=" & CStr(i + 1) & Chr$(13) > >> PRINT #dtnr, " date=" & SpeicherDatum(ktDatum[i]) & > >> Chr$(13) PRINT #dtnr, " text=" & Str2Tag(ktText[i]) & Chr$(13) > >> PRINT #dtnr, " debit=" & ktSoll[i] & Chr$(13) > >> PRINT #dtnr, " credit=" & ktHaben[i] & Chr$(13) > >> PRINT #dtnr, " mode=" & SpeicherModus(ktModus[i]) & > >> Chr$(13) PRINT #dtnr, " end account" & Chr$(13) > >> PRINT #dtnr, " " & Chr$(13) > >> NEXT > >> CLOSE #dtnr > >> SHELL "chmod 660 " & datei$ & "konto" WAIT > >> > >> Does anyone here have an idea why this SHELL line might keep the printer > >> from printing? Is there another way of having the chmod 660? Or did I > >> implement the SHELL command wrong? > >> > >> Thanks for all ideas! > >> > >> Rolf > > > > I think there is a clash between interpreter process management and qt > > process management, used for running 'lpr'. > > > > Try to print to a postscript file, and send this file to the printer with > > SHELL or EXEC. It should work. > > > > Regards, > > Yes. In my app, there is a printer dialog. If I choose "print to file", > it prints a standard ps file. > You must do it by code, with: Printer.File = XXX > Hm. Is deviating the printing through a ps file + SHELL to lpr really > the only way of getting rid of this problem? This is almost exactly what does the qt library: creating a postscript file, forking and running lpr in the background, and piping the file to it. But it seems that the interpreter process management breaks the qt library lpr management. Of course, this does not use the qt process management classes! Mmm... The qt library seems to have been designed so that you cannot use any other library! So printing to a file, and sending it to lpr is not a shame. And you can even send it to kprinter instead of lpr to have more power! Regards, -- Benoit Minisini From leonardo at ...1237... Wed May 3 18:03:44 2006 From: leonardo at ...1237... (Leonardo Miliani) Date: Wed, 03 May 2006 18:03:44 +0200 Subject: [Gambas-user] KDE & Gambas executable part2 In-Reply-To: <200605011823.02651.ronstk@...239...> References: <44562A26.7080407@...1237...> <200605011807.23310.ronstk@...239...> <200605011823.02651.ronstk@...239...> Message-ID: <4458D460.9060304@...1237...> ron ha scritto: > from old mail I send previous > > From: ron > To: gambas-user at lists.sourceforge.net > Date: 2006-04-17 15:10 > Subject: Re: [Gambas-user] gambas will not run > ------------------------------------- > > In the File associations, add new type. > say 'application/x-gambas2' > add Filename pattern '*.gambas' > enter description 'Gambas exe' > > Add application and type 'gbr2' or '/usr/bin/gbr2' in the textbox. > press OK > > Verify now with the Edit button at tab 'Application' > Command is gbr2 and use the Advanced options, set 'Run in Terminal' on > > Try out on a *.gambas file > The terminal stays open for duration of the gambas app works :) > > If all works OK then 'run in terminal' can switched off. > > Take a look in '/home/ron/.kde/share/mimelnk/application' > Find the file 'x-gambas2.desktop' with content: > > [Desktop Entry] > Comment=Gambas executable > Hidden=false > Icon= > MimeType=application/x-gambas2 > Patterns=*.gambas > Type=MimeType > > goto '/home/ron/.kde/share/applnk/.hidden' > Find file 'gbr2.desktop' with content: > > [Desktop Entry] > Comment= > Comment[en_US]= > Exec=gbr2 > GenericName= > GenericName[en_US]= > Icon= > InitialPreference=2 > MimeType=application/x-gambas2 > Name=gbr2 > Name[en_US]=gbr2 > Path= > StartupNotify=true > Terminal=false > TerminalOptions= > Type=Application > X-DCOP-ServiceType=none > X-KDE-SubstituteUID=false > X-KDE-Username= > > These both files are now new on my box and it works. > SuSE 9.2, KDE 3.5.0 (a) SuSE version > > If you add these as files direct you must run kbuildsycoca !!! > > Have fun > > Ron > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd_______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > I tried your suggestions but I don't get the application running... Maybe I didn't undestand all the steps.. Why did you talk about looking for /home/ron/.kde/share/mimelnk/application files? -- Ciao. Leo Visita il mio sito personale: www.leonardomiliani.com e-mail: leonardo at ...1237... From ronstk at ...239... Wed May 3 20:36:59 2006 From: ronstk at ...239... (ron) Date: Wed, 3 May 2006 20:36:59 +0200 Subject: [Gambas-user] KDE & Gambas executable part2 In-Reply-To: <4458D460.9060304@...1237...> References: <44562A26.7080407@...1237...> <200605011823.02651.ronstk@...239...> <4458D460.9060304@...1237...> Message-ID: <200605032036.59858.ronstk@...239...> On Wednesday 03 May 2006 18:03, Leonardo Miliani wrote: > ron ha scritto: > > Take a look in '/home/ron/.kde/share/mimelnk/application' > > Find the file 'x-gambas2.desktop' with content: > > > > [Desktop Entry] > > Comment=Gambas executable > > Hidden=false > > Icon= > > MimeType=application/x-gambas2 > > Patterns=*.gambas > > Type=MimeType > > > > goto '/home/ron/.kde/share/applnk/.hidden' > > Find file 'gbr2.desktop' with content: > > > > [Desktop Entry] > > Comment= > > Comment[en_US]= > > Exec=gbr2 > > GenericName= > > GenericName[en_US]= > > Icon= > > InitialPreference=2 > > MimeType=application/x-gambas2 > > Name=gbr2 > > Name[en_US]=gbr2 > > Path= > > StartupNotify=true > > Terminal=false > > TerminalOptions= > > Type=Application > > X-DCOP-ServiceType=none > > X-KDE-SubstituteUID=false > > X-KDE-Username= > > > > These both files are now new on my box and it works. > > SuSE 9.2, KDE 3.5.0 (a) SuSE version > > > > If you add these as files direct you must run kbuildsycoca !!! > > > > Have fun > > > > Ron > > > > > > ------------------------------------------------------- > > > I tried your suggestions but I don't get the application running... > Maybe I didn't undestand all the steps.. Why did you talk about looking > for /home/ron/.kde/share/mimelnk/application files? > you must create 2 files: 1) Named as : x-gambas2.desktop Store in : /home/ron/.kde/share/mimelnk/application 2) Named as : gbr2.desktop Store in : /home/ron/.kde/share/applnk/.hidden '/home' is the place where the users has there login mhome directory My name is ron and is then '/home/ron' In that directory there is a '.kde' directory and that one contains 'share' etc. /home/ron/.kde/share/mimelnk/application /home/ron/.kde/share/applnk/.hidden Replace in the above 2 lines 'ron' with your login/user 'name' :) /home/ron equals more or less as "c:\Document and Setings\Users\yourname" :) See message from Jose J. Rodriguez to know it could work. Ron From ronstk at ...239... Wed May 3 20:43:12 2006 From: ronstk at ...239... (ron) Date: Wed, 3 May 2006 20:43:12 +0200 Subject: [Gambas-user] KDE & Gambas executable In-Reply-To: <6c208f950605021908o4f642f2dh46e6c6259c725046@...627...> References: <44562A26.7080407@...1237...> <200605011807.23310.ronstk@...239...> <6c208f950605021908o4f642f2dh46e6c6259c725046@...627...> Message-ID: <200605032043.12378.ronstk@...239...> On Wednesday 03 May 2006 04:08, Jose J. Rodriguez wrote: > On 5/1/06, ron wrote: -----8<---- > > Ron > > > > > > Works as user by copying the 2 files and running kbuildsycoca, but > couldn't get it to work system-wide (tried that first). > > Regards, > Joe1962 > You have to do as root for system wide install. For SuSE it is _normal_ in /opt/kde/....... Other distros are unknown to me to be correct where it is. The difficult part is running kbuildsycoca for it. Using SuSE it will be done at creating new a user on the box Result that it is system wide for new users only. For the old users it must in the users home directory. I think this is the case why you could not do it. Ron From cjro99 at ...67... Wed May 3 22:55:00 2006 From: cjro99 at ...67... (javier romero) Date: Wed, 3 May 2006 20:55:00 +0000 Subject: [Gambas-user] Drawing Message-ID: Hi, I try to run your example in Gambas 1.0.15, but it does'nt works. The first time say me the form is not proper to use in this version. After that when run, no buttons appers, only the tab stripan there is not way to probe the example. Regards Javier ---------------------------------------- > From: timothy.marshal-nichols at ...247... > To: gambas-user at lists.sourceforge.net > Subject: RE: [Gambas-user] Drawing > Date: Sat, 29 Apr 2006 15:26:29 +0100 > > > > -----Original Message----- > > From: gambas-user-admin at lists.sourceforge.net > > [mailto:gambas-user-admin at lists.sourceforge.net]On Behalf Of Benoit > > Minisini > > Sent: Wednesday, 26 April 2006 09:47 > > To: gambas-user at lists.sourceforge.net > > Subject: Re: [Gambas-user] Drawing > > > > > > On Wednesday 26 April 2006 10:39, Timothy Marshal-Nichols wrote: > > > You must be using an older version of Gambas. The *= is just > > > multiplication. Try: > > > > > > imageWidth = imageWidth * scaleIsotropic > > > imageHeight = imageHeight * scaleIsotropic > > > > > > this the same code in long hand. > > > > > > The PrintImage code was to show you how to use the Resolution of the > > > Printer and Desktop to find the required image/drawing size. > > Its just I had > > > code to hand using a image that I knew worked. You can still Draw a > > > Drawing. > > > > > > This is what you might get: > > > > > > PRIVATE SUB PrintDrawing(drw AS Drawing) > > > DIM drawingWidth AS Integer > > > DIM drawingHeight AS Integer > > > DIM scaleIsotropic AS Float > > > ' Display printer dialog > > > IF Printer.Setup() THEN RETURN > > > INC Application.Busy > > > ' Get drawing size for the printer resolution > > > drawingWidth = (drw.Width * Printer.Resolution) / Desktop.Resolution > > > drawingHeight = (drw.Height * Printer.Resolution) / Desktop.Resolution > > > ' Adjust drawing size if it does not fit on the printer page > > > IF drawingWidth > Printer.Width OR drawingHeight > Printer.Height THEN > > > ' Scale Isotropic, keep aspect ratio of the image > > > scaleIsotropic = Min(Printer.Width / drawingWidth, Printer.Height / > > > drawingHeight) > > > drawingWidth *= scaleIsotropic > > > drawingHeight *= scaleIsotropic > > > END IF > > > 'PRINT "Width: " & drawingWidth, drw.Width, Printer.Width > > > 'PRINT "Height: " & drawingHeight, drw.Height, Printer.Height > > > ' Draw drawing centred on printer page > > > Draw.Begin(Printer) > > > 'Draw.Rect((Printer.Width - drawingWidth) / 2, (Printer.Height - > > > drawingHeight) / 2, drawingWidth, drawingHeight) > > > Draw.Drawing(drw, (Printer.Width - drawingWidth) / 2, > > (Printer.Height - > > > drawingHeight) / 2, drawingWidth, drawingHeight) > > > Draw.End > > > DEC Application.Busy > > > END > > > > > > Two points: > > > > > > 1. Convert the *= again! > > > > > > 2. On my system this still only prints the Drawing at the old > > resolution. > > > You can see if you uncomment the Draw.Rect line that the calculation for > > > the drawing size is correct. By setting the width and height > > the help says > > > the drawing should be scaled. I think this has been fixed with later > > > versions of Gambas as I know there has been some work the SVG > > code. (I was > > > going to upgrade after installing SUES 10.1.) > > > > > > Also the scaling of a Drawing when drawing on a DrawingArea > > does not work - > > > so it must be a problem with the Draw.Drawing method. If this method has > > > not been fixed then you will never be able to print good image > > at the right > > > size. > > > > > > Thanks > > > > > > 8-{)} Timothy Marshal-Nichols > > > > > > > > > > If a kind people could make a little example of printing, I will > > put it with > > the other Gambas examples :-) > > > > Regards, > > > > -- > > Benoit Minisini > > > > > > > > ------------------------------------------------------- > > Using Tomcat but need to do more? Need to support web services, security? > > Get stuff done quickly with pre-integrated technology to make > > your job easier > > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > I have created a project to demonstrate the printing of text, images and > drawings. > > There is one problem. This is with the drawing of a SVG file. When you call > Draw.Drawing it always draws the SVG file at the same size. For example the > following: > Draw.Drawing(SVGDrawing, 10, 10, 110, 110) > and > Draw.Drawing(SVGDrawing, 10, 10, 210, 210) > produces drawings at the original size of the drawing. The help says you > setting the width and height should scale the drawing. Setting the width and > height appears to have no effect. This means when printing you always get a > thumbnail whether you want it or not. > > (You could convert to a Picture, then a Image, then scale, then print. But > this would not scale very well for printing.) > > At first the thought this was just a problem with the version of gambas I > was using (1.9.17). But I also created a version of this project in the > stable version Gambas 1.0.15. The problem also appears to be in that version > also. So now I am now thinking the bug is in both versions 1 and 2 of > Gambas. > > Try out the example. In ModulePrinting look at the procedure PrintDrawing. > If you uncomment the line Draw.Rect... you can see the size the SVG size > should print out at. > > Thanks > > 8-{)} Timothy Marshal-Nichols > > _________________________________________________________________ Descarga gratis la Barra de Herramientas de MSN http://www.msn.es/usuario/busqueda/barra?XAPID=2031&DI=1055&SU=http%3A//www.hotmail.com&HL=LINKTAG1OPENINGTEXT_MSNBH From joe1962 at ...626... Wed May 3 22:59:08 2006 From: joe1962 at ...626... (Jose J. Rodriguez) Date: Wed, 3 May 2006 16:59:08 -0400 Subject: [Gambas-user] KDE & Gambas executable In-Reply-To: <200605032043.12378.ronstk@...239...> References: <44562A26.7080407@...1237...> <200605011807.23310.ronstk@...239...> <6c208f950605021908o4f642f2dh46e6c6259c725046@...627...> <200605032043.12378.ronstk@...239...> Message-ID: <6c208f950605031359m400a120fk887ef22d3b36d5de@...627...> On 5/3/06, ron wrote: > On Wednesday 03 May 2006 04:08, Jose J. Rodriguez wrote: > > On 5/1/06, ron wrote: > -----8<---- > > > > Ron > > > > > > > > > > Works as user by copying the 2 files and running kbuildsycoca, but > > couldn't get it to work system-wide (tried that first). > > > > Regards, > > Joe1962 > > > You have to do as root for system wide install. > > For SuSE it is _normal_ in /opt/kde/....... > Other distros are unknown to me to be correct where it is. > > The difficult part is running kbuildsycoca for it. > Using SuSE it will be done at creating new a user on the box > Result that it is system wide for new users only. > For the old users it must in the users home directory. > > I think this is the case why you could not do it. > > Did it as root, /opt/kde is right for Vector Linux too. Then ran /opt/kde/bin/kbuildsycoca and nothing. Also tried /opt/kde/bin/kbuildsycoca --global, with no results either. I'll check into this some more later, thanks. Regards, Joe1962 From joe1962 at ...626... Thu May 4 11:11:40 2006 From: joe1962 at ...626... (Jose J. Rodriguez) Date: Thu, 4 May 2006 05:11:40 -0400 Subject: [Gambas-user] TextLabel misbehaving inside ScrollView. Message-ID: <6c208f950605040211v38c8d8cage6cb5a335e13455c@...627...> Hello, I'm trying to get a vertically scrollable TextLabel by embedding it inside a ScrollView, but when I set Textlabel.Autoresize to True, it becomes wider than the client area of the ScrollView, in fact, wider than the ScrollView control itself, as I can see if I activate both scrollbars. It doesn't matter if I set the TextLabel to Expand or not, nor does it matter which Arrangement I set for the ScrollView. If I manually set the width to Scroll.ClientWidth, I lose text at the bottom of the TextLabel. The ScrollView has Expand = True, in case this has anything to do with it. This is in Gambas 1.9.29. Regards, Joe1962 From karl.wheeler1 at ...1073... Thu May 4 11:13:04 2006 From: karl.wheeler1 at ...1073... (KARL WHEELER) Date: Thu, 4 May 2006 10:13:04 +0100 (BST) Subject: [Gambas-user] Treeview and other Questions Message-ID: <20060504091304.65641.qmail@...1432...> Hi, I'm a gambas noob and have spent about a week playing with the stable version and must say how impressed I am with it. I've created my first app ( it is used for angle & distance measurment on still photo's ) and it may be a bit rough, but it works ; ) Now I'm starting something a little more ambitious but I need to use the treeview control, but I can't figure it out. Is there and idiots guide to Treeview anywhere ?? or an example ?? Are their any Gambas programming papers/books available - i'm happy to pay for these things but prefer them in PDF so I can use them now. Many thanks for any and all help. Karl -------------- next part -------------- An HTML attachment was scrubbed... URL: From timothy.marshal-nichols at ...247... Thu May 4 11:27:42 2006 From: timothy.marshal-nichols at ...247... (Timothy Marshal-Nichols) Date: Thu, 4 May 2006 10:27:42 +0100 Subject: [Gambas-user] Drawing In-Reply-To: Message-ID: > > If a kind people could make a little example of printing, I will > > put it with > > the other Gambas examples :-) > > > > Regards, > > > > -- > > Benoit Minisini > -----Original Message----- > From: gambas-user-admin at lists.sourceforge.net > [mailto:gambas-user-admin at lists.sourceforge.net]On Behalf Of javier > romero > Sent: Wednesday, 03 May 2006 21:55 > To: gambas-user at lists.sourceforge.net > Subject: RE: [Gambas-user] Drawing > > > Hi, I try to run your example in Gambas 1.0.15, but it does'nt works. > The first time say me the form is not proper to use in this > version. After that when run, no buttons appers, only the tab > stripan there is not way to probe the example. > > Regards > Javier > The example printing project was created in Gambas 2. This what Gambas 1 does to any Gambas 2 project ? not just this project. You may have guessed this, as the attachment name was ?Printing.Gambas2.V0.0.1.tar? In general when you open a version 2 project in version 1 you need to: 1. Save every file again. This includes every class, form and module. You properly also need to save the hidden .project file. 2. On a form Gambas 1 and Gambas 2 use different method of positioning controls. You will need to move the controls and resize the form. See the comments in the emails for "Incorrect property value" However I have saved you the trouble of doing it in this case as I have attached a Gambas 1 version to this email. This is called ?Printing.Gambas1.V0.0.2.tar? I have made a few small changes to the example. But they are only changes to the comments ? not to the code. This is called ?Printing.Gambas2.V0.0.2.tar? . ALSO I ASKED A QUESTION IN MY ORIGINAL EMAIL. I WAS HOPING FOR AN ANSWER. I THINK THIS IS A BUG WITH GAMBAS VERSION 1 AND 2: There is one problem. This is with the drawing of a SVG file. When you call Draw.Drawing it always draws the SVG file at the same size. For example the following: Draw.Drawing(SVGDrawing, 10, 10, 110, 110) and Draw.Drawing(SVGDrawing, 10, 10, 210, 210) produces drawings at the original size of the drawing. The help says you setting the width and height should scale the drawing. Setting the width and height appears to have no effect. This means when printing you always get a thumbnail whether you want it or not. (You could convert to a Picture, then a Image, then scale, then print. But this would not scale very well for printing.) At first the thought this was just a problem with the version of gambas I was using (1.9.17). But I also created a version of this project in the stable version Gambas 1.0.15. The problem also appears to be in that version also. So now I am now thinking the bug is in both versions 1 and 2 of Gambas. Try out the example. In ModulePrinting look at the procedure PrintDrawing. If you uncomment the line Draw.Rect... you can see the size the SVG size should print out at. 8-{)} Timothy Marshal-Nichols -------------- next part -------------- A non-text attachment was scrubbed... Name: Printing.Gambas1.V0.0.2.tar Type: application/x-tar Size: 102400 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Printing.Gambas2.V0.0.2.tar Type: application/x-tar Size: 61440 bytes Desc: not available URL: From eilert-sprachen at ...221... Thu May 4 12:08:15 2006 From: eilert-sprachen at ...221... (Eilert) Date: Thu, 04 May 2006 12:08:15 +0200 Subject: [Gambas-user] Very strange printing problem + SHELL In-Reply-To: <200605031337.34209.benoit.minisini@...2...> References: <44586154.7070802@...221...> <200605031046.50011.benoit.minisini@...2...> <44588051.2050208@...221...> <200605031337.34209.benoit.minisini@...2...> Message-ID: <4459D28F.7060702@...221...> Benoit Minisini schrieb: > On Wednesday 03 May 2006 12:05, Eilert wrote: >> Benoit Minisini schrieb: >>> On Wednesday 03 May 2006 09:52, Eilert wrote: >>>> Hi everybody, >>>> >>>> After having been searching for this bug for months, I've found it at >>>> last. >>>> >>>> In one of my apps, when the user makes an entry into a customer's >>>> account for instance and has it saved, the program won't print anymore. >>>> The printing dialog appears, and everything runs through as expected, >>>> but there is no output to the printer. If I restart the program, it will >>>> print as usual. >>>> >>>> Now, this appears to be the reason: >>>> >>>> In the saving SUB I found I had included a SHELL command changing the >>>> file's mode to 660 after writing so every member of the group can write >>>> into this file. >>>> >>>> When I comment this SHELL command out, the app runs as expected. As soon >>>> as it is activated, however, the bug appears: Whenever the SHELL is >>>> called, printing will fail afterwards. >>>> >>>> Here is one of the critical parts in code: >>>> >>>> OPEN datei$ & "konto" FOR WRITE CREATE AS #dtnr >>>> FOR i = 0 TO ktNr.Count - 1 >>>> IF ktModus[i] = "N" THEN BREAK >>>> PRINT #dtnr, " account" & Chr$(13) >>>> PRINT #dtnr, " number=" & CStr(i + 1) & Chr$(13) >>>> PRINT #dtnr, " date=" & SpeicherDatum(ktDatum[i]) & >>>> Chr$(13) PRINT #dtnr, " text=" & Str2Tag(ktText[i]) & Chr$(13) >>>> PRINT #dtnr, " debit=" & ktSoll[i] & Chr$(13) >>>> PRINT #dtnr, " credit=" & ktHaben[i] & Chr$(13) >>>> PRINT #dtnr, " mode=" & SpeicherModus(ktModus[i]) & >>>> Chr$(13) PRINT #dtnr, " end account" & Chr$(13) >>>> PRINT #dtnr, " " & Chr$(13) >>>> NEXT >>>> CLOSE #dtnr >>>> SHELL "chmod 660 " & datei$ & "konto" WAIT >>>> >>>> Does anyone here have an idea why this SHELL line might keep the printer >>>> from printing? Is there another way of having the chmod 660? Or did I >>>> implement the SHELL command wrong? >>>> >>>> Thanks for all ideas! >>>> >>>> Rolf >>> I think there is a clash between interpreter process management and qt >>> process management, used for running 'lpr'. >>> >>> Try to print to a postscript file, and send this file to the printer with >>> SHELL or EXEC. It should work. >>> >>> Regards, >> Yes. In my app, there is a printer dialog. If I choose "print to file", >> it prints a standard ps file. >> > > You must do it by code, with: > > Printer.File = XXX > >> Hm. Is deviating the printing through a ps file + SHELL to lpr really >> the only way of getting rid of this problem? > > This is almost exactly what does the qt library: creating a postscript file, > forking and running lpr in the background, and piping the file to it. > > But it seems that the interpreter process management breaks the qt library lpr > management. Of course, this does not use the qt process management classes! > > Mmm... The qt library seems to have been designed so that you cannot use any > other library! > > So printing to a file, and sending it to lpr is not a shame. And you can even > send it to kprinter instead of lpr to have more power! > > Regards, > This turned out much too complicated, as my printing module is way too large and has many (strange) ways of printing here and there... ;-) Instead, I found ACL and could get rid of the SHELL command by setting a default mask for those directories for all users of the group using the files. It appears that the SHELL command is also causing errors in another application although some earlier version of Gambas should fix this bug. I've recompiled this app but it still doesn't run for a long time. Sometimes it dies after a minute, sometimes after an hour. But it never survived a whole afternoon. This program uses the SHELL for invoking a "who" every 10 seconds and building a list of users currently logged in. I think you know that program, we've discussed this before. I just wanted to tell that it still doesn't run flawlessly. Regards Rolf From leonardo at ...1237... Thu May 4 16:16:03 2006 From: leonardo at ...1237... (Leonardo Miliani) Date: Thu, 04 May 2006 16:16:03 +0200 Subject: [Gambas-user] KDE & Gambas executable part2 In-Reply-To: <200605032036.59858.ronstk@...239...> References: <44562A26.7080407@...1237...> <200605011823.02651.ronstk@...239...> <4458D460.9060304@...1237...> <200605032036.59858.ronstk@...239...> Message-ID: <445A0CA3.9010905@...1237...> Hi Ron, I had some problems because of strange KDE working... Today I restarted my Suse box and clicking on any Gambas executable maked it running! But I didn't have any icon representing the type of application Gambas executable was. So I decided to get them one. I right clicked on a Gambas executable, then chose Properties, then clicked on Modify type of file icon in Generals tab. I then clicked on gbr2 in the list of applications used to open the file and selected Modify. When I chose the icon, I applied all the changes and... executables didn't run anymore! So I opened again then Properties window and when I opened then window to modify the applications used to run then Gambas executables I noticed that KDE simply had canceled the gbr2 application! So I had to re-set up all the thing and now all is working good... I don't know why KDE did this way but I suggest you to specify in your how-to to double-check the settings because there could be this problem. Ah, I use KDE 3.5.2-a -- Ciao. Leo Visita il mio sito personale: www.leonardomiliani.com e-mail: leonardo at ...1237... From ronstk at ...239... Thu May 4 19:00:43 2006 From: ronstk at ...239... (ron) Date: Thu, 4 May 2006 19:00:43 +0200 Subject: [Gambas-user] KDE & Gambas executable part2 In-Reply-To: <445A0CA3.9010905@...1237...> References: <44562A26.7080407@...1237...> <200605032036.59858.ronstk@...239...> <445A0CA3.9010905@...1237...> Message-ID: <200605041900.44147.ronstk@...239...> On Thursday 04 May 2006 16:16, Leonardo Miliani wrote: > Hi Ron, > I had some problems because of strange KDE working... > Today I restarted my Suse box and clicking on any Gambas executable > maked it running! > But I didn't have any icon representing the type of application Gambas > executable was. So I decided to get them one. I right clicked on a > Gambas executable, then chose Properties, then clicked on Modify type of > file icon in Generals tab. I then clicked on gbr2 in the list of > applications used to open the file and selected Modify. When I chose the > icon, I applied all the changes and... executables didn't run anymore! > So I opened again then Properties window and when I opened then window > to modify the applications used to run then Gambas executables I noticed > that KDE simply had canceled the gbr2 application! > So I had to re-set up all the thing and now all is working good... > > I don't know why KDE did this way but I suggest you to specify in your > how-to to double-check the settings because there could be this problem. > > Ah, I use KDE 3.5.2-a > The solution I have ATM is next: In both files there is a entry as 'icon=' and is not used currently. I put in the $HOME/.config/gambas both icons included here. Copyright is Fabian when I'm right. they are anyway great for a *.gambas filetype. The file entry in both files must be then '/home/ron/.config/gambas/gambas2.png' The Gambas2.png has a big '2' in it, gambas1.png is without version number I set gambas1.png in x-gambas.desktop while this one is related to a *.gambas file and has no version id in it. And I set gambas2.png in the gbr2.desktop file. So the files should as follows. /home/ron/.kde/share/mimelnk/application/x-gambas2.desktop /home/ron/.kde/share/applnk/.hidden/gbr2.desktop /home/ron/.config/gambas/gambas1.png /home/ron/.config/gambas/gambas2.png Change the name 'ron' to your user name. Did work here direct without kbuildsycoca :) Ron -------------- next part -------------- A non-text attachment was scrubbed... Name: gambas1.png Type: image/png Size: 6640 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: gambas2.png Type: image/png Size: 6915 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: gbr2.desktop Type: application/x-desktop Size: 344 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: x-gambas2.desktop Type: application/x-desktop Size: 161 bytes Desc: not available URL: From ronstk at ...239... Thu May 4 19:08:17 2006 From: ronstk at ...239... (ron) Date: Thu, 4 May 2006 19:08:17 +0200 Subject: [Gambas-user] Treeview and other Questions In-Reply-To: <20060504091304.65641.qmail@...1432...> References: <20060504091304.65641.qmail@...1432...> Message-ID: <200605041908.17724.ronstk@...239...> On Thursday 04 May 2006 11:13, KARL WHEELER wrote: > Hi, > > I'm a gambas noob and have spent about a week playing with the stable > version and must say how impressed I am with it. I've created my first > app ( it is used for angle & distance measurment on still photo's ) and > it may be a bit rough, but it works ; ) > > Now I'm starting something a little more ambitious but I need to use the > treeview control, but I can't figure it out. Is there and idiots guide > to Treeview anywhere ?? or an example ?? > > Are their any Gambas programming papers/books available - i'm happy to > pay for these things but prefer them in PDF so I can use them now. > > Many thanks for any and all help. > > Karl Gambas comes wiht a big set of examples. Did you not see in the second group the title TreeView ? :) Still I have todo it myself too. A other one is the IDE code for ideas but for a noob it can be complicated to follow what happpens and where. Ron From wspinto at ...1405... Thu May 4 22:30:50 2006 From: wspinto at ...1405... (wspinto at ...1405...) Date: Thu, 4 May 2006 17:30:50 -0300 Subject: [Gambas-user] Gambas design inteface sugestion In-Reply-To: <20060503210101.06F5F13315@...773...> References: <20060503210101.06F5F13315@...773...> Message-ID: <1146774650.445a647a73eed@...1433...> Hi Benoit Minisini! One sugestion to gambas form design. The use of arrows keys to move the controls. reguards, Wellington ___________________________________________________________________________________ Tarifa ?nica DDI - A melhor op??o para suas liga??es internacionais. Do fixo ou do celular voc? paga a mesma tarifa e ainda tem um desconto especial para ligar para os Estados Unidos. Saiba mais. Acesse www.embratel.com.br From fidojones at ...805... Thu May 4 23:26:39 2006 From: fidojones at ...805... (Lorenzo Tejera) Date: Thu, 4 May 2006 23:26:39 +0200 (CEST) Subject: [Gambas-user] Gambas design inteface sugestion In-Reply-To: <1146774650.445a647a73eed@...1433...> References: <20060503210101.06F5F13315@...773...> <1146774650.445a647a73eed@...1433...> Message-ID: <35851.85.155.40.83.1146777999.squirrel@...1316...> One vote form me too, is very useful El Jue, 4 de Mayo de 2006, 22:30, wspinto at ...1405... escribi?: > Hi Benoit Minisini! > > > One sugestion to gambas form design. The use of arrows keys to move the > controls. > > > reguards, > > Wellington > __________________________________________________________________________ > _________ > Tarifa ?nica DDI - A melhor op??o para suas liga??es internacionais. > Do fixo ou do celular voc? paga a mesma tarifa e ainda tem um desconto > especial para ligar para os Estados Unidos. Saiba mais. Acesse > www.embratel.com.br > > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From laxminarayan at ...1434... Fri May 5 07:29:06 2006 From: laxminarayan at ...1434... (Laxminarayan G Kamath A) Date: Fri, 05 May 2006 10:59:06 +0530 Subject: [Gambas-user] imix - IMage grinder for unIX Message-ID: <445AE2A2.1020508@...1434...> Hi Gambas Users! Me a kinda noob to Gambas, and I must say, I really like it more than VB. This thing has only essential stuff. of course, it still has to go further to reach complete maturity, but I like the current one (Gambas2) so much that I am thinking of basing my first major project on it! [ The description might look daunting, butit is quite simple and interesting.] The problem statement is like this: There are thousands of command line utilities(on *nix platforms) that play around with images. Examples include imagemagick's command line utilites, netpbm, thumbnail generators, album creators, slideshow generators, similar images finders, OCRs, pdf - png generators,Image information extractors, jpeg header modifiers, and another zillion utilities. Not all people may be experts enough to use all these utilities from the command line. But at the same time, it is the fact that writing command line utilites is simple enough for programmers to dedicate most of the time for the core logic of the software. Also, even among the experts, they may not be knowing all of the tools, thus missing a lot of fun! What this project has to do. This project aims to bridge all the three gaps - between noobies, experts and the developers. Solution overview: My Idea is to create a project that will maintain a framework specification, a GAMBAS library that implements the framework, and a user interface. The framework and the library together will allow experts to write specification for each tool in such a way, that the framework implementation can understand the relation between different utilities, the input, and the output. The UI will use these specifications and the framework to present them to the end user in a very user friendly way. The UI should be able to manage "albums", create a flow of contol of utilities and apply them on individual images or albums. Please comment on this idea. Sounds interesting? Then please join me. Anybody is welcome. -- Laxminarayan G Kamath A laxminarayan at ...1434... From karl.wheeler1 at ...1073... Fri May 5 15:49:20 2006 From: karl.wheeler1 at ...1073... (KARL WHEELER) Date: Fri, 5 May 2006 14:49:20 +0100 (BST) Subject: [Gambas-user] Re: Treeview and other Questions Message-ID: <20060505134920.90589.qmail@...1432...> Thanks Ron, I am such a noob - sorry. I was checking the online help, it did'nt occur to use the examples :) OK I've got this figured ( i think ), but is it possible to take the 'treeview.item.key' and use it to show a form. I was hoping to set the key to be the form name and then use this with .show to open the form, but I keep getting an error Thanks Karl -------------- next part -------------- An HTML attachment was scrubbed... URL: From ronstk at ...239... Fri May 5 17:57:01 2006 From: ronstk at ...239... (ron) Date: Fri, 5 May 2006 17:57:01 +0200 Subject: [Gambas-user] Re: Treeview and other Questions In-Reply-To: <20060505134920.90589.qmail@...1432...> References: <20060505134920.90589.qmail@...1432...> Message-ID: <200605051757.02305.ronstk@...239...> On Friday 05 May 2006 15:49, KARL WHEELER wrote: > Thanks Ron, I am such a noob - sorry. > > I was checking the online help, it did'nt occur to use the examples :) > > OK I've got this figured ( i think ), but is it possible to take the 'treeview.item.key' > and use it to show a form. I was hoping to set the key to be the form name and then use > this with .show to open the form, but I keep getting an error > > Thanks > > Karl > I can not do nothing whithout get the error message excact and the gambas version you use. However next can help a bit. Take care that every time you add something to a treeview the key must be unique. A very simple way to use for example is Treeview1.Add( Treeview1.Count & "=" & YourNotUninqueName , TheTitle ) in the TreeView1_Select() Dim k as string[] k=Split( TreeView1.Key , "=" ) now you can use k[1] as name for the form to open normal you use dim hForm as YourForm hForm = NEW YourForm hForm.Show but dynamic you need dim hForm as Form ' the real form is unknown hForm = New ( k[1] ) ' k[1] between pharenthesis ! hForm.Show() See in the Help the Language section about NEW and New() hButton = New("Button", hParent) 'has exactly the same effect as: hButton = NEW Button(hParent) Ron From gambas at ...1... Fri May 5 21:12:19 2006 From: gambas at ...1... (Benoit Minisini) Date: Fri, 5 May 2006 21:12:19 +0200 Subject: [Gambas-user] Drawing In-Reply-To: References: Message-ID: <200605052112.19662.gambas@...1...> On Thursday 04 May 2006 11:27, Timothy Marshal-Nichols wrote: > > The example printing project was created in Gambas 2. This what Gambas 1 > does to any Gambas 2 project ? not just this project. You may have guessed > this, as the attachment name was ?Printing.Gambas2.V0.0.1.tar? > > In general when you open a version 2 project in version 1 you need to: > 1. Save every file again. This includes every class, form and module. You > properly also need to save the hidden .project file. > 2. On a form Gambas 1 and Gambas 2 use different method of positioning > controls. You will need to move the controls and resize the form. See the > comments in the emails for "Incorrect property value" > However I have saved you the trouble of doing it in this case as I have > attached a Gambas 1 version to this email. This is called > ?Printing.Gambas1.V0.0.2.tar? > > I have made a few small changes to the example. But they are only changes > to the comments ? not to the code. This is called > ?Printing.Gambas2.V0.0.2.tar? . > > > > ALSO I ASKED A QUESTION IN MY ORIGINAL EMAIL. I WAS HOPING FOR AN ANSWER. I > THINK THIS IS A BUG WITH GAMBAS VERSION 1 AND 2: Oops. Don't cry! > > > > There is one problem. This is with the drawing of a SVG file. When you call > Draw.Drawing it always draws the SVG file at the same size. For example the > following: > Draw.Drawing(SVGDrawing, 10, 10, 110, 110) > and > Draw.Drawing(SVGDrawing, 10, 10, 210, 210) > produces drawings at the original size of the drawing. The help says you > setting the width and height should scale the drawing. Setting the width > and height appears to have no effect. This means when printing you always > get a thumbnail whether you want it or not. The extra arguments of Draw.Drawing are for clipping, not scaling. The documentation is false. I think I have wrote what I wanted, and not what I programmed! I think I did that because I should have implemented the transformation matrix that allow you to scale, rotate and translate any drawing. But I didn't have the time to do it! Maybe I should do it now... Sorry for that... Regards, -- Benoit Minisini From emil97 at ...1424... Sat May 6 00:20:18 2006 From: emil97 at ...1424... (rudy) Date: Sat, 6 May 2006 05:20:18 +0700 Subject: [Gambas-user] Problem compiling 1.9.28 on Suse10.0 Message-ID: <200605060520.19744.emil97@...1424...> I tried compiling Gambas 1.9.28 on Suse 10.0 After extracting the source file, I did ./configure (without any options) During the process, there was following message : ------------------ checking for MySQL driver headers... no checking for MySQL driver libraries... no ------------------- At the end of configure process I have following message: ************************************************************ THESE COMPONENTS ARE DISABLED: - gb.corba - gb.db.firebird - gb.db.mysql - gb.db.odbc - gb.db.postgresql - gb.db.sqlite - gb.db.sqlite2 - gb.gtk - gb.ldap - gb.net.smtp - gb.pcre - gb.pdfchecking for MySQL driver headers... no checking for MySQL driver libraries... no - gb.qt.kde - gb.sdl - gb.v4l - gb.xml ************************************************************ Why above components are disabled ? (Default is enabled, right ?). While I don't have the lib for some of the components (e.g ldap and postgresql), I have mysql installed and libmysql in /usr/lib. In fact, on the same machine, I have Gambas 1.9.17 which come with Suse 10.0 and gb.db component for mysql was installed by default (other components like gb.qt.kde and gb.sdl were installed too). For comparison, I tried to install 1.9.28 on Fedora Core 4. On FC4, the same ./configure (without any options) has gb.db for mysql installed (other components with its lib installed were enabled too). On Suse 10.0, why those components are disabled / not installed ? Please help, thanks, Rudy From ronstk at ...239... Sat May 6 01:09:15 2006 From: ronstk at ...239... (ron) Date: Sat, 6 May 2006 01:09:15 +0200 Subject: [Gambas-user] Problem compiling 1.9.28 on Suse10.0 In-Reply-To: <200605060520.19744.emil97@...1424...> References: <200605060520.19744.emil97@...1424...> Message-ID: <200605060109.16432.ronstk@...239...> On Saturday 06 May 2006 00:20, rudy wrote: > I tried compiling Gambas 1.9.28 on Suse 10.0 > > After extracting the source file, I did ./configure (without any options) > During the process, there was following message : > ------------------ > checking for MySQL driver headers... no > checking for MySQL driver libraries... no > ------------------- > At the end of configure process I have following message: > > ************************************************************ > > THESE COMPONENTS ARE DISABLED: > > - gb.corba > - gb.db.firebird > - gb.db.mysql > - gb.db.odbc > - gb.db.postgresql > - gb.db.sqlite > - gb.db.sqlite2 > - gb.gtk > - gb.ldap > - gb.net.smtp > - gb.pcre > - gb.pdfchecking for MySQL driver headers... no > checking for MySQL driver libraries... no > - gb.qt.kde > - gb.sdl > - gb.v4l > - gb.xml > > ************************************************************ > > Why above components are disabled ? (Default is enabled, right ?). > > While I don't have the lib for some of the components (e.g ldap and > postgresql), I have mysql installed and libmysql in /usr/lib. In fact, > on the same machine, I have Gambas 1.9.17 which come with Suse 10.0 and > gb.db component for mysql was installed by default (other components like > gb.qt.kde and gb.sdl were installed too). > > For comparison, I tried to install 1.9.28 on Fedora Core 4. On FC4, the > same ./configure (without any options) has gb.db for mysql installed (other > components with its lib installed were enabled too). On Suse 10.0, why those > components are disabled / not installed ? > > Please help, > thanks, > Rudy > You need 2 things for compile gambas at home 1) the libraries and 2) the library-devel package i.e. libmysql.rpm and libmysql-devel.rpm The SuSE RPM you did use where the precompiled version. You need then only the library.rpm and do not need the library-devel.rpm Usage of the 'library-devel.rpm' is only at the box whitch is compiling (at SuSE done). The message 'MySQL driver libraries... no' tell you the mysql.rpm is not there. The message 'MySQL driver headers... no' tells you the mysql-devel.rpm is not there. (or at wrong place) It does not matter SuSE or FC4 for compare, it depends on what is installed on that box. If on FC4 Apache/MySQL/PHP is intalled then the -devel packs are also installed. (just seen yesterday with fresh FC4 install on box at work a lot of them) > On Suse 10.0, why those components are disabled / not installed ? SuSE does not automatic install those -devel packs for a normal desktop install. You have to ask them why not, but consider next. Installing Windows does never has those packs because the users do no compile, they do there work (if it works :) anyway) with it. Installing SuSE does never has those packs because the users do no compile, they do there work (and it works :) anyway) with it. Ron From ronstk at ...239... Sat May 6 01:28:01 2006 From: ronstk at ...239... (ron) Date: Sat, 6 May 2006 01:28:01 +0200 Subject: [Gambas-user] Problem compiling 1.9.28 on Suse10.0 In-Reply-To: <200605060520.19744.emil97@...1424...> References: <200605060520.19744.emil97@...1424...> Message-ID: <200605060128.01372.ronstk@...239...> PS. Goto 'http://gambasdoc.org/help/' In the Documents section select *HowTo* and read C. How To Compile Gambas for more information Greets, Ron From ronstk at ...239... Sat May 6 01:35:45 2006 From: ronstk at ...239... (ron) Date: Sat, 6 May 2006 01:35:45 +0200 Subject: [Gambas-user] Bad links in gambas home page at sf Message-ID: <200605060135.45838.ronstk@...239...> On http://gambas.sourceforge.net/ in menu, *Download* the link to the READ THESE IMPORTANT NOTES FIRST do not work. *Readme* page also not available. *Documentation -> Compiling Gambas -> important notes links to http://www.binara.com/gambas-wiki/bin/view/Gambas/WebSiteImportantNotes and does not exists ATM. Ron From ronstk at ...239... Sat May 6 01:50:27 2006 From: ronstk at ...239... (ron) Date: Sat, 6 May 2006 01:50:27 +0200 Subject: [Gambas-user] Wiki edit word to bold with leading uppercase letter. Message-ID: <200605060150.27567.ronstk@...239...> I changed in the wiki doc at http://gambasdoc.org/help/howto/windows just above 2. Linux the "windows" word. It was [../../dev/qt/windows] instead of a real link to MS. I changed it to the word windows only and in bold with adding * to *windows* but then decide it should start with uppercase W, change it and then it is underlined and act as link to ../../dev/qt/windows again ?? Made it to the real MS link now. Ron From ronstk at ...239... Sat May 6 02:19:07 2006 From: ronstk at ...239... (ron) Date: Sat, 6 May 2006 02:19:07 +0200 Subject: [Gambas-user] IsSpace error or bug? Message-ID: <200605060219.08080.ronstk@...239...> In wiki http://gambasdoc.org/help/lang/isspace A space is one of the following characters: A space " ", A form-feed "\f", <--- not allowed !!! A newline "\n", A carriage return "\r", A horizontal tab "\t", A vertical tab "\v". <--- not allowed !!! PRINT IsSpace(" \n \r\n") True PRINT IsSpace(" \n \r\f") <== \f should be space ?? I get "Bad character constant in string at...." Same for \v gambas2-1.9.29 Ron From joe1962 at ...626... Sat May 6 03:33:38 2006 From: joe1962 at ...626... (Jose J. Rodriguez) Date: Fri, 5 May 2006 21:33:38 -0400 Subject: [Gambas-user] Re: TextLabel misbehaving inside ScrollView. In-Reply-To: <6c208f950605040211v38c8d8cage6cb5a335e13455c@...627...> References: <6c208f950605040211v38c8d8cage6cb5a335e13455c@...627...> Message-ID: <6c208f950605051833p4a436bddx19cc8edf0e8c3e8d@...627...> On 5/4/06, Jose J. Rodriguez wrote: > Hello, > > I'm trying to get a vertically scrollable TextLabel by embedding it > inside a ScrollView, but when I set Textlabel.Autoresize to True, it > becomes wider than the client area of the ScrollView, in fact, wider > than the ScrollView control itself, as I can see if I activate both > scrollbars. It doesn't matter if I set the TextLabel to Expand or not, > nor does it matter which Arrangement I set for the ScrollView. If I > manually set the width to Scroll.ClientWidth, I lose text at the > bottom of the TextLabel. The ScrollView has Expand = True, in case > this has anything to do with it. > > This is in Gambas 1.9.29. > Still getting nowhere with this. I'd really appreciate a solution, workaround (like how to know the height of the TextLabel needed to fit the text, etc) or at least acknowledgement of the problem, as I'm sort of stuck at this point on the installer project. The full blown html component is not feasable for this, as it means adding another component and also reduces the possibility if porting to the gtk component later. Regards, Joe1962 From laxminarayan at ...1434... Sat May 6 06:30:46 2006 From: laxminarayan at ...1434... (Laxminarayan G Kamath A) Date: Sat, 06 May 2006 10:00:46 +0530 Subject: [Gambas-user] Re: TextLabel misbehaving inside ScrollView. In-Reply-To: <6c208f950605051833p4a436bddx19cc8edf0e8c3e8d@...627...> References: <6c208f950605040211v38c8d8cage6cb5a335e13455c@...627...> <6c208f950605051833p4a436bddx19cc8edf0e8c3e8d@...627...> Message-ID: <445C2676.9080406@...1434...> On 05/06/06 07:03, Jose J. Rodriguez wrote: > The full blown html > component is not feasable for this, as it means adding another > component and also reduces the possibility if porting to the gtk > component later. Anybody ready to add a gecko component? :-) Is that difficult? -- Laximinarayan G Kamath A laxminarayan at ...1435... From gambas at ...1... Sat May 6 08:14:15 2006 From: gambas at ...1... (Benoit Minisini) Date: Sat, 6 May 2006 08:14:15 +0200 Subject: [Gambas-user] Re: TextLabel misbehaving inside ScrollView. In-Reply-To: <6c208f950605051833p4a436bddx19cc8edf0e8c3e8d@...627...> References: <6c208f950605040211v38c8d8cage6cb5a335e13455c@...627...> <6c208f950605051833p4a436bddx19cc8edf0e8c3e8d@...627...> Message-ID: <200605060814.15692.gambas@...1...> On Saturday 06 May 2006 03:33, Jose J. Rodriguez wrote: > On 5/4/06, Jose J. Rodriguez wrote: > > Hello, > > > > I'm trying to get a vertically scrollable TextLabel by embedding it > > inside a ScrollView, but when I set Textlabel.Autoresize to True, it > > becomes wider than the client area of the ScrollView, in fact, wider > > than the ScrollView control itself, as I can see if I activate both > > scrollbars. It doesn't matter if I set the TextLabel to Expand or not, > > nor does it matter which Arrangement I set for the ScrollView. If I > > manually set the width to Scroll.ClientWidth, I lose text at the > > bottom of the TextLabel. The ScrollView has Expand = True, in case > > this has anything to do with it. > > > > This is in Gambas 1.9.29. > > Still getting nowhere with this. I'd really appreciate a solution, > workaround (like how to know the height of the TextLabel needed to fit > the text, etc) or at least acknowledgement of the problem, as I'm sort > of stuck at this point on the installer project. The full blown html > component is not feasable for this, as it means adding another > component and also reduces the possibility if porting to the gtk > component later. > > Regards, > Joe1962 > There is no real solution at the moment, but you can use a TextView instead of a TextLabel, because it has a TextWidth and TextHeight property. The Expand property is not related to your problem (see the wiki). Regards, -- Benoit Minisini From gambas at ...1... Sat May 6 08:15:50 2006 From: gambas at ...1... (Benoit Minisini) Date: Sat, 6 May 2006 08:15:50 +0200 Subject: [Gambas-user] Re: TextLabel misbehaving inside ScrollView. In-Reply-To: <445C2676.9080406@...1434...> References: <6c208f950605040211v38c8d8cage6cb5a335e13455c@...627...> <6c208f950605051833p4a436bddx19cc8edf0e8c3e8d@...627...> <445C2676.9080406@...1434...> Message-ID: <200605060815.50925.gambas@...1...> On Saturday 06 May 2006 06:30, Laxminarayan G Kamath A wrote: > On 05/06/06 07:03, Jose J. Rodriguez wrote: > > The full blown html > > component is not feasable for this, as it means adding another > > component and also reduces the possibility if porting to the gtk > > component later. > > Anybody ready to add a gecko component? :-) Is that difficult? KHTML component was a bit difficult, but not too much. I dont understand how a HTML component can be made with a TextLabel, that can just display a small subset of the HTML syntax... -- Benoit Minisini From gambas at ...1... Sat May 6 08:22:06 2006 From: gambas at ...1... (Benoit Minisini) Date: Sat, 6 May 2006 08:22:06 +0200 Subject: [Gambas-user] Bad links in gambas home page at sf In-Reply-To: <200605060135.45838.ronstk@...239...> References: <200605060135.45838.ronstk@...239...> Message-ID: <200605060822.06873.gambas@...1...> On Saturday 06 May 2006 01:35, ron wrote: > On http://gambas.sourceforge.net/ in menu, > > *Download* the link to the READ THESE IMPORTANT NOTES FIRST do not work. > *Readme* page also not available. > *Documentation -> Compiling Gambas -> important notes links to > http://www.binara.com/gambas-wiki/bin/view/Gambas/WebSiteImportantNotes > and does not exists ATM. > > > Ron > Fixed... Thanks! -- Benoit Minisini From laxminarayan at ...1434... Sat May 6 09:23:22 2006 From: laxminarayan at ...1434... (Laxminarayan G Kamath A) Date: Sat, 06 May 2006 12:53:22 +0530 Subject: [Gambas-user] Sidepanel Problem Message-ID: <445C4EEA.8090109@...1434...> Hi, I am using Gambas ver 1.9.21 . I am using the sidepanel widget. I have noticed 2 problems: 1) when the panel hides, the event "hide" is triggered after it hides, and the event "show" is triggered before the panel is shown. So the problem is, in the "show" event, I do not get the width of the sidepanel properly. And as a result, If I try to use the event to resize some other widget, the other widget remains maximised even after the panel is show. 2) The widget allows to resize freely, but there is no "resize" event. I think it is best keep only the "resize" event. If poeple want to know if the panel is hidden or shown, they can always use the "hidden" property to know . In a general sense, I feel all event driven programming languages should implement event callbacks like this - one before the event and one after. So there is no ambiguity in when the event trigger is called. Not only that , but the programmer may require to some times use one and otherwise error. The event callback that happens before the event is carried out must allow to return true or false, thus enabling to "discard" the event. Javascript style :-) Eg: I have a filelist inside the side panel, and a control outside. If the use hides the panel, I can return true or false depending on whether at least one file is selected in the filelist. -- Laxminarayan G Kamath A laxminarayan at ...1434... From joe1962 at ...626... Sat May 6 10:08:32 2006 From: joe1962 at ...626... (Jose J. Rodriguez) Date: Sat, 6 May 2006 04:08:32 -0400 Subject: [Gambas-user] Re: TextLabel misbehaving inside ScrollView. In-Reply-To: <200605060814.15692.gambas@...1...> References: <6c208f950605040211v38c8d8cage6cb5a335e13455c@...627...> <6c208f950605051833p4a436bddx19cc8edf0e8c3e8d@...627...> <200605060814.15692.gambas@...1...> Message-ID: <6c208f950605060108u37c4b6dn5aca359d9a10a84@...627...> On 5/6/06, Benoit Minisini wrote: > On Saturday 06 May 2006 03:33, Jose J. Rodriguez wrote: > > On 5/4/06, Jose J. Rodriguez wrote: > > > Hello, > > > > > > I'm trying to get a vertically scrollable TextLabel by embedding it > > > inside a ScrollView, but when I set Textlabel.Autoresize to True, it > > > becomes wider than the client area of the ScrollView, in fact, wider > > > than the ScrollView control itself, as I can see if I activate both > > > scrollbars. It doesn't matter if I set the TextLabel to Expand or not, > > > nor does it matter which Arrangement I set for the ScrollView. If I > > > manually set the width to Scroll.ClientWidth, I lose text at the > > > bottom of the TextLabel. The ScrollView has Expand = True, in case > > > this has anything to do with it. > > > > > > This is in Gambas 1.9.29. > > > > Still getting nowhere with this. I'd really appreciate a solution, > > workaround (like how to know the height of the TextLabel needed to fit > > the text, etc) or at least acknowledgement of the problem, as I'm sort > > of stuck at this point on the installer project. The full blown html > > component is not feasable for this, as it means adding another > > component and also reduces the possibility if porting to the gtk > > component later. > > > > Regards, > > Joe1962 > > > > There is no real solution at the moment, but you can use a TextView instead of > a TextLabel, because it has a TextWidth and TextHeight property. > Like I tried to say, TextView needs another component and has no equivalent in GTK component. Also, it doesn't have "Padding", heh heh. What TextView needs is a "AutoResize direction", with possible values of horizontal, vertical and both. Regards, Joe1962 From ronstk at ...239... Sat May 6 12:31:25 2006 From: ronstk at ...239... (ron) Date: Sat, 6 May 2006 12:31:25 +0200 Subject: [Gambas-user] Sidepanel Problem In-Reply-To: <445C4EEA.8090109@...1434...> References: <445C4EEA.8090109@...1434...> Message-ID: <200605061231.26301.ronstk@...239...> I do have just the same problem. The height and width are not correct after the event has happen. Control hiearchie is as follows. --------------------------------------------- Vbox (h=me.height) expand=true ------------------------------------------- panel3 (h=) expand=true, arrange=none, autoresize=false scrollview (h=panel3.h-panel2.h) expand=false, arrange=none drawingArea (h=scrollv.h) expand=false --------- panel2 (h=102) expand=false, arrange=none, autoresize=false gridview1 gridview2 (h=100) ------------------------------------------- sidepanel (h=unk) arrange=fill, auto resize=true editor (h= manual by resize sidepanel.h) ------------------------------------------- --------------------------------------------- panel2 and both gridviews has fixed height. When manual sizing the Sidepanel to less height does nor resize panel3 to greater height goes over panel3 When collapse sidepanel panel3 is adjusted OK when expand sidepanel it go over panel3 On resize height of the form only the scrollview with drawingarea should change the height. For the before and after events as suggest are in general sense not a bad idea but does not apply always to all controls. Worse, it can be overdone and the programmer is overwhelmed with events they do not understand and how to handle them. In context with all those events you need a flowchar when the events exact occur and under what conditions. I have experience with MS Access and they have those list of events. At first sight it a mess, however some make realy sense and are missing in gambas. As the Hide and Show events have the correct height I'm already happy. Resize with the bar should also trigger a Resize event to be able to resize other controls aside the sidebar. Ron From ronstk at ...239... Sat May 6 12:37:51 2006 From: ronstk at ...239... (ron) Date: Sat, 6 May 2006 12:37:51 +0200 Subject: [Gambas-user] Sidepanel Problem In-Reply-To: <445C4EEA.8090109@...1434...> References: <445C4EEA.8090109@...1434...> Message-ID: <200605061237.51834.ronstk@...239...> Beside of my other mail I send. The SidePanel is a gb.form component. That means it is written in gambas basic language. This way it should be posible for non C programmers to change the Properties, Methods and *Events* the way they like it in the gambas(ic) language. :) I wil look to it if i can change it the _Show and _Hide will do what I (we) want. Ron From laxminarayan at ...1434... Sat May 6 13:44:55 2006 From: laxminarayan at ...1434... (Laxminarayan G Kamath A) Date: Sat, 06 May 2006 17:14:55 +0530 Subject: [Gambas-user] Sidepanel Problem In-Reply-To: <200605061237.51834.ronstk@...239...> References: <445C4EEA.8090109@...1434...> <200605061237.51834.ronstk@...239...> Message-ID: <445C8C37.3030402@...1434...> On 05/06/06 16:07, ron wrote: >Beside of my other mail I send. > >The SidePanel is a gb.form component. >That means it is written in gambas basic language. >... > > Lovely!!!! i did not realize this before ! Lemme try it too. There is suddenly is a mountain of fun :-) -- Laxminarayan G Kamath A laxminarayan at ...1434... From ronstk at ...239... Sat May 6 13:52:23 2006 From: ronstk at ...239... (ron) Date: Sat, 6 May 2006 13:52:23 +0200 Subject: [Gambas-user] Sidepanel Problem In-Reply-To: <445C8C37.3030402@...1434...> References: <445C4EEA.8090109@...1434...> <200605061237.51834.ronstk@...239...> <445C8C37.3030402@...1434...> Message-ID: <200605061352.24097.ronstk@...239...> On Saturday 06 May 2006 13:44, Laxminarayan G Kamath A wrote: > On 05/06/06 16:07, ron wrote: > > >Beside of my other mail I send. > > > >The SidePanel is a gb.form component. > >That means it is written in gambas basic language. > >... > > > > > > Lovely!!!! i did not realize this before ! Lemme try it too. There is > suddenly is a mountain of fun :-) > Just think after the first mail it was gb.form. I'm busy to try but I cant get it working. I'm creating a message to ask how to do. Will follow in a moment. Ron From ronstk at ...239... Sat May 6 13:57:56 2006 From: ronstk at ...239... (ron) Date: Sat, 6 May 2006 13:57:56 +0200 Subject: [Gambas-user] Sidepanel Problem In-Reply-To: <200605061237.51834.ronstk@...239...> References: <445C4EEA.8090109@...1434...> <200605061237.51834.ronstk@...239...> Message-ID: <200605061357.56871.ronstk@...239...> On Saturday 06 May 2006 12:37, ron wrote: > Beside of my other mail I send. > > The SidePanel is a gb.form component. > That means it is written in gambas basic language. > This way it should be posible for non C programmers to > change the Properties, Methods and *Events* the way they like > it in the gambas(ic) language. :) > > I wil look to it if i can change it the _Show and _Hide > will do what I (we) want. > > Ron > I started but need info. in FSidePanel.class i Add just before the _new() --------------------------------- ' PROPERTY READ roWidth2 AS Integer PROPERTY READ roHeight2 AS Integer PRIVATE FUNCTION roWidth2_Read() AS Integer DIM iWi AS Integer iWi = ME.Width ' IF $hForm.IsHidden() THEN iWi = 0 RETURN iWi END PRIVATE FUNCTION roHeight2_Read() AS Integer DIM iHi AS Integer iHi = ME.Height ' IF $hForm.IsHidden() THEN iHi = 0 RETURN iHi END ' The same in Sidepanel.class but roWidth1 and roHeight1 instead of 2 Then at menubar 'make executable'. then copy then gb.form.class to /opt/gb29/lib/gambas2 The base location my gambas is installed --prefix=/opt/gb29 In the resulting pseudo binary I can't find those 4 readonly properties. When start the project to continue edit the completion can not find my 4 properties. The embeded help also do not show them. Questions: 1) How do I refresh the installed component after edit in the source I mean a gambas already created component as gb.form but edit by user. 2) Can you make a documented sample of a mini control in gambas The head section with explain what this mean and why to use them. From SidePanel.class EXPORT INHERITS UserContainer PUBLIC CONST _Properties AS String = "*,Hidden,Orientation,Resizable,Border" EVENT Show EVENT Hide PROPERTY Orientation AS Integer "" PROPERTY Border AS Boolean Special about UserControl, UserContainer and _Properties. Do I understand it right PROPERTY Orientation AS Integer "" is your alternative for the Enum For now I find out the SidePanel.class is the first one I should concentrate on. I did add roWidth1 in the _Properties as PUBLIC CONST _Properties AS String = "*,roWidth1,Hidden,Orientation, but does not work either. Greets from sunny Holland Ron From joe1962 at ...626... Sat May 6 14:05:50 2006 From: joe1962 at ...626... (Jose J. Rodriguez) Date: Sat, 6 May 2006 08:05:50 -0400 Subject: [Gambas-user] Gambas design inteface sugestion In-Reply-To: <35851.85.155.40.83.1146777999.squirrel@...1316...> References: <20060503210101.06F5F13315@...773...> <1146774650.445a647a73eed@...1433...> <35851.85.155.40.83.1146777999.squirrel@...1316...> Message-ID: <6c208f950605060505o73fbf45dvd18b7c89aa3eaca4@...627...> On 5/4/06, Lorenzo Tejera wrote: > One vote form me too, is very useful > > El Jue, 4 de Mayo de 2006, 22:30, wspinto at ...1405... escribi?: > > Hi Benoit Minisini! > > > > > > One sugestion to gambas form design. The use of arrows keys to move the > > controls. > > Definitely a must-have. I still find myself trying to nudge controls with the arrow keys all the time. A legacy of my VB time, I guess. Problem is, I still have to do some VB now and then at work. Regards, Joe1962 From ronstk at ...239... Sat May 6 14:20:48 2006 From: ronstk at ...239... (ron) Date: Sat, 6 May 2006 14:20:48 +0200 Subject: [Gambas-user] Gambas design inteface sugestion In-Reply-To: <6c208f950605060505o73fbf45dvd18b7c89aa3eaca4@...627...> References: <20060503210101.06F5F13315@...773...> <35851.85.155.40.83.1146777999.squirrel@...1316...> <6c208f950605060505o73fbf45dvd18b7c89aa3eaca4@...627...> Message-ID: <200605061420.48755.ronstk@...239...> On Saturday 06 May 2006 14:05, Jose J. Rodriguez wrote: > On 5/4/06, Lorenzo Tejera wrote: > > One vote form me too, is very useful > > > > El Jue, 4 de Mayo de 2006, 22:30, wspinto at ...1405... escribi?: > > > Hi Benoit Minisini! > > > > > > > > > One sugestion to gambas form design. The use of arrows keys to move the > > > controls. > > > I vote for this also. > > Definitely a must-have. I still find myself trying to nudge controls > with the arrow keys all the time. A legacy of my VB time, I guess. > Problem is, I still have to do some VB now and then at work. I understand this, 'the legacy of my VB time', my problem too. :) > > Regards, > Joe1962 > In the time before the grid is based on half of fontsize you could use the shift key to move the controls with pixel instead grid size. Same as VB does. Personal I like the old way more. Controls are now flipping sizes during a resize in design time. :( Ron From gambas at ...1... Sun May 7 17:45:08 2006 From: gambas at ...1... (Benoit Minisini) Date: Sun, 7 May 2006 17:45:08 +0200 Subject: [Gambas-user] Re: TextLabel misbehaving inside ScrollView. In-Reply-To: <6c208f950605060108u37c4b6dn5aca359d9a10a84@...627...> References: <6c208f950605040211v38c8d8cage6cb5a335e13455c@...627...> <200605060814.15692.gambas@...1...> <6c208f950605060108u37c4b6dn5aca359d9a10a84@...627...> Message-ID: <200605071745.08521.gambas@...1...> On Saturday 06 May 2006 10:08, Jose J. Rodriguez wrote: > On 5/6/06, Benoit Minisini wrote: > > On Saturday 06 May 2006 03:33, Jose J. Rodriguez wrote: > > > On 5/4/06, Jose J. Rodriguez wrote: > > > > Hello, > > > > > > > > I'm trying to get a vertically scrollable TextLabel by embedding it > > > > inside a ScrollView, but when I set Textlabel.Autoresize to True, it > > > > becomes wider than the client area of the ScrollView, in fact, wider > > > > than the ScrollView control itself, as I can see if I activate both > > > > scrollbars. It doesn't matter if I set the TextLabel to Expand or > > > > not, nor does it matter which Arrangement I set for the ScrollView. > > > > If I manually set the width to Scroll.ClientWidth, I lose text at the > > > > bottom of the TextLabel. The ScrollView has Expand = True, in case > > > > this has anything to do with it. > > > > > > > > This is in Gambas 1.9.29. > > > > > > Still getting nowhere with this. I'd really appreciate a solution, > > > workaround (like how to know the height of the TextLabel needed to fit > > > the text, etc) or at least acknowledgement of the problem, as I'm sort > > > of stuck at this point on the installer project. The full blown html > > > component is not feasable for this, as it means adding another > > > component and also reduces the possibility if porting to the gtk > > > component later. > > > > > > Regards, > > > Joe1962 > > > > There is no real solution at the moment, but you can use a TextView > > instead of a TextLabel, because it has a TextWidth and TextHeight > > property. > > Like I tried to say, TextView needs another component and has no > equivalent in GTK component. Also, it doesn't have "Padding", heh heh. > What TextView needs is a "AutoResize direction", with possible values > of horizontal, vertical and both. > > Regards, > Joe1962 > TextLabel is just for displaying a simple and short HTML text. The problem is that TextView needs to be implemented in the GTK component. Adding features to the Qt version of TextLabel does not mean that the GTK one will have them automagically! Regards, -- Benoit Minisini From arcalis.prod at ...11... Sat May 6 22:57:59 2006 From: arcalis.prod at ...11... (fabien Bodard) Date: Sat, 6 May 2006 22:57:59 +0200 Subject: [Gambas-user] Sidepanel Problem In-Reply-To: <200605061357.56871.ronstk@...239...> References: <445C4EEA.8090109@...1434...> <200605061237.51834.ronstk@...239...> <200605061357.56871.ronstk@...239...> Message-ID: <200605062257.59731.arcalis.prod@...11...> Le Saturday 6 Mai 2006 13:57, ron a ?crit?: hi Ron If you want to have the property visible, you need to put it in the exported (EXPORT) class so... SidePanel.class and not FSidePanel.class. The FSidePanlel Class is an hidden one :) You have the the core and the user interface. This way the user can use only the property allowed Regards, Fabien Bodard > On Saturday 06 May 2006 12:37, ron wrote: > > Beside of my other mail I send. > > > > The SidePanel is a gb.form component. > > That means it is written in gambas basic language. > > This way it should be posible for non C programmers to > > change the Properties, Methods and *Events* the way they like > > it in the gambas(ic) language. :) > > > > I wil look to it if i can change it the _Show and _Hide > > will do what I (we) want. > > > > Ron > > I started but need info. > > in FSidePanel.class i Add just before the _new() > --------------------------------- > ' > PROPERTY READ roWidth2 AS Integer > PROPERTY READ roHeight2 AS Integer > > PRIVATE FUNCTION roWidth2_Read() AS Integer > DIM iWi AS Integer > iWi = ME.Width > ' IF $hForm.IsHidden() THEN iWi = 0 > RETURN iWi > END > > PRIVATE FUNCTION roHeight2_Read() AS Integer > DIM iHi AS Integer > iHi = ME.Height > ' IF $hForm.IsHidden() THEN iHi = 0 > RETURN iHi > END > ' > > The same in Sidepanel.class but roWidth1 and roHeight1 instead of 2 > Then at menubar 'make executable'. > then copy then gb.form.class to /opt/gb29/lib/gambas2 > The base location my gambas is installed --prefix=/opt/gb29 > > In the resulting pseudo binary I can't find those 4 readonly properties. > When start the project to continue edit the completion can not > find my 4 properties. The embeded help also do not show them. > > > Questions: > 1) How do I refresh the installed component after edit in the source > I mean a gambas already created component as gb.form but edit by user. > > 2) Can you make a documented sample of a mini control in gambas > The head section with explain what this mean and why to use them. > > From SidePanel.class > EXPORT > INHERITS UserContainer > > PUBLIC CONST _Properties AS String = > "*,Hidden,Orientation,Resizable,Border" > > EVENT Show > EVENT Hide > > PROPERTY Orientation AS Integer "" > PROPERTY Border AS Boolean > > Special about UserControl, UserContainer and _Properties. > Do I understand it right > PROPERTY Orientation AS Integer "" > is your alternative for the Enum Yes it's just to fill the property boxlist not really like enum but... > For now I find out the SidePanel.class is the first one I > should concentrate on. > I did add roWidth1 in the _Properties as > PUBLIC CONST _Properties AS String = "*,roWidth1,Hidden,Orientation, > but does not work either. not work..; infact you need to make a link in the user interface... > > Greets from sunny Holland > > Ron > > > > > > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From mwuest at ...1436... Sun May 7 11:25:15 2006 From: mwuest at ...1436... (Michi) Date: Sun, 7 May 2006 11:25:15 +0200 Subject: [Gambas-user] TCP Server wth gb.net Message-ID: Hi. could anybody help me with the programming of an TCP Server with gambas and gb.net The routine for accepting the connecting does not start. A good template will help. The ones in gambasdoc.org do not work. I am using gambas 2.0 which debian sarge installed for me. Is it true that the Connection routine has to be in the class file and need to named (name of my serversocket)_Connection. Thanks, bye, Michael. From k4p0w3r at ...370... Sat May 6 21:04:34 2006 From: k4p0w3r at ...370... (Johan Wistrom) Date: Sat, 6 May 2006 20:04:34 +0100 (BST) Subject: [Gambas-user] MDI sidebar suggestion In-Reply-To: <6c208f950605021908o4f642f2dh46e6c6259c725046@...627...> Message-ID: <20060506190434.1766.qmail@...1437...> Hi again, I wanted to suggest a change in the MDI interface for Gambas. As it is not the sidepanel take up alot of realestate so the "workspace" get crowded quickly. Even in 1280x1024 resolution. I like the sidepanel alot and it would be very useful it it would be possible to dock the "Properties" window and the Toolbox to the sidebar (as an option). Would this be doable? regards, Johan ___________________________________________________________ Yahoo! Photos ? NEW, now offering a quality print service from just 7p a photo http://uk.photos.yahoo.com From gambas at ...1... Mon May 8 22:23:57 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 8 May 2006 22:23:57 +0200 Subject: [Gambas-user] prb:Left() does not work correct. In-Reply-To: <200604281331.05109.ronstk@...239...> References: <200604232329.16829.ronstk@...239...> <200604240604.34625.ronstk@...239...> <200604281331.05109.ronstk@...239...> Message-ID: <200605082223.57230.gambas@...1...> On Friday 28 April 2006 13:31, ron wrote: > > Found something. > > when I place only 3 textbox controls on the form it works > > adding some other as button, labels and listbox, is still works > > selecting the 3 working textbox, do cut and past so they are not > > the *first* controls checked for tag it does not work any more > > select all other, do cut and past and it works again. > > > > Look to me as the first tag is null/empty or not used it does not work. > > Test done by remove the first tag, not working, add the tag and it works. > > > > This must be a bug somewhere, I do not see the logic of it. > > > > Ron > > Sorry for kicking. > > Findings: > 3 TextBox controls on form with a .Tag property filled with a word. > Using the Left(TextBox#,2) on them returns for all 3 the 2 letters. > If the first .Tag is cleared ( in property sheet) the Left does not > work any more on the other 2 Controls. > The 3 TextBox.Tag are read with a Sub in a For Next loop. > Using a temp string variable for the .Tag does work. > > Syntax say: Result = Left$ ( String [ , Length ] ) > Tag is however a Variant. In VB this is alowed as substitut for String > and I belived it was in Gambas too. > > Any time to confirm the behaviour/problem? > > TIA > > Ron > Can you send me your project, or better, can you isolate the bug and send me a stripped project that reproduce the bug? Thanks in advance. Regards, -- Benoit Minisini From arcalis.prod at ...11... Tue May 9 00:15:28 2006 From: arcalis.prod at ...11... (fabien Bodard) Date: Tue, 9 May 2006 00:15:28 +0200 Subject: [Gambas-user] MDI sidebar suggestion In-Reply-To: <20060506190434.1766.qmail@...1437...> References: <20060506190434.1766.qmail@...1437...> Message-ID: <200605090015.28295.arcalis.prod@...11...> Le Saturday 6 Mai 2006 21:04, Johan Wistrom a ?crit?: > Hi again, > > I wanted to suggest a change in the MDI interface for > Gambas. As it is not the sidepanel take up alot of > realestate so the "workspace" get crowded quickly. > Even in 1280x1024 resolution. > > I like the sidepanel alot and it would be very useful > it it would be possible to dock the "Properties" > window and the Toolbox to the sidebar (as an option). > > Would this be doable? > > regards, > > Johan > I think i'm talking for Benoit but now ... this ide is freeze . So no new feature will be added. This mdi ide is just for wait during the new one coding. To make a windows dockage it's quite difficulte in fact it exist in qt but not in gtk but our wizzard (Benoit) will do something like that in few time ... i hope. Fabien Bodard From cjro99 at ...67... Tue May 9 00:06:14 2006 From: cjro99 at ...67... (javier romero) Date: Mon, 8 May 2006 22:06:14 +0000 Subject: [Gambas-user] Picturebox Message-ID: I have this dibujo.stretch = true dibujo.risize(ancho, largo) dibujo.stretch = false The pictureBox "dibujo" risize with "ancho" and "largo" (width and height) but the image is not resize, the image is cut to fit the new size. Why?, i need to something else?. Thanks Javier Romero _________________________________________________________________ Descarga gratis la Barra de Herramientas de MSN http://www.msn.es/usuario/busqueda/barra?XAPID=2031&DI=1055&SU=http%3A//www.hotmail.com&HL=LINKTAG1OPENINGTEXT_MSNBH From ronstk at ...239... Tue May 9 01:25:26 2006 From: ronstk at ...239... (ron) Date: Tue, 9 May 2006 01:25:26 +0200 Subject: [Gambas-user] Sidepanel Problem In-Reply-To: <200605062257.59731.arcalis.prod@...11...> References: <445C4EEA.8090109@...1434...> <200605061357.56871.ronstk@...239...> <200605062257.59731.arcalis.prod@...11...> Message-ID: <200605090125.26725.ronstk@...239...> On Saturday 06 May 2006 22:57, fabien Bodard wrote: > Le Saturday 6 Mai 2006 13:57, ron a ?crit?: > > hi Ron > > If you want to have the property visible, you need to put it in the exported > (EXPORT) class so... SidePanel.class and not FSidePanel.class. The > FSidePanlel Class is an hidden one :) > > You have the the core and the user interface. This way the user can use only > the property allowed > > Regards, > Fabien Bodard > > > Hoi Fabian. Wel it was the Resize event that was missing and the wrong property values in collapsed/closed and expanded/open Sidepanel. The patch I provided in another message enabled a Resize event. It shouls also give more correct property valuas, at Show and Hide event it does, but is still not 100% I found. For the Properties Benoit made a mistake, I think. He was "arrange the sidepanel layout and fires the .Hide" to user and "fire the .Show and then arrange the layout". This way in both events the properties are always the same as in the hide condition. I changed it to "arrange the layout and then fire" the event. For the Resize event in SidePanel, he send it to the FSidePanel but did not fire it as event to the user. I changed it so the Real SidePanel fire it to the user via the virtuele SidePanel as gateway. button button property property drag open close .hidden .visible resize true false true/false bar ---------------- 1 ----- 2 ----- 3 ----- 4 ----- 5 ----- 6 ----- 7 ----- SidePanel1_Resize _rsz _rsz _rsz after_set _Resize Top = 451 590 590 451 451 590 400 Height = 147 8 8 147 147 8 198 Hidden = True true true true false true False Dimension = 147 147 147 147 147 147 147 ClientHeight= 135 -3 -3 135 135 -1 186 SQLEditor.H = 135 135 135 135 135 135 186 SidePanel1_Show _Hide _hide _show Top = 451 590 590 451 Height = 147 8 8 147 Hidden = False true true false Dimension = 147 147 147 147 ClientHeight= 135 -3 -3 135 SQLEditor.H = 135 135 135 135 Events flow for sidepanel_button_open, sidepanel_button_close and Property sidepanel.Visible are -> .Resize -> .Show This are the first 4 columns (_rsz is _Resize event). Property .Visible set is a checkbox and the value of it put in the .Hidden property, no _Resize, _Show or _Hide event. Column 5 and 6 For the drag resize bar the _Resize event occurs. The last column 7 The found difference it during the _Resize event the Property .Hidden has always True, even if it is not hidden at all and at the event .Show or .Hide are the correct values. For the setting of the .Visible property .Hidden is correct. During the drag operation for resizing the sidepanel the .Hidden property is correct in the _Resize event. Before my path the .Height was always the same and .Hidden always true and the _Resize was not available. The last thing I noted is the .Dimension. During the start of the app SidePanel_Resize is fired and .Dimension is 0 (zero), the Sidepanel is untouched by the user, and in open view. After close the sidepanel view the .Dimension did goes to the value 147 and never change. This value is only changed if in design the sidepanel is resized but I do not see fixed relation to it. With low height the dimension is to big anf large height the dimension is to low. Having a working _Resize and correct .Height are for me the most important things ATM. Greets from Holland, Ron From gambas at ...1... Sat May 6 18:20:27 2006 From: gambas at ...1... (Benoit Minisini) Date: Sat, 6 May 2006 18:20:27 +0200 Subject: [Gambas-user] IsSpace error or bug? In-Reply-To: <200605060219.08080.ronstk@...239...> References: <200605060219.08080.ronstk@...239...> Message-ID: <200605061820.27476.gambas@...1...> On Saturday 06 May 2006 02:19, ron wrote: > In wiki http://gambasdoc.org/help/lang/isspace > > A space is one of the following characters: > A space " ", > A form-feed "\f", <--- not allowed !!! > A newline "\n", > A carriage return "\r", > A horizontal tab "\t", > A vertical tab "\v". <--- not allowed !!! > > PRINT IsSpace(" \n \r\n") > True > > PRINT IsSpace(" \n \r\f") <== \f should be space ?? > I get "Bad character constant in string at...." > Same for \v > > gambas2-1.9.29 > > Ron > It seems that the documentation is more advanced than the interpreter :-) -- Benoit Minisini From gambas at ...1... Sat May 6 18:19:54 2006 From: gambas at ...1... (Benoit Minisini) Date: Sat, 6 May 2006 18:19:54 +0200 Subject: [Gambas-user] Sidepanel Problem In-Reply-To: <200605061357.56871.ronstk@...239...> References: <445C4EEA.8090109@...1434...> <200605061237.51834.ronstk@...239...> <200605061357.56871.ronstk@...239...> Message-ID: <200605061819.55248.gambas@...1...> On Saturday 06 May 2006 13:57, ron wrote: > On Saturday 06 May 2006 12:37, ron wrote: > > Beside of my other mail I send. > > > > The SidePanel is a gb.form component. > > That means it is written in gambas basic language. > > This way it should be posible for non C programmers to > > change the Properties, Methods and *Events* the way they like > > it in the gambas(ic) language. :) > > > > I wil look to it if i can change it the _Show and _Hide > > will do what I (we) want. > > > > Ron > > I started but need info. > > in FSidePanel.class i Add just before the _new() > --------------------------------- > ' > PROPERTY READ roWidth2 AS Integer > PROPERTY READ roHeight2 AS Integer > > PRIVATE FUNCTION roWidth2_Read() AS Integer > DIM iWi AS Integer > iWi = ME.Width > ' IF $hForm.IsHidden() THEN iWi = 0 > RETURN iWi > END > > PRIVATE FUNCTION roHeight2_Read() AS Integer > DIM iHi AS Integer > iHi = ME.Height > ' IF $hForm.IsHidden() THEN iHi = 0 > RETURN iHi > END > ' > > The same in Sidepanel.class but roWidth1 and roHeight1 instead of 2 > Then at menubar 'make executable'. > then copy then gb.form.class to /opt/gb29/lib/gambas2 > The base location my gambas is installed --prefix=/opt/gb29 > > In the resulting pseudo binary I can't find those 4 readonly properties. > When start the project to continue edit the completion can not > find my 4 properties. The embeded help also do not show them. > > > Questions: > 1) How do I refresh the installed component after edit in the source > I mean a gambas already created component as gb.form but edit by user. > > 2) Can you make a documented sample of a mini control in gambas > The head section with explain what this mean and why to use them. I should do one... > > From SidePanel.class > EXPORT > INHERITS UserContainer > > PUBLIC CONST _Properties AS String = > "*,Hidden,Orientation,Resizable,Border" > > EVENT Show > EVENT Hide > > PROPERTY Orientation AS Integer "" > PROPERTY Border AS Boolean > > Special about UserControl, UserContainer and _Properties. > Do I understand it right > PROPERTY Orientation AS Integer "" > is your alternative for the Enum Less than that. This string is just an information for the IDE. > > For now I find out the SidePanel.class is the first one I > should concentrate on. > I did add roWidth1 in the _Properties as > PUBLIC CONST _Properties AS String = "*,roWidth1,Hidden,Orientation, > but does not work either. > > > Greets from sunny Holland > > Ron > All is right. You just have to refresh the component information file with the gbi2 program. As root, type: $ gbi2 gb.form Then the IDE will know that there are new properties in the component. Regards, -- Benoit Minisini From gambas at ...1... Mon May 8 22:18:37 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 8 May 2006 22:18:37 +0200 Subject: [Gambas-user] Very strange printing problem + SHELL In-Reply-To: <4459D28F.7060702@...221...> References: <44586154.7070802@...221...> <200605031337.34209.benoit.minisini@...2...> <4459D28F.7060702@...221...> Message-ID: <200605082218.37516.gambas@...1...> On Thursday 04 May 2006 12:08, Eilert wrote: > > This turned out much too complicated, as my printing module is way too > large and has many (strange) ways of printing here and there... ;-) It is not too complicated, it just one line of code more. Anyway, printing to a printer may disappear in a next release, you will be able to only print to a file. And other components will add support for printing and configuring printers. > > Instead, I found ACL and could get rid of the SHELL command by setting a > default mask for those directories for all users of the group using the > files. > > It appears that the SHELL command is also causing errors in another > application although some earlier version of Gambas should fix this bug. > I've recompiled this app but it still doesn't run for a long time. > Sometimes it dies after a minute, sometimes after an hour. But it never > survived a whole afternoon. This program uses the SHELL for invoking a > "who" every 10 seconds and building a list of users currently logged in. > > I think you know that program, we've discussed this before. I just > wanted to tell that it still doesn't run flawlessly. Can you send me this application again? Regards, -- Benoit Minisini From gambas at ...1... Mon May 8 22:18:16 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 8 May 2006 22:18:16 +0200 Subject: [Gambas-user] Sidepanel Problem In-Reply-To: <200605061357.56871.ronstk@...239...> References: <445C4EEA.8090109@...1434...> <200605061237.51834.ronstk@...239...> <200605061357.56871.ronstk@...239...> Message-ID: <200605082218.16764.gambas@...1...> On Saturday 06 May 2006 13:57, ron wrote: > On Saturday 06 May 2006 12:37, ron wrote: > > Beside of my other mail I send. > > > > The SidePanel is a gb.form component. > > That means it is written in gambas basic language. > > This way it should be posible for non C programmers to > > change the Properties, Methods and *Events* the way they like > > it in the gambas(ic) language. :) > > > > I wil look to it if i can change it the _Show and _Hide > > will do what I (we) want. > > > > Ron > > I started but need info. > > in FSidePanel.class i Add just before the _new() > --------------------------------- > ' > PROPERTY READ roWidth2 AS Integer > PROPERTY READ roHeight2 AS Integer > > PRIVATE FUNCTION roWidth2_Read() AS Integer > DIM iWi AS Integer > iWi = ME.Width > ' IF $hForm.IsHidden() THEN iWi = 0 > RETURN iWi > END > > PRIVATE FUNCTION roHeight2_Read() AS Integer > DIM iHi AS Integer > iHi = ME.Height > ' IF $hForm.IsHidden() THEN iHi = 0 > RETURN iHi > END > ' > > The same in Sidepanel.class but roWidth1 and roHeight1 instead of 2 > Then at menubar 'make executable'. > then copy then gb.form.class to /opt/gb29/lib/gambas2 > The base location my gambas is installed --prefix=/opt/gb29 > > In the resulting pseudo binary I can't find those 4 readonly properties. > When start the project to continue edit the completion can not > find my 4 properties. The embeded help also do not show them. > > > Questions: > 1) How do I refresh the installed component after edit in the source > I mean a gambas already created component as gb.form but edit by user. > > 2) Can you make a documented sample of a mini control in gambas > The head section with explain what this mean and why to use them. I should do one... > > From SidePanel.class > EXPORT > INHERITS UserContainer > > PUBLIC CONST _Properties AS String = > "*,Hidden,Orientation,Resizable,Border" > > EVENT Show > EVENT Hide > > PROPERTY Orientation AS Integer "" > PROPERTY Border AS Boolean > > Special about UserControl, UserContainer and _Properties. > Do I understand it right > PROPERTY Orientation AS Integer "" > is your alternative for the Enum Less than that. This string is just an information for the IDE. > > For now I find out the SidePanel.class is the first one I > should concentrate on. > I did add roWidth1 in the _Properties as > PUBLIC CONST _Properties AS String = "*,roWidth1,Hidden,Orientation, > but does not work either. > > > Greets from sunny Holland > > Ron > All is right. You just have to refresh the component information file with the gbi2 program. As root, type: $ gbi2 gb.form Then the IDE will know that there are new properties in the component. Regards, -- Benoit Minisini From brian at ...1334... Mon May 8 17:23:59 2006 From: brian at ...1334... (Christopher Brian Jack) Date: Mon, 08 May 2006 08:23:59 -0700 (PDT) Subject: [Gambas-user] Is the list still active? Message-ID: <20060508082331.A56740@...1337...> Just wondering since I haven't had any email coming from it for over a day now... .=================================================. | Christopher BRIAN Jack aka "Gau of the Veldt" | +=================================================' | brian _AT_ brians-anime _DOT_ com `=================================================- Hi Spambots, my email address is sputnik at ...1334... From emil97 at ...1424... Mon May 8 12:43:33 2006 From: emil97 at ...1424... (rudy) Date: Mon, 8 May 2006 17:43:33 +0700 Subject: [Gambas-user] Problem compiling 1.9.28 on Suse10.0 In-Reply-To: <200605060109.16432.ronstk@...239...> References: <200605060520.19744.emil97@...1424...> <200605060109.16432.ronstk@...239...> Message-ID: <200605081743.33771.emil97@...1424...> On Saturday 06 May 2006 06:09, ron wrote: > On Saturday 06 May 2006 00:20, rudy wrote: > > I tried compiling Gambas 1.9.28 on Suse 10.0 > > > > After extracting the source file, I did ./configure (without any options) > > During the process, there was following message : > > ------------------ > > checking for MySQL driver headers... no > > checking for MySQL driver libraries... no > > ------------------- > > At the end of configure process I have following message: > > > > ************************************************************ > > > > THESE COMPONENTS ARE DISABLED: > > > > - gb.corba > > - gb.db.firebird > > - gb.db.mysql > > - gb.db.odbc > > - gb.db.postgresql > > - gb.db.sqlite > > - gb.db.sqlite2 > > - gb.gtk > > - gb.ldap > > - gb.net.smtp > > - gb.pcre > > - gb.pdfchecking for MySQL driver headers... no > > checking for MySQL driver libraries... no > > - gb.qt.kde > > - gb.sdl > > - gb.v4l > > - gb.xml > > > > ************************************************************ > > > > Why above components are disabled ? (Default is enabled, right ?). > > > > While I don't have the lib for some of the components (e.g ldap and > > postgresql), I have mysql installed and libmysql in /usr/lib. In fact, > > on the same machine, I have Gambas 1.9.17 which come with Suse 10.0 and > > gb.db component for mysql was installed by default (other components like > > gb.qt.kde and gb.sdl were installed too). > > > > For comparison, I tried to install 1.9.28 on Fedora Core 4. On FC4, the > > same ./configure (without any options) has gb.db for mysql installed > > (other components with its lib installed were enabled too). On Suse 10.0, > > why those components are disabled / not installed ? > > > > Please help, > > thanks, > > Rudy > > You need 2 things for compile gambas at home > 1) the libraries and 2) the library-devel package > i.e. libmysql.rpm and libmysql-devel.rpm > > The SuSE RPM you did use where the precompiled version. > You need then only the library.rpm and do not need the library-devel.rpm > Usage of the 'library-devel.rpm' is only at the box whitch is compiling (at > SuSE done). > > The message 'MySQL driver libraries... no' tell you the mysql.rpm is not > there. The message 'MySQL driver headers... no' tells you the > mysql-devel.rpm is not there. (or at wrong place) > > It does not matter SuSE or FC4 for compare, it depends on what is installed > on that box. If on FC4 Apache/MySQL/PHP is intalled then the -devel packs > are also installed. (just seen yesterday with fresh FC4 install on box at > work a lot of them) > > > On Suse 10.0, why those components are disabled / not installed ? > > SuSE does not automatic install those -devel packs for a normal desktop > install. You have to ask them why not, but consider next. > > Installing Windows does never has those packs because the users > do no compile, they do there work (if it works :) anyway) with it. > > Installing SuSE does never has those packs because the users > do no compile, they do there work (and it works :) anyway) with it. > > Ron > Thanks, I got your points. I have libmsqlclient.so installed, but I cannot locate where is mysql-devel in Suse 10.0 (I looked in yast package manager and tried to locate the file on each CDs, but there is no mysql-devel --> am I missing something here ?). However, I have downloaded version of mysql-devel rpm package and have it installed. Now ./configure has gb.db.mysql installed. But now I have another problem: when I tried to run program made by 1.9.17 in 1.9.28, the following error message appear: "Cannot load module xxxx: version too old, please recompile" what's wrong ? Thanks, Rudy From iggy.budiman.it at ...626... Mon May 8 10:42:41 2006 From: iggy.budiman.it at ...626... (Iggy Budiman) Date: Mon, 08 May 2006 15:42:41 +0700 Subject: [Gambas-user] Install gambas2-1.9.29, error when make install Message-ID: <445F0481.1060604@...626...> I tried to install gambas2-1.9.29 on Suse 10.0 I disabled some component when configure. Configure and make went smoothly until I command su -c "make install" The compiler end with output : test -z "/usr/local/lib/gambas2" || mkdir -p -- "/usr/local/lib/gambas2" make install-data-hook make[5]: Entering directory `/home/iggy/gambas2-1.9.29/main/lib/debug' Creating the information files for gb.debug component... make[5]: /usr/local/bin/gbi2: Command not found make[5]: *** [install-data-hook] Error 127 make[5]: Leaving directory `/home/iggy/gambas2-1.9.29/main/lib/debug' make[4]: *** [install-data-am] Error 2 make[4]: Leaving directory `/home/iggy/gambas2-1.9.29/main/lib/debug' make[3]: *** [install-am] Error 2 make[3]: Leaving directory `/home/iggy/gambas2-1.9.29/main/lib/debug' make[2]: *** [install-recursive] Error 1 make[2]: Leaving directory `/home/iggy/gambas2-1.9.29/main/lib' make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory `/home/iggy/gambas2-1.9.29/main' make: *** [install-recursive] Error 1 anybody can tell me what happened? Thx salam -iggy From ronstk at ...239... Tue May 9 02:56:25 2006 From: ronstk at ...239... (ron) Date: Tue, 9 May 2006 02:56:25 +0200 Subject: [Gambas-user] prb:Left() does not work correct. In-Reply-To: <200605082223.57230.gambas@...1...> References: <200604232329.16829.ronstk@...239...> <200604281331.05109.ronstk@...239...> <200605082223.57230.gambas@...1...> Message-ID: <200605090256.25910.ronstk@...239...> On Monday 08 May 2006 22:23, Benoit Minisini wrote: > > Can you send me your project, or better, can you isolate the bug and send me a > stripped project that reproduce the bug? > > Thanks in advance. > > Regards, > Ok here it is in very stripped form On the bottom of the form is told what to do. Happy programming, Ron -------------- next part -------------- A non-text attachment was scrubbed... Name: lefttest.tar.gz Type: application/x-tgz Size: 4648 bytes Desc: not available URL: From k4p0w3r at ...370... Sat May 6 20:52:47 2006 From: k4p0w3r at ...370... (Johan Wistrom) Date: Sat, 6 May 2006 19:52:47 +0100 (BST) Subject: [Gambas-user] Drawingarea.tracking In-Reply-To: <200605061231.26301.ronstk@...239...> Message-ID: <20060506185247.97804.qmail@...1437...> Using gambas1.9.29 + gb.gtk Hi everyone, How does the drawingarea.tracking work? Tracking is enabled and I have a mousemove event for the drawingarea, but it does not return any mouse.x or mouse.y values. Expected result: mouse.x and mouse.y values are printed to console. Actual result: no values get printed to console... PUBLIC SUB DrawingArea1_MouseMove() PRINT mouse.X & ":" & mouse.Y END regards, Johan ___________________________________________________________ Switch an email account to Yahoo! Mail, you could win FIFA World Cup tickets. http://uk.mail.yahoo.com From ronstk at ...239... Tue May 9 03:14:14 2006 From: ronstk at ...239... (ron) Date: Tue, 9 May 2006 03:14:14 +0200 Subject: [Gambas-user] Problem compiling 1.9.28 on Suse10.0 In-Reply-To: <200605081743.33771.emil97@...1424...> References: <200605060520.19744.emil97@...1424...> <200605060109.16432.ronstk@...239...> <200605081743.33771.emil97@...1424...> Message-ID: <200605090314.14203.ronstk@...239...> On Monday 08 May 2006 12:43, rudy wrote: > On Saturday 06 May 2006 06:09, ron wrote: > > On Saturday 06 May 2006 00:20, rudy wrote: ---8<----- > > Installing SuSE does never has those packs because the users > > do no compile, they do there work (and it works :) anyway) with it. > > > > Ron > > > Thanks, I got your points. I have libmsqlclient.so installed, but I cannot > locate where is mysql-devel in Suse 10.0 (I looked in yast package manager > and tried to locate the file on each CDs, but there is no mysql-devel --> am > I missing something here ?). > You must add the ftp.suse.com in the source list. In Yast control center goto "Change Source of Installation". Press "Add" and select "FTP..." Server Name:"ftp.suse.com" Directory on server:"pub/suse/i386/10.0" or Directory on server:"pub/suse/i386/10.0/yast-source" or Directory on server:"pub/suse/i386/10.0/yast-source/" or This is somehow tricky, once it need the trailing slash once it should be without. Same as for "yast-source" > However, I have downloaded version of mysql-devel rpm package and have it > installed. Now ./configure has gb.db.mysql installed. > > But now I have another problem: when I tried to run program made by 1.9.17 in > 1.9.28, the following error message appear: > > "Cannot load module xxxx: version too old, please recompile" > > what's wrong ? if the program made by 1.9.17 is a compiled one, the executable, then you must do the recompile with 1.9.28 again. Only source code in uncompiled form is exchangeable (almost) > > Thanks, > Rudy > Ron From arcalis.prod at ...11... Sat May 6 14:56:31 2006 From: arcalis.prod at ...11... (fabien Bodard) Date: Sat, 06 May 2006 14:56:31 +0200 Subject: [Gambas-user] Sidepanel Problem In-Reply-To: <200605061357.56871.ronstk@...239...> References: <445C4EEA.8090109@...1434...> <200605061237.51834.ronstk@...239...> <200605061357.56871.ronstk@...239...> Message-ID: <200605061456.31705.arcalis.prod@...11...> Le Saturday 6 Mai 2006 13:57, ron a ?crit?: hi Ron If you want to have the property visible, you need to put it in the exported (EXPORT) class so... SidePanel.class and not FSidePanel.class. The FSidePanlel Class is an hidden one :) You have the the core and the user interface. This way the user can use only the property allowed Regards, Fabien Bodard > On Saturday 06 May 2006 12:37, ron wrote: > > Beside of my other mail I send. > > > > The SidePanel is a gb.form component. > > That means it is written in gambas basic language. > > This way it should be posible for non C programmers to > > change the Properties, Methods and *Events* the way they like > > it in the gambas(ic) language. :) > > > > I wil look to it if i can change it the _Show and _Hide > > will do what I (we) want. > > > > Ron > > I started but need info. > > in FSidePanel.class i Add just before the _new() > --------------------------------- > ' > PROPERTY READ roWidth2 AS Integer > PROPERTY READ roHeight2 AS Integer > > PRIVATE FUNCTION roWidth2_Read() AS Integer > DIM iWi AS Integer > iWi = ME.Width > ' IF $hForm.IsHidden() THEN iWi = 0 > RETURN iWi > END > > PRIVATE FUNCTION roHeight2_Read() AS Integer > DIM iHi AS Integer > iHi = ME.Height > ' IF $hForm.IsHidden() THEN iHi = 0 > RETURN iHi > END > ' > > The same in Sidepanel.class but roWidth1 and roHeight1 instead of 2 > Then at menubar 'make executable'. > then copy then gb.form.class to /opt/gb29/lib/gambas2 > The base location my gambas is installed --prefix=/opt/gb29 > > In the resulting pseudo binary I can't find those 4 readonly properties. > When start the project to continue edit the completion can not > find my 4 properties. The embeded help also do not show them. > > > Questions: > 1) How do I refresh the installed component after edit in the source > I mean a gambas already created component as gb.form but edit by user. > > 2) Can you make a documented sample of a mini control in gambas > The head section with explain what this mean and why to use them. > > From SidePanel.class > EXPORT > INHERITS UserContainer > > PUBLIC CONST _Properties AS String = > "*,Hidden,Orientation,Resizable,Border" > > EVENT Show > EVENT Hide > > PROPERTY Orientation AS Integer "" > PROPERTY Border AS Boolean > > Special about UserControl, UserContainer and _Properties. > Do I understand it right > PROPERTY Orientation AS Integer "" > is your alternative for the Enum Yes it's just to fill the property boxlist not really like enum but... > For now I find out the SidePanel.class is the first one I > should concentrate on. > I did add roWidth1 in the _Properties as > PUBLIC CONST _Properties AS String = "*,roWidth1,Hidden,Orientation, > but does not work either. not work..; infact you need to make a link in the user interface... > > Greets from sunny Holland > > Ron > > > > > > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From ronstk at ...239... Tue May 9 03:21:00 2006 From: ronstk at ...239... (ron) Date: Tue, 9 May 2006 03:21:00 +0200 Subject: [Gambas-user] IsSpace error or bug? In-Reply-To: <200605061820.27476.gambas@...1...> References: <200605060219.08080.ronstk@...239...> <200605061820.27476.gambas@...1...> Message-ID: <200605090321.00908.ronstk@...239...> On Saturday 06 May 2006 18:20, Benoit Minisini wrote: > On Saturday 06 May 2006 02:19, ron wrote: > > In wiki http://gambasdoc.org/help/lang/isspace --8<- > > gambas2-1.9.29 > > > > Ron > > > > It seems that the documentation is more advanced than the interpreter :-) > LOL Interpreter follows the documentation or should the documentation follow the interpreter. Thats the Question, Whatson ask'd :) Ron From mwuest at ...1438... Sun May 7 10:29:31 2006 From: mwuest at ...1438... (Michi) Date: Sun, 7 May 2006 10:29:31 +0200 Subject: [Gambas-user] TCP Server wth gb.net Message-ID: Hi. could anybody help me with the programming of an TCP Server with gambas and gb.net The routine for accepting the connecting does not start. A good template will help. The ones in gambasdoc.org do not work. I am using gambas 2.0 which debian sarge installed for me. Is it true that the Connection routine has to be in the class file and need to named (name of my serversocket)_Connection. Thanks, bye, Michael. From ronstk at ...239... Tue May 9 03:31:43 2006 From: ronstk at ...239... (ron) Date: Tue, 9 May 2006 03:31:43 +0200 Subject: [Gambas-user] Drawingarea.tracking In-Reply-To: <20060506185247.97804.qmail@...1437...> References: <20060506185247.97804.qmail@...1437...> Message-ID: <200605090331.44009.ronstk@...239...> On Saturday 06 May 2006 20:52, Johan Wistrom wrote: > Using gambas1.9.29 + gb.gtk > > Hi everyone, > > How does the drawingarea.tracking work? Tracking is > enabled and I have a mousemove event for the > drawingarea, but it does not return any mouse.x or > mouse.y values. > > Expected result: mouse.x and mouse.y values are > printed to console. > > Actual result: no values get printed to console... > > PUBLIC SUB DrawingArea1_MouseMove() > > PRINT mouse.X & ":" & mouse.Y > > END > > > > regards, > > Johan > Where is the SidePanel? :) May be not in gtk but in qt it has worked for sure. I hope it still does, in a few days I need it too :( New question then "New Message", reaction on the readed stuf then "Reply" Regards, Ron From ronstk at ...239... Mon May 8 06:45:13 2006 From: ronstk at ...239... (ron) Date: Mon, 8 May 2006 06:45:13 +0200 Subject: [Gambas-user] Sidepanel Problem and solution Message-ID: <200605080645.14252.ronstk@...239...> Changes to SidePanel My add/change are marked with ' and ' 1) Add Resize event on changes the SidebPanel layout. 2) Correction on 'RAISE PanelShow' (Bug Fix) Orginal the properties are changed after the event instead before. Resulting in Hidden always True, Height/Width always the same. Now the Width/Height and Hidden have the correct values. The Raise PanelHidden is after modify properties so PanleShow should be the same way 3) Event transfer from FSidePanel to SidePanel event This add the SidePanel.Resize event. Changes are done in the source tree at /gambas2-1.9.29/comp/src/gb.form/* You can also put the attached files there. With make install the are effective to use. Projects using SidePanel should recompiled to be safe. I did on the menubar->properties->components deselect gb.form and OK then the same but select gb.form and all was working. In FSidePanel.form -- 1a ---------------- PRIVATE BUTTON_H AS Integer = Desktop.Scale PRIVATE BUTTON_W AS Integer = 64 ' EVENT roResizeF ' PUBLIC SUB _new() $bVisible = TRUE -- 1b ---------------- PUBLIC SUB Form_Resize() RefreshPanel ' RAISE roResizeF ' END ====================== -- 2 ---------------- PUBLIC SUB btnSide_Click() IF ME.Parent.Design THEN RETURN IF $bVisible THEN .... RefreshPanel RefreshArrow panSide.Lower RAISE PanelHide ELSE ' ' RAISE PanelShow ' wrong property values ' panSide.Raise ME.Parent.Resize($W, $H) $bVisible = TRUE RefreshPanel RefreshArrow ' RAISE PanelShow ' correct property values ' ENDIF END ================== In SidePanel.class: -- 3 ----------------- PRIVATE $hForm AS FSidePanel PRIVATE $bAnimate AS Boolean ' EVENT Resize PUBLIC SUB Form_roResizeF() RAISE Resize END ' PUBLIC SUB _new() $hForm = NEW FSidePanel(ME) ================= Happy fishing gambas, Ron -------------- next part -------------- A non-text attachment was scrubbed... Name: FSidePanel.class Type: application/x-java Size: 6119 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: SidePanel.class Type: application/x-java Size: 1647 bytes Desc: not available URL: From iggy.budiman.it at ...626... Tue May 9 03:38:36 2006 From: iggy.budiman.it at ...626... (Iggy Budiman) Date: Tue, 09 May 2006 08:38:36 +0700 Subject: [Gambas-user] Problem compiling 1.9.28 on Suse10.0 In-Reply-To: <200605081743.33771.emil97@...1424...> References: <200605060520.19744.emil97@...1424...> <200605060109.16432.ronstk@...239...> <200605081743.33771.emil97@...1424...> Message-ID: <445FF29C.6030707@...626...> rudy wrote: >Thanks, I got your points. I have libmsqlclient.so installed, but I cannot >locate where is mysql-devel in Suse 10.0 (I looked in yast package manager >and tried to locate the file on each CDs, but there is no mysql-devel --> am >I missing something here ?). > >However, I have downloaded version of mysql-devel rpm package and have it >installed. Now ./configure has gb.db.mysql installed. > >But now I have another problem: when I tried to run program made by 1.9.17 in >1.9.28, the following error message appear: > >"Cannot load module xxxx: version too old, please recompile" > >what's wrong ? > >Thanks, >Rudy > > From gambas menu, choose Project - Compile All (or just press Alt-F7) before running it. You only need to do it once (when running project that already compiled with previous version), not everytime running a project. salam -iggy From ronstk at ...239... Tue May 9 03:42:57 2006 From: ronstk at ...239... (ron) Date: Tue, 9 May 2006 03:42:57 +0200 Subject: [Gambas-user] Sidepanel Problem In-Reply-To: <200605061819.55248.gambas@...1...> References: <445C4EEA.8090109@...1434...> <200605061357.56871.ronstk@...239...> <200605061819.55248.gambas@...1...> Message-ID: <200605090342.57614.ronstk@...239...> On Saturday 06 May 2006 18:19, Benoit Minisini wrote: > On Saturday 06 May 2006 13:57, ron wrote: > > On Saturday 06 May 2006 12:37, ron wrote: > > > Beside of my other mail I send. > > > ---8<--- > > > > Questions: > > 1) How do I refresh the installed component after edit in the source > > I mean a gambas already created component as gb.form but edit by user. > > > > 2) Can you make a documented sample of a mini control in gambas > > The head section with explain what this mean and why to use them. > > I should do one... Thanks, It cost me a lot of work to do with trial and error and only guessing what all means, does and behave. You have made the system and understand it, with notes i hope, to be able to make a framework for it. > > > > > From SidePanel.class > > EXPORT ---8<--- > > Do I understand it right > > PROPERTY Orientation AS Integer "" > > is your alternative for the Enum > > Less than that. This string is just an information for the IDE. I found the working of it, its for the property sheet in designmode :) > > > > > For now I find out the SidePanel.class is the first one I > > should concentrate on. > > I did add roWidth1 in the _Properties as > > PUBLIC CONST _Properties AS String = "*,roWidth1,Hidden,Orientation, > > but does not work either. > > > > > > Greets from sunny Holland > > > > Ron > > > > All is right. You just have to refresh the component information file with the > gbi2 program. As root, type: > > $ gbi2 gb.form I did know it should be simple, just resolved it with the normal 'make install' I asume in the directory where the gb.form is, or any other gb.xxxx usercontrol. > > Then the IDE will know that there are new properties in the component. > > Regards, > Thanks sofar anyway Ron From mwuest at ...1438... Sun May 7 10:56:07 2006 From: mwuest at ...1438... (Michi) Date: Sun, 7 May 2006 10:56:07 +0200 Subject: [Gambas-user] TCP Server wth gb.net Message-ID: Hi. could anybody help me with the programming of an TCP Server with gambas and gb.net The routine for accepting the connecting does not start. A good template will help. The ones in gambasdoc.org do not work. I am using gambas 2.0 which debian sarge installed for me. Is it true that the Connection routine has to be in the class file and need to named (name of my serversocket)_Connection. Thanks, bye, Michael. From gambas at ...1... Sun May 7 17:48:07 2006 From: gambas at ...1... (Benoit Minisini) Date: Sun, 7 May 2006 17:48:07 +0200 Subject: [Gambas-user] Very strange printing problem + SHELL In-Reply-To: <4459D28F.7060702@...221...> References: <44586154.7070802@...221...> <200605031337.34209.benoit.minisini@...2...> <4459D28F.7060702@...221...> Message-ID: <200605071748.08049.gambas@...1...> On Thursday 04 May 2006 12:08, Eilert wrote: > > This turned out much too complicated, as my printing module is way too > large and has many (strange) ways of printing here and there... ;-) It is not too complicated, it just one line of code more. Anyway, printing to a printer may disappear in a next release, you will be able to only print to a file. And other components will add support for printing and configuring printers. > > Instead, I found ACL and could get rid of the SHELL command by setting a > default mask for those directories for all users of the group using the > files. > > It appears that the SHELL command is also causing errors in another > application although some earlier version of Gambas should fix this bug. > I've recompiled this app but it still doesn't run for a long time. > Sometimes it dies after a minute, sometimes after an hour. But it never > survived a whole afternoon. This program uses the SHELL for invoking a > "who" every 10 seconds and building a list of users currently logged in. > > I think you know that program, we've discussed this before. I just > wanted to tell that it still doesn't run flawlessly. Can you send me this application again? Regards, -- Benoit Minisini From gambas at ...1... Sun May 7 17:52:50 2006 From: gambas at ...1... (Benoit Minisini) Date: Sun, 7 May 2006 17:52:50 +0200 Subject: [Gambas-user] prb:Left() does not work correct. In-Reply-To: <200604281331.05109.ronstk@...239...> References: <200604232329.16829.ronstk@...239...> <200604240604.34625.ronstk@...239...> <200604281331.05109.ronstk@...239...> Message-ID: <200605071752.50319.gambas@...1...> On Friday 28 April 2006 13:31, ron wrote: > > Found something. > > when I place only 3 textbox controls on the form it works > > adding some other as button, labels and listbox, is still works > > selecting the 3 working textbox, do cut and past so they are not > > the *first* controls checked for tag it does not work any more > > select all other, do cut and past and it works again. > > > > Look to me as the first tag is null/empty or not used it does not work. > > Test done by remove the first tag, not working, add the tag and it works. > > > > This must be a bug somewhere, I do not see the logic of it. > > > > Ron > > Sorry for kicking. > > Findings: > 3 TextBox controls on form with a .Tag property filled with a word. > Using the Left(TextBox#,2) on them returns for all 3 the 2 letters. > If the first .Tag is cleared ( in property sheet) the Left does not > work any more on the other 2 Controls. > The 3 TextBox.Tag are read with a Sub in a For Next loop. > Using a temp string variable for the .Tag does work. > > Syntax say: Result = Left$ ( String [ , Length ] ) > Tag is however a Variant. In VB this is alowed as substitut for String > and I belived it was in Gambas too. > > Any time to confirm the behaviour/problem? > > TIA > > Ron > Can you send me your project, or better, can you isolate the bug and send me a stripped project that reproduce the bug? Thanks in advance. Regards, -- Benoit Minisini From ronstk at ...239... Tue May 9 05:33:26 2006 From: ronstk at ...239... (ron) Date: Tue, 9 May 2006 05:33:26 +0200 Subject: [Gambas-user] Is the list still active? In-Reply-To: <20060508082331.A56740@...1337...> References: <20060508082331.A56740@...1337...> Message-ID: <200605090533.26713.ronstk@...239...> On Monday 08 May 2006 17:23, Christopher Brian Jack wrote: > > Just wondering since I haven't had any email coming from it for over a day > now... > This also was strange to me. Getting now many same messages with 5 hours difference. The latest are the early arived then the first send. :) Spamm is also comming on board. I think sf has mail problems somewhere. Last week my provider had email problems, no sign on the site. Today a service announcement on the site tells they wil have maintenace at a day (that day) already passed :) Ron From eilert-sprachen at ...221... Tue May 9 09:02:45 2006 From: eilert-sprachen at ...221... (Eilert) Date: Tue, 09 May 2006 09:02:45 +0200 Subject: [Gambas-user] Very strange printing problem + SHELL In-Reply-To: <200605082218.37516.gambas@...1...> References: <44586154.7070802@...221...> <200605031337.34209.benoit.minisini@...2...> <4459D28F.7060702@...221...> <200605082218.37516.gambas@...1...> Message-ID: <44603E95.6050202@...221...> Benoit Minisini schrieb: > On Thursday 04 May 2006 12:08, Eilert wrote: >> This turned out much too complicated, as my printing module is way too >> large and has many (strange) ways of printing here and there... ;-) > > It is not too complicated, it just one line of code more. In this case, unfortunately it's more than that. I tested it. Using several ways of printing for 1 print, several prints, and lists, with a copy or a second page or several pages etc. makes the printing module of my app somewhat tricky. So, for example, kprinter popped up, claimed some bug ("cannot be done this way..."), but at the same time it printed in the background, kprinter popping up several times, writing only the last page into the file and so on... :-) With the help of an access control list I could achieve that my app writes files with correct rights into its directories, so the problem seems to be solved for now. > Anyway, printing to > a printer may disappear in a next release, you will be able to only print to > a file. And other components will add support for printing and configuring > printers. In a next release of 1.0 or of 1.9? I still cannot get the 1.9 edition appear on the screen here. The last one which I got and is running without problems is 1.9.24. The problem appeared with the last two releases (I think when you introduced MDI). >> I think you know that program, we've discussed this before. I just >> wanted to tell that it still doesn't run flawlessly. > > Can you send me this application again? Not necessary anymore. Yesterday I invented a new method of handling: Now a script calls "who" every 10 seconds and writes the output into a file. My app reads this file every 10 seconds. After an hour or so, the script (!) stopped, the Gambas app continued going on, reading from the same old file again and again. So it seems to be a bug or a feature :-) of "who" to hang after so and so many calls. Currently, I'm running the script with "set -x" to watch where it might stop if it does. The system runs on full load, but both the script and my app are still running since about 8:45. Regards Rolf From dcamposf at ...626... Tue May 9 09:02:25 2006 From: dcamposf at ...626... (Daniel Campos) Date: Tue, 9 May 2006 09:02:25 +0200 Subject: [Gambas-user] TCP Server wth gb.net In-Reply-To: References: Message-ID: <7259b5ae0605090002u58b94b6ma0de065e2cd43e2b@...627...> Hi: You have a working example in the "Gambas examples" called "ServerSocket". Regards, D. Campos 2006/5/7, Michi : > > Hi. > > could anybody help me with the programming of > an TCP Server with gambas and gb.net > > The routine for accepting the connecting does > not start. A good template will help. The ones > in gambasdoc.org do not work. > > I am using gambas 2.0 which debian sarge > installed for me. > > Is it true that the Connection routine has to > be in the class file and need to named > (name of my serversocket)_Connection. > > Thanks, > bye, > Michael. > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at ...1... Tue May 9 22:29:29 2006 From: gambas at ...1... (Benoit Minisini) Date: Tue, 9 May 2006 22:29:29 +0200 Subject: [Gambas-user] Sidepanel Problem and solution In-Reply-To: <200605080645.14252.ronstk@...239...> References: <200605080645.14252.ronstk@...239...> Message-ID: <200605092229.29485.gambas@...1...> On Monday 08 May 2006 06:45, ron wrote: > Changes to SidePanel > My add/change are marked with ' and ' > Funny, I was debugging the SidePanel before you sent your mail. > 1) Add Resize event on changes the SidebPanel layout. OK. I take that. > > 2) Correction on 'RAISE PanelShow' (Bug Fix) > Orginal the properties are changed after the event instead before. > Resulting in Hidden always True, Height/Width always the same. > > Now the Width/Height and Hidden have the correct values. > The Raise PanelHidden is after modify properties so PanleShow should > be the same way The Show event is now raised after the side panel is shown. The Hide event is now raised before the side panel is hidden, for symetrical reason. The Dimension property is now read/write, and should always return an accurate value, that is independant of the hidden state. > > 3) Event transfer from FSidePanel to SidePanel event > This add the SidePanel.Resize event. > OK. > Changes are done in the source tree at > /gambas2-1.9.29/comp/src/gb.form/* > You can also put the attached files there. > With make install the are effective to use. > > Projects using SidePanel should recompiled to be safe. > I did on the menubar->properties->components deselect gb.form > and OK then the same but select gb.form and all was working. > > > In FSidePanel.form > -- 1a ---------------- > PRIVATE BUTTON_H AS Integer = Desktop.Scale > PRIVATE BUTTON_W AS Integer = 64 > > ' > EVENT roResizeF > ' > > PUBLIC SUB _new() > > $bVisible = TRUE > -- 1b ---------------- > PUBLIC SUB Form_Resize() > > RefreshPanel > ' > RAISE roResizeF > ' > END > ====================== > > -- 2 ---------------- > PUBLIC SUB btnSide_Click() > > IF ME.Parent.Design THEN RETURN > > IF $bVisible THEN > .... > RefreshPanel > RefreshArrow > panSide.Lower > > RAISE PanelHide > ELSE > > ' > ' RAISE PanelShow ' wrong property values > ' > > panSide.Raise > ME.Parent.Resize($W, $H) > $bVisible = TRUE > > RefreshPanel > RefreshArrow > ' > RAISE PanelShow ' correct property values > ' > > ENDIF > > END > > ================== > In SidePanel.class: > > -- 3 ----------------- > PRIVATE $hForm AS FSidePanel > PRIVATE $bAnimate AS Boolean > > ' > EVENT Resize > PUBLIC SUB Form_roResizeF() > RAISE Resize > END > ' > > PUBLIC SUB _new() > > $hForm = NEW FSidePanel(ME) > ================= > > > Happy fishing gambas, > > Ron Thanks for the patches. Regards, -- Benoit Minisini From iwanpc at ...626... Wed May 10 11:03:25 2006 From: iwanpc at ...626... (Iwan Prasetyo) Date: Wed, 10 May 2006 16:03:25 +0700 Subject: [Gambas-user] Serial Communication using COM Port (COM1) In-Reply-To: <20060510030652.C2803893F0@...763...> Message-ID: <000d01c67410$a37f3740$1329053d@...1439...> Dear gambas, Sorry perhaps this is an old topic but is there any way to accept and send data (e.g. text/string) from our serial (COM1)? Just like MSCOMM control in VB. Thanks in advance Regards, Iwan Prasetyo From matthias-laur at ...978... Wed May 10 11:16:51 2006 From: matthias-laur at ...978... (Matthias Laur) Date: Wed, 10 May 2006 11:16:51 +0200 Subject: AW: [Gambas-user] Serial Communication using COM Port (COM1) In-Reply-To: <000d01c67410$a37f3740$1329053d@...1439...> Message-ID: <0MKxQS-1FdkoR1Btd-0006ry@...979...> Hello Iwan, you can use the gb.net component. There is serialport control. Regards, Matthias -----Urspr?ngliche Nachricht----- Von: gambas-user-admin at lists.sourceforge.net [mailto:gambas-user-admin at lists.sourceforge.net] Im Auftrag von Iwan Prasetyo Gesendet: Mittwoch, 10. Mai 2006 11:03 An: gambas-user at lists.sourceforge.net Betreff: [Gambas-user] Serial Communication using COM Port (COM1) Dear gambas, Sorry perhaps this is an old topic but is there any way to accept and send data (e.g. text/string) from our serial (COM1)? Just like MSCOMM control in VB. Thanks in advance Regards, Iwan Prasetyo ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1077... Wed May 10 14:29:37 2006 From: gambas at ...1077... (Alex) Date: Wed, 10 May 2006 08:29:37 -0400 Subject: [Gambas-user] Databound Control Problem Message-ID: <1147264177.9969.6.camel@...37...> Hello Everybody! I was playing around with the bew Databound controls, but when I try to change any property that has a True/False fale I get a Incorect Property message. It seems like the dropdown control tries to assign a property other than True/False. When I open the FTest.form file directly in a text editor and change the property it seems to work. Thanks for any input! Alex From gambas at ...1077... Wed May 10 14:58:31 2006 From: gambas at ...1077... (Alex) Date: Wed, 10 May 2006 08:58:31 -0400 Subject: [Gambas-user] GB.PDF Message-ID: <1147265912.9969.18.camel@...37...> Hello everybody! Everytime I try to compile Gambas 1.9.29 the compilation fails at the gb.pdf component. Here is the compiler output. make[3]: Entering directory `/root/gambas2-1.9.29/gb.pdf' Making all in src make[4]: Entering directory `/root/gambas2-1.9.29/gb.pdf/src' if /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/poppler -pipe -Wall -fno-exceptions -Wno-unused-value -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT main.lo -MD -MP -MF ".deps/main.Tpo" -c -o main.lo main.cpp; \ then mv -f ".deps/main.Tpo" ".deps/main.Plo"; else rm -f ".deps/main.Tpo"; exit 1; fi mkdir .libs g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/poppler -pipe -Wall -fno-exceptions -Wno-unused-value -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT main.lo -MD -MP -MF .deps/main.Tpo -c main.cpp -fPIC -DPIC -o .libs/main.o In file included from main.cpp:28: CPdfDocument.h:35:20: error: PDFDoc.h: No such file or directory CPdfDocument.h:36:29: error: SplashOutputDev.h: No such file or directory CPdfDocument.h:37:18: error: Page.h: No such file or directory CPdfDocument.h:38:25: error: goo/GooList.h: No such file or directory main.cpp:33:26: error: GlobalParams.h: No such file or directory CPdfDocument.h:69: error: ISO C++ forbids declaration of 'PDFDoc' with no type CPdfDocument.h:69: error: expected ';' before '*' token CPdfDocument.h:70: error: ISO C++ forbids declaration of 'SplashOutputDev' with no type CPdfDocument.h:70: error: expected ';' before '*' token CPdfDocument.h:71: error: ISO C++ forbids declaration of 'Page' with no type CPdfDocument.h:71: error: expected ';' before '*' token CPdfDocument.h:72: error: ISO C++ forbids declaration of 'GooList' with no type CPdfDocument.h:72: error: expected ';' before '*' token main.cpp: In function 'int GB_INIT()': main.cpp:60: error: 'globalParams' was not declared in this scope main.cpp:62: error: expected type-specifier before 'GlobalParams' main.cpp:62: error: expected `;' before 'GlobalParams' make[4]: *** [main.lo] Error 1 make[4]: Leaving directory `/root/gambas2-1.9.29/gb.pdf/src' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/root/gambas2-1.9.29/gb.pdf' make[2]: *** [all] Error 2 make[2]: Leaving directory `/root/gambas2-1.9.29/gb.pdf' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/gambas2-1.9.29' make: *** [all] Error 2 I am running Arch Linux 0.71 Gcc 4.0.3 with the stock 2.6.16-ARCH kernel. My configure line: ./configure --prefix=/usr/ --with-qt-includes=/opt/qt/include --with-qt-libraries=/opt/qt/lib Looking thru the output it seems like its looking for some files PDFDoc.h etc. that it can't find. Do I miss some dependencies? I would really like to see this PDF component in action. Thanks, Alex From lordheavy at ...512... Wed May 10 17:11:34 2006 From: lordheavy at ...512... (Laurent Carlier) Date: Wed, 10 May 2006 17:11:34 +0200 Subject: [Gambas-user] GB.PDF In-Reply-To: <1147265912.9969.18.camel@...37...> References: <1147265912.9969.18.camel@...37...> Message-ID: <200605101711.34551.lordheavy@...512...> Le Mercredi 10 Mai 2006 14:58, Alex a ?crit?: > Hello everybody! > > I am running Arch Linux 0.71 Gcc 4.0.3 with the stock 2.6.16-ARCH > kernel. > My configure line: > > ./configure --prefix=/usr/ --with-qt-includes=/opt/qt/include > --with-qt-libraries=/opt/qt/lib > > Looking thru the output it seems like its looking for some files > PDFDoc.h etc. that it can't find. Do I miss some dependencies? > I would really like to see this PDF component in action. > Thanks, > > Alex > Perhaps because you have libpoppler >= 0.5 ? Regards, -- jabber : lordheavy at ...943... mail : lordheavymREMOVEME at ...626... From gambas at ...1... Wed May 10 19:56:40 2006 From: gambas at ...1... (Benoit Minisini) Date: Wed, 10 May 2006 19:56:40 +0200 Subject: [Gambas-user] Databound Control Problem In-Reply-To: <1147264177.9969.6.camel@...37...> References: <1147264177.9969.6.camel@...37...> Message-ID: <200605101956.40399.gambas@...1...> On Wednesday 10 May 2006 14:29, Alex wrote: > Hello Everybody! > > I was playing around with the bew Databound controls, but when I try to > change any property that has a True/False fale I get a Incorect Property > message. It seems like the dropdown control tries to assign a property > other than True/False. > When I open the FTest.form file directly in a text editor and change the > property it seems to work. > > Thanks for any input! > > Alex > You have to apply the 1.9.29 patch you will find on this mailing-list, or wait a little. I will release 1.9.30 soon. Regards, -- Benoit Minisini From ronstk at ...239... Wed May 10 20:03:34 2006 From: ronstk at ...239... (ron) Date: Wed, 10 May 2006 20:03:34 +0200 Subject: [Gambas-user] Databound Control Problem In-Reply-To: <1147264177.9969.6.camel@...37...> References: <1147264177.9969.6.camel@...37...> Message-ID: <200605102003.35254.ronstk@...239...> On Wednesday 10 May 2006 14:29, Alex wrote: > Hello Everybody! > > I was playing around with the bew Databound controls, but when I try to > change any property that has a True/False fale I get a Incorect Property > message. It seems like the dropdown control tries to assign a property > other than True/False. > When I open the FTest.form file directly in a text editor and change the > property it seems to work. > > Thanks for any input! > > Alex > > Search mail list for message "Stupid bug in 1.9.29" In that tread there is a patch "gbx_value.c" place that in /gambas2-1.9.29/main/gbx Recompile and install as usual. Did fix the problem here. CHECK you are using gambas2-1.9.29 !!! Just include in case you can't find the mail Ron -------------- next part -------------- A non-text attachment was scrubbed... Name: gbx_value.c Type: text/x-csrc Size: 25987 bytes Desc: not available URL: From ronstk at ...239... Wed May 10 20:16:13 2006 From: ronstk at ...239... (ron) Date: Wed, 10 May 2006 20:16:13 +0200 Subject: [Gambas-user] Drawing Control Message-ID: <200605102016.13633.ronstk@...239...> Please check this control before .30 release. DrawingArea1_DragMove() does not work here See list for : Drawingarea.tracking Second when i get other events from it during DragNDrop they are the x/y position from the control where I did start the drag. I need the x/y place of the drop to put the dropped content at that place. (or gridcell I want the dragged content goes into.) The .drag start can save the mouse x/y at the moment the drag start. Drawing a line between the start drag x/y and drop x/y was posible in the past. Grts Ron From ronstk at ...239... Wed May 10 20:19:47 2006 From: ronstk at ...239... (ron) Date: Wed, 10 May 2006 20:19:47 +0200 Subject: [Gambas-user] GB.PDF In-Reply-To: <1147265912.9969.18.camel@...37...> References: <1147265912.9969.18.camel@...37...> Message-ID: <200605102019.48078.ronstk@...239...> On Wednesday 10 May 2006 14:58, Alex wrote: > Hello everybody! > > Everytime I try to compile Gambas 1.9.29 the compilation fails at the > gb.pdf component. Here is the compiler output. ----8<-- > My configure line: > > ./configure --prefix=/usr/ --with-qt-includes=/opt/qt/include > --with-qt-libraries=/opt/qt/lib > > Looking thru the output it seems like its looking for some files > PDFDoc.h etc. that it can't find. Do I miss some dependencies? > I would really like to see this PDF component in action. > Thanks, > > Alex > It needs 'poppler' and 'poppler-devel' . Look at the gambas sourceforge site for minimum version info. (1.5 or higher I'm not sure) Ron From gambas at ...1... Wed May 10 22:53:09 2006 From: gambas at ...1... (Benoit Minisini) Date: Wed, 10 May 2006 22:53:09 +0200 Subject: [Gambas-user] Drawing Control In-Reply-To: <200605102016.13633.ronstk@...239...> References: <200605102016.13633.ronstk@...239...> Message-ID: <200605102253.09193.gambas@...1...> On Wednesday 10 May 2006 20:16, ron wrote: > Please check this control before .30 release. > DrawingArea1_DragMove() does not work here That works here. > > See list for : Drawingarea.tracking > > Second when i get other events from it during DragNDrop they > are the x/y position from the control where I did start the drag. There Drag.X and Drag.Y work as expected, and return the position relative to the DrawingArea. Send me a project please... > > I need the x/y place of the drop to put the dropped content at that place. > (or gridcell I want the dragged content goes into.) > > The .drag start can save the mouse x/y at the moment the drag > start. Drawing a line between the start drag x/y and drop x/y was posible > in the past. > > Grts > > Ron > > Regards, -- Benoit Minisini From arno at ...1440... Wed May 10 23:43:22 2006 From: arno at ...1440... (Arno Nuyts) Date: Wed, 10 May 2006 23:43:22 +0200 Subject: [Gambas-user] A variable in a variable Message-ID: Hello, I'm a new user of Gambas and just discovering it's language. I'm doing a simple project but came to my first problem that I couldn't solve with the documentation in the wiki. I want to include a variable in the name of a variable. I've searched for it in a forum and there it was said it couldn't be done. Is this true and if so, are there work arounds? In PHP it's written like this $var = "Variable" $in = "ar" if($v$in == Variable) { echo"expected"; } Greetings, Arno -------------- next part -------------- An HTML attachment was scrubbed... URL: From pvera at ...729... Thu May 11 00:28:01 2006 From: pvera at ...729... (Pablo Vera) Date: Wed, 10 May 2006 17:28:01 -0500 Subject: [Gambas-user] A variable in a variable In-Reply-To: References: Message-ID: <446268F1.20604@...729...> You could do something like this: -------------------------------------------------- DIM var AS String DIM bar AS String DIM Context AS NEW Collection DIM S AS String var = "some value" bar = "other value" Context["var"] = var Context["bar"] = bar S = "v" Result = Eval(S & "ar", Context) S = "b" Result = Eval(S & "ar", Context) -------------------------------------------------- Saludos, Pablo Vera Arno Nuyts wrote: > Hello, > I'm a new user of Gambas and just discovering it's language. I'm doing a > simple project but came to my first problem that I couldn't solve with > the documentation in the wiki. > I want to include a variable in the name of a variable. I've searched > for it in a forum and there it was said it couldn't be done. Is this > true and if so, are there work arounds? > In PHP it's written like this > > $var = "Variable" > $in = "ar" > if($v$in == Variable) { > echo"expected"; > } > > Greetings, > > Arno > From ronstk at ...239... Thu May 11 01:01:25 2006 From: ronstk at ...239... (ron) Date: Thu, 11 May 2006 01:01:25 +0200 Subject: [Gambas-user] Drawing Control In-Reply-To: <200605102253.09193.gambas@...1...> References: <200605102016.13633.ronstk@...239...> <200605102253.09193.gambas@...1...> Message-ID: <200605110101.25876.ronstk@...239...> On Wednesday 10 May 2006 22:53, Benoit Minisini wrote: > On Wednesday 10 May 2006 20:16, ron wrote: > > Please check this control before .30 release. > > DrawingArea1_DragMove() does not work here > > That works here. > > > > > See list for : Drawingarea.tracking > > > > Second when i get other events from it during DragNDrop they > > are the x/y position from the control where I did start the drag. > > There Drag.X and Drag.Y work as expected, and return the position relative to > the DrawingArea. Ooops, slap my head. Haven't see the Drag.X and Drag.Y :( > > Send me a project please... > shame, shame, so you can see my dirty programming :) > > > > I need the x/y place of the drop to put the dropped content at that place. > > (or gridcell I want the dragged content goes into.) > > > > The .drag start can save the mouse x/y at the moment the drag > > start. Drawing a line between the start drag x/y and drop x/y was posible > > in the past. > > > > Grts > > > > Ron > > > > > > Regards, > Thank for comment, Have tomorrow a great job todo to correct my fault. Ron From erwinpogz at ...43... Thu May 11 07:56:56 2006 From: erwinpogz at ...43... (Erwin Pogz) Date: Wed, 10 May 2006 22:56:56 -0700 (PDT) Subject: [Gambas-user] inquiry about grouping Message-ID: <20060511055656.16179.qmail@...1441...> Hello guys, If im having a group ug TextBox named "txtGroup" each text box named: txtBox1 txtBox2 txtBox3 ... upto txtBox100 how can i loop on each control to set the forecolor property? Or is there any quick way to do it? Best Regards, Erwin __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From wguenzl at ...1442... Thu May 11 08:01:28 2006 From: wguenzl at ...1442... (Werner Guenzl) Date: Thu, 11 May 2006 08:01:28 +0200 Subject: [Gambas-user] Please remove me from list Message-ID: <4462D338.3040809@...1442...> Hi, please remove me from list. Werner. From joe1962 at ...626... Thu May 11 08:10:17 2006 From: joe1962 at ...626... (Jose J. Rodriguez) Date: Thu, 11 May 2006 02:10:17 -0400 Subject: [Gambas-user] inquiry about grouping In-Reply-To: <20060511055656.16179.qmail@...1441...> References: <20060511055656.16179.qmail@...1441...> Message-ID: <6c208f950605102310k57fec7bfr8dc8f48ebb122a22@...627...> On 5/11/06, Erwin Pogz wrote: > Hello guys, If im having a group ug TextBox named "txtGroup" each text box > named: txtBox1 txtBox2 txtBox3 ... upto txtBox100 how can i loop on each > control to set the forecolor property? Or is there any quick way to do it? > Best Regards, Erwin > That's something I'd love to be able to do as well, but it doesn't seem to work. Regards, Joe1962 From ronstk at ...239... Thu May 11 08:22:12 2006 From: ronstk at ...239... (ron) Date: Thu, 11 May 2006 08:22:12 +0200 Subject: [Gambas-user] inquiry about grouping In-Reply-To: <20060511055656.16179.qmail@...1441...> References: <20060511055656.16179.qmail@...1441...> Message-ID: <200605110822.13073.ronstk@...239...> On Thursday 11 May 2006 07:56, Erwin Pogz wrote: > > Hello guys, If im having a group ug TextBox named "txtGroup" each text box named: txtBox1 txtBox2 txtBox3 ... upto txtBox100 how can i loop on each control to set the forecolor property? Or is there any quick way to do it? Best Regards, Erwin > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com Try this dim ctrl as control for each ctrl in txtGroup ctrl.forecolor=red next (not tested, this or something like this should work) Ron From ronstk at ...239... Thu May 11 08:28:33 2006 From: ronstk at ...239... (ron) Date: Thu, 11 May 2006 08:28:33 +0200 Subject: [Gambas-user] inquiry about grouping In-Reply-To: <20060511055656.16179.qmail@...1441...> References: <20060511055656.16179.qmail@...1441...> Message-ID: <200605110828.33468.ronstk@...239...> On Thursday 11 May 2006 07:56, Erwin Pogz wrote: > > Hello guys, If im having a group ug TextBox named "txtGroup" each text box named: txtBox1 txtBox2 txtBox3 ... upto txtBox100 how can i loop on each control to set the forecolor property? Or is there any quick way to do it? Best Regards, Erwin > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com Second way if no other textbox on form outside the group dim ctrl as control for each ctrl in me.children if object.type(ctrl)="TextBox" then ... ctrl.forecolor = color.red ... end if if object.type(ctrl)= "Label" then ctrl.border = border.none endif next I use this method in one of my forms Ron From ronstk at ...239... Thu May 11 09:08:04 2006 From: ronstk at ...239... (ron) Date: Thu, 11 May 2006 09:08:04 +0200 Subject: [Gambas-user] Request GridView Message-ID: <200605110908.04823.ronstk@...239...> Do you have time to add GridView.Find(x as integer, y as Integer) ? This is a nice function on ListView, TreeView and ColumnView. I like to have GridView.Find(Drag.X, Drag.Y) too. Groeten uit zonnig Holland Ron From msumurph at ...626... Thu May 11 14:03:01 2006 From: msumurph at ...626... (Allen Murphy) Date: Thu, 11 May 2006 08:03:01 -0400 Subject: [Gambas-user] inquiry about grouping In-Reply-To: <20060511055656.16179.qmail@...1441...> References: <20060511055656.16179.qmail@...1441...> Message-ID: <4d1057440605110503p5ef678ay4923ba02d178f791@...627...> I have used an Object[] array to accomplish something similar to what you are looking for: DIM arTextboxes AS Object[] DIM tempTB as TextBox DIM i AS Integer FOR i = 0 TO 99 tempTB = NEW TextBox AS "txtGroup" tempTB.Text = "Textbox number " & Str(i) tempTB.ForeColor = Color.Green arTextBoxes.Add(tempTB) NEXT FOR i = 0 TO 99 Print arTextBoxes[i].Text NEXT I use the array to deal with properties of the text boxes and the name "txtGroup" to deal with events (LAST returns the object that raised the event). Allen On 5/11/06, Erwin Pogz wrote: > > Hello guys, If im having a group ug TextBox named "txtGroup" each text box named: txtBox1 txtBox2 txtBox3 ... upto txtBox100 how can i loop on each control to set the forecolor property? Or is there any quick way to do it? Best Regards, Erwin > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at ...1... Thu May 11 18:48:15 2006 From: gambas at ...1... (Benoit Minisini) Date: Thu, 11 May 2006 18:48:15 +0200 Subject: [Gambas-user] Request GridView In-Reply-To: <200605110908.04823.ronstk@...239...> References: <200605110908.04823.ronstk@...239...> Message-ID: <200605111848.15189.gambas@...1...> On Thursday 11 May 2006 09:08, ron wrote: > Do you have time to add GridView.Find(x as integer, y as Integer) ? > This is a nice function on ListView, TreeView and ColumnView. > > I like to have GridView.Find(Drag.X, Drag.Y) too. > > Groeten uit zonnig Holland > > Ron > Please try this patch, and tell me the result. GridView.Find(X, Y) will return FALSE if a cell is found, and then GridView.Item will return the cell at the (X, Y) coordinates. Regards, -- Benoit Minisini -------------- next part -------------- A non-text attachment was scrubbed... Name: CGridView.cpp Type: text/x-c++src Size: 17079 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: CGridView.h Type: text/x-c++hdr Size: 2850 bytes Desc: not available URL: From ronstk at ...239... Thu May 11 21:42:57 2006 From: ronstk at ...239... (ron) Date: Thu, 11 May 2006 21:42:57 +0200 Subject: [Gambas-user] Request GridView In-Reply-To: <200605111848.15189.gambas@...1...> References: <200605110908.04823.ronstk@...239...> <200605111848.15189.gambas@...1...> Message-ID: <200605112142.58201.ronstk@...239...> On Thursday 11 May 2006 18:48, Benoit Minisini wrote: > On Thursday 11 May 2006 09:08, ron wrote: > > Do you have time to add GridView.Find(x as integer, y as Integer) ? > > This is a nice function on ListView, TreeView and ColumnView. > > > > I like to have GridView.Find(Drag.X, Drag.Y) too. > > > > Groeten uit zonnig Holland > > > > Ron > > > > Please try this patch, and tell me the result. > > GridView.Find(X, Y) will return FALSE if a cell is found, and then > GridView.Item will return the cell at the (X, Y) coordinates. > > Regards, > It looks to me perfect working. My part of code using it now: 'IF GridViewFind(drag.x, drag.y) THEN RETURN IF grdFields.Find(drag.x, drag.y) THEN RETURN <----- :) :) row = grdFields.Row col = grdFields.Column lv = drag.source kv = Split(lv.Current.Key, "/") sDB = kv[0] sTBL = kv[1] sFLD = kv[2] GridColIns(grdFields.Column) grdFields[0, col].Text = sTBL grdFields[1, col].Text = sFLD As you an see my gambas code was emulating it and can now be dropped. The .Row is not used here but I did check by putting it in spare texbox I did check also the .Item and this is also working as expected. row = grdfields.Item.Row col = grdfields.Item.Column Thanks very much, I'm happy Ron From stefanopalmeri at ...152... Thu May 11 15:45:05 2006 From: stefanopalmeri at ...152... (Stefano Palmeri) Date: Thu, 11 May 2006 15:45:05 +0200 Subject: [Gambas-user] about IsFloat and IsInteger behaviour... Message-ID: <200605111545.05692.stefanopalmeri@...152...> Hi all. It's a lot of time from my mathematics studies at school, so excuse the stupid question... Please, could someone explain to me this Gambas behaviour? ------------------------------ PRINT IsFloat (Int(4 / 2)) --> True ? PRINT IsFloat(2) --> False ------------------------------ ------------------------------ PRINT IsInteger(3.5) --> False PRINT IsInteger(Int(3.5)) --> False ? ------------------------------ Thanks in advance for any answer. Regards, Stefano Palmeri Gambas 1.0.14 Gambas 1.9.28 From stefanopalmeri at ...152... Fri May 12 00:51:58 2006 From: stefanopalmeri at ...152... (Stefano Palmeri) Date: Fri, 12 May 2006 00:51:58 +0200 Subject: [Gambas-user] Italian special chars bug? Message-ID: <200605120051.58733.stefanopalmeri@...152...> Hi, all. Hi, Benoit. After hours of wondering why in certain Gambas2 projects I was able to type "? ? ? ? ? ?" and in some other I wasn't, I finally discovered the reason. If in a Gambas2 project I add the component "gb.qt.ext", then I'm not able to type in the editor those Italian special chars (look at attached bad.jpg) and I get instead funny chars. If I remove from the project properties the "gb.qt.ext" component and restart Gambas2, then I'm able to see and type the special chars (good.jpg). No problem with this component in the stable Gambas. To the Italians in the list: please, try to add the gb.qt.ext component to a project, then restart Gambas2 and re-open the project: see if your are able to type "? ? ? ? ? ?". (To know if this is a general problem or a problem of mine - thanks). Gambas2 1.9.28 Qt 3.3.2 KDE 3.4.2 Regards, Stefano Palmeri -------------- next part -------------- A non-text attachment was scrubbed... Name: bad.jpg Type: image/jpeg Size: 10279 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: good.jpg Type: image/jpeg Size: 10167 bytes Desc: not available URL: From leonardo at ...1237... Fri May 12 01:09:29 2006 From: leonardo at ...1237... (Leonardo Miliani) Date: Fri, 12 May 2006 01:09:29 +0200 Subject: [Gambas-user] How to create SDI Gambas Message-ID: <4463C429.5030603@...1237...> I buied a notebook some days ago and I installed Gambas 1.9.29 on it. But I don't remember how to create the SDI version of gambas2. I created it on my desktop PC but I don't remember the way I did it.. -- Ciao. Leo Visita il mio sito personale: www.leonardomiliani.com e-mail: leonardo at ...1237... From stefanopalmeri at ...152... Fri May 12 01:52:35 2006 From: stefanopalmeri at ...152... (Stefano Palmeri) Date: Fri, 12 May 2006 01:52:35 +0200 Subject: [Gambas-user] How to create SDI Gambas In-Reply-To: <4463C429.5030603@...1237...> References: <4463C429.5030603@...1237...> Message-ID: <200605120152.36128.stefanopalmeri@...152...> Alle 01:09, venerd? 12 maggio 2006, Leonardo Miliani ha scritto: > I buied a notebook some days ago and I installed Gambas 1.9.29 on it. > But I don't remember how to create the SDI version of gambas2. I created > it on my desktop PC but I don't remember the way I did it.. > > -- > Ciao. > Leo > Hi. open the project "Gambas2-1.9.28/app/src/gambas2-old" and compile it like other Gambas projects. Bye, Stefano From briedw02 at ...1366... Fri May 12 05:40:29 2006 From: briedw02 at ...1366... (Brian Edwards) Date: Fri, 12 May 2006 13:40:29 +1000 Subject: [Gambas-user] Problem with printing picture in executable Message-ID: <446403AD.3090402@...1366...> Hi, I am a new Gambas user and have just written a nice Address Book program to demonstrate the use of databases using SQLite. It has been quite a learning experience but all is working very nicely except for one problem. Each year my with and I send dozens of Christmas Cards and I have included a routine to extract all contacts to whom we send Christmas Cards and print out labels for with a little picture of holly an bell in the top right corner. This works perfectly running the program from the Gambas IDE but fails when I try to run it as a standalone executable. I get 13[Null object] failure message. Note the executable prints out normal labels without the picture. The picture path is the same as the executable and is ./picture name. I thought this should work OK as I can open the database using ./databasename. What am I doing wrong? The labelPrint() subroutine is attached. Apart from this I am having great fun. Brian -- Brian Edwards Tewantin Queensland Australia Margaret and Brian's Home Pages are at http://users.bigpond.net.au/marbri/ -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: labelPrint()~ URL: From timothy.marshal-nichols at ...247... Fri May 12 10:32:13 2006 From: timothy.marshal-nichols at ...247... (Timothy Marshal-Nichols) Date: Fri, 12 May 2006 09:32:13 +0100 Subject: [Gambas-user] Problem with printing picture in executable In-Reply-To: <446403AD.3090402@...1366...> Message-ID: You have this for the picture path: pXmas = Picture["./jingle_bells_01.png"] If the file "jingle_bells_01.png" in inside the project directory the use this: pXmas = Picture["jingle_bells_01.png"] Thanks 8-{)} Timothy Marshal-Nichols > -----Original Message----- > From: gambas-user-admin at lists.sourceforge.net > [mailto:gambas-user-admin at lists.sourceforge.net]On Behalf Of Brian > Edwards > Sent: Friday, 12 May 2006 04:40 > To: gambas-user at lists.sourceforge.net > Subject: [Gambas-user] Problem with printing picture in executable > > > Hi, > > I am a new Gambas user and have just written a nice Address Book program > to demonstrate the use of databases using SQLite. > > It has been quite a learning experience but all is working very nicely > except for one problem. Each year my with and I send dozens of Christmas > Cards and I have included a routine to extract all contacts to whom we > send Christmas Cards and print out labels for with a little picture of > holly an bell in the top right corner. > > This works perfectly running the program from the Gambas IDE but fails > when I try to run it as a standalone executable. > > I get 13[Null object] failure message. > > Note the executable prints out normal labels without the picture. > > The picture path is the same as the executable and is ./picture name. > > I thought this should work OK as I can open the database using > ./databasename. > > What am I doing wrong? > > The labelPrint() subroutine is attached. > > Apart from this I am having great fun. > > Brian > > -- > Brian Edwards > > Tewantin > Queensland Australia > > > Margaret and Brian's Home Pages are at > > http://users.bigpond.net.au/marbri/ > > > From briedw02 at ...1366... Fri May 12 13:48:13 2006 From: briedw02 at ...1366... (Brian Edwards) Date: Fri, 12 May 2006 21:48:13 +1000 Subject: [Gambas-user] Problem with printing picture in executable In-Reply-To: References: Message-ID: <446475FD.7030001@...1366...> Timothy Marshal-Nichols wrote: > You have this for the picture path: > > pXmas = Picture["./jingle_bells_01.png"] > > If the file "jingle_bells_01.png" in inside the project directory the use > this: > > pXmas = Picture["jingle_bells_01.png"] > > Thanks > > 8-{)} Timothy Marshal-Nichols > > > Thank you - everything works OK now Brian -- Brian Edwards Tewantin Queensland Australia Margaret and Brian's Home Pages are at http://users.bigpond.net.au/marbri/ From gambas at ...1... Fri May 12 21:32:23 2006 From: gambas at ...1... (Benoit Minisini) Date: Fri, 12 May 2006 21:32:23 +0200 Subject: [Gambas-user] Problem with printing picture in executable In-Reply-To: <446475FD.7030001@...1366...> References: <446475FD.7030001@...1366...> Message-ID: <200605122132.23527.gambas@...1...> On Friday 12 May 2006 13:48, Brian Edwards wrote: > Timothy Marshal-Nichols wrote: > > You have this for the picture path: > > > > pXmas = Picture["./jingle_bells_01.png"] > > > > If the file "jingle_bells_01.png" in inside the project directory the use > > this: > > > > pXmas = Picture["jingle_bells_01.png"] > > > > Thanks > > > > 8-{)} Timothy Marshal-Nichols > > > > Thank you - everything works OK now > > Brian The next development version will understand "./" and "../" in relative paths as expected, i.e. "./toto.jpg" will be equivalent to "toto.jpg". Regards, -- Benoit Minisini From maillists at ...1367... Fri May 12 17:58:29 2006 From: maillists at ...1367... (GuruLounge - MailLists) Date: Fri, 12 May 2006 08:58:29 -0700 Subject: [Gambas-user] Problem with printing picture in executable In-Reply-To: <446403AD.3090402@...1366...> References: <446403AD.3090402@...1366...> Message-ID: <1147449509.20704.0.camel@...1368...> Brian, You should include your Gambas version and platform. Jeff On Fri, 2006-05-12 at 13:40 +1000, Brian Edwards wrote: > Hi, > > I am a new Gambas user and have just written a nice Address Book program > to demonstrate the use of databases using SQLite. > > It has been quite a learning experience but all is working very nicely > except for one problem. Each year my with and I send dozens of Christmas > Cards and I have included a routine to extract all contacts to whom we > send Christmas Cards and print out labels for with a little picture of > holly an bell in the top right corner. > > This works perfectly running the program from the Gambas IDE but fails > when I try to run it as a standalone executable. > > I get 13[Null object] failure message. > > Note the executable prints out normal labels without the picture. > > The picture path is the same as the executable and is ./picture name. > > I thought this should work OK as I can open the database using > ./databasename. > > What am I doing wrong? > > The labelPrint() subroutine is attached. > > Apart from this I am having great fun. > > Brian > > plain text document attachment (labelPrint()~) > '********************************************************************************************** > > > PUBLIC SUB labelPrint(txtQuery AS String, txtXmas AS String) > 'txtQuery is the sql function and txtXmas is to let this sub > 'know that it is printing Xmas labels > > DIM rData AS Result > DIM intContactNo AS Integer 'the total number of contact labels to print > DIM iNd AS Integer 'a counter index > DIM iSt AS Integer 'is label number - 14 labels per page > DIM iSt01 AS Integer 'is label row counter - 2 columns of 7 rows > DIM iR AS Integer 'printing position from left on page > DIM iT AS Integer 'printing position from top of page > DIM tName AS String 'string to concatenate name > DIM tState AS String 'string to concatenate state and poscode > DIM pXmas AS Picture ' jingle bells picture > > > > rData = $hConn.Exec(txtQuery) 'run the query > > Picture["./jingle_bells_01.png"] = pXmas 'I don't think this does anything > pXmas = Picture["./jingle_bells_01.png"] ' gets the picture > > iSt = 1 'start printing at label 1 - column 1, row 1 > > intContactNo = rdata.Count 'how many labels > rData.MoveFirst 'get the first > > IF Printer.Setup() THEN RETURN 'setup the printer > > Draw.Begin(Printer) ' Initializes the draw > > Draw.Font.Name = "Times New Roman" 'selects the font > > FOR iNd = 1 TO intContactNo STEP 1 'printing loop start > > IF iSt > 1 THEN 'begin checking which label to print > > IF iSt MOD 14 = 1 AND iSt <> 1 THEN 'check if it is greater that 14 > PRINTER.NewPage 'and if so print new page > iSt = 1 'and also reset the lable number counter > END IF > END IF > > tName = (rData["title"] &" " & rData["given01"] & " " & rdata["surname"]) 'concatenate the names > 'and make it look pretty if there is no title > IF rData["title"] = "" THEN tName = ( rData["given01"] & " " & rdata["surname"]) > > > tState = (rData["state"] &" " & rData["postcode"])'concatenate state and postcode > > 'Set the Initial Left(iR) and Top(iT) Margins at 21mm - 1 = 0.042mm > iR = 500 > iT = 500 > > 'Calculate horizontal position of Start Label. If the RHS one set Left Margin to 126mm > > IF (iSt MOD 2 = 0) THEN iR = 3000 > > 'Calculate verticle positon of Label- label height = 37mm > > iSt01 = Int ((iSt-1)/2) > IF iSt > 2 THEN iT = (500 + iSt01*880) > > 'If its Xmas print jingle bells at top right of label > > IF txtXmas = "y" THEN > Draw.Picture(pXmas, iR + 1600 ,iT) > END IF > > 'print address > > Draw.Text(tName, iR,iT) > iT = iT + 120 'new line > Draw.Text(rData["street01"],iR,iT) > iT = iT + 120 > IF rData["street02"] <> "" THEN 'some addresses don't have two streets > Draw.Text(rData["street02"], iR, iT) > iT = iT + 120 > END IF > Draw.Text(rData["city"], iR, iT) > iT = iT + 120 > Draw.Text(tState, iR, iT) > iT = iT + 120 > Draw.Text(rdata["country"], iR, iT) > iT = It + 120 > > iSt = iSt + 1 'increment label number > > rData.MoveNext ' get next contact > > NEXT > > 'when all contacts processed print page > > Draw.End > END > > '********************************************************************************************** > > PUBLIC SUB BtnXmas_Click() > > labelPrint("select * from Table01 where xmas = 'y'order by surname","y") > > END > -- .^. /V\ /( )\ ^^-^^ Linux Advocate From laxminarayan at ...1434... Sat May 13 06:32:49 2006 From: laxminarayan at ...1434... (Laxminarayan G Kamath A) Date: Sat, 13 May 2006 10:02:49 +0530 Subject: [Gambas-user] Problem with printing picture in executable In-Reply-To: <200605122132.23527.gambas@...1...> References: <446475FD.7030001@...1366...> <200605122132.23527.gambas@...1...> Message-ID: <44656171.2060403@...1434...> On 05/13/06 01:02, Benoit Minisini wrote: >The next development version will understand "./" and "../" in relative paths >as expected, i.e. "./toto.jpg" will be equivalent to "toto.jpg". > > > http://freshmeat.net/projects/getabspath/ You using this? -- Laxminarayan G Kamath A laxminarayan at ...1434... From gambas at ...1... Sat May 13 12:44:08 2006 From: gambas at ...1... (Benoit Minisini) Date: Sat, 13 May 2006 12:44:08 +0200 Subject: [Gambas-user] Problem with printing picture in executable In-Reply-To: <44656171.2060403@...1434...> References: <200605122132.23527.gambas@...1...> <44656171.2060403@...1434...> Message-ID: <200605131244.08789.gambas@...1...> On Saturday 13 May 2006 06:32, Laxminarayan G Kamath A wrote: > On 05/13/06 01:02, Benoit Minisini wrote: > >The next development version will understand "./" and "../" in relative > > paths as expected, i.e. "./toto.jpg" will be equivalent to "toto.jpg". > > http://freshmeat.net/projects/getabspath/ > You using this? Absolutely not. In Gambas, a relative path points at a file inside the executable. Until recently, the interpreter didn't interpret "." and "..", and so "./toto.jpg" and "toto.jpg" were two different files. Regards, -- Benoit Minisini From arcalis.prod at ...11... Sat May 13 14:47:50 2006 From: arcalis.prod at ...11... (fabien Bodard) Date: Sat, 13 May 2006 14:47:50 +0200 Subject: [Gambas-user] Problem with printing picture in executable In-Reply-To: <200605131244.08789.gambas@...1...> References: <44656171.2060403@...1434...> <200605131244.08789.gambas@...1...> Message-ID: <200605131447.51099.arcalis.prod@...11...> Le Saturday 13 Mai 2006 12:44, Benoit Minisini a ?crit?: > On Saturday 13 May 2006 06:32, Laxminarayan G Kamath A wrote: > > On 05/13/06 01:02, Benoit Minisini wrote: > > >The next development version will understand "./" and "../" in relative > > > paths as expected, i.e. "./toto.jpg" will be equivalent to "toto.jpg". > > > > http://freshmeat.net/projects/getabspath/ > > You using this? > > Absolutely not. > > In Gambas, a relative path points at a file inside the executable. Until > recently, the interpreter didn't interpret "." and "..", and so > "./toto.jpg" and "toto.jpg" were two different files. > > Regards, And what about a thing like : Application.path &/ "../mypath" (/lib/bin/../share/mypath) for exemple I know it's not really usefull but.... fabien From ronstk at ...239... Sat May 13 14:46:08 2006 From: ronstk at ...239... (ron) Date: Sat, 13 May 2006 14:46:08 +0200 Subject: [Gambas-user] Wish: image path from project tree Message-ID: <200605131446.09247.ronstk@...239...> I add simple code in FMain to be able to get the path of a image/object in the Data directory. This is done to get the path of the object and able to paste it in the editor code. Note: the .Visible property is not what is should be in logical sence seen as the other above it but it looks that it works then only 1 time. :( I did need a quick working method and this do the job. :) Patch and code below ------------------------------------------------ in FMain.form { mnuPopup Menu ... { mnuPropertyFile Menu Text = ("&Properties...") Picture = Picture["img/16/sheet.png"] } { mnuCopyPath Menu Text = ("CopyPath") Picture = Picture["img/16/text.png"] } } the entry 'mnuCopyPath' (4 lines using menu editor) ------------------------------------------------ in FMain.class in PUBLIC SUB mnuPopup_Show() bFile = (NOT Project.IsClassName(sCurrent)) AND bCurrent mnuCut.Visible = mnuCut.Visible AND (bFile AND NOT IsDir($sKey)) mnuCopy.Visible = mnuCopy.Visible AND (bFile AND NOT IsDir($sKey)) mnuPaste.Visible = mnuPaste.Visible AND (bFile OR $sKey = Project.KEY_MISC) AND Clipboard.Format = FILE_CLIPBOARD_FORMAT ' mnuCopyPath.Visible = mnuCopy.Visible ' mnuAddForm.Visible = Project.AllowForm() then part ------------------------------------------------ in FMain.class a subroutine just below the 'mnuCopy_Click()' ' PUBLIC SUB mnuCopyPath_Click() DIM sPath AS String sPath = GetCurrent() sPath = Mid$(sPath, Len(project.Dir) + 2) Clipboard.Copy(sPath, "text/plain") 'FILE_CLIPBOARD_FORMAT) END ' ------------------------------------------------ Smiling, Ron From gambas at ...1... Sat May 13 20:11:20 2006 From: gambas at ...1... (Benoit Minisini) Date: Sat, 13 May 2006 20:11:20 +0200 Subject: [Gambas-user] Problem with printing picture in executable In-Reply-To: <200605131447.51099.arcalis.prod@...11...> References: <200605131244.08789.gambas@...1...> <200605131447.51099.arcalis.prod@...11...> Message-ID: <200605132011.20257.gambas@...1...> On Saturday 13 May 2006 14:47, fabien Bodard wrote: > Le Saturday 13 Mai 2006 12:44, Benoit Minisini a ?crit?: > > On Saturday 13 May 2006 06:32, Laxminarayan G Kamath A wrote: > > > On 05/13/06 01:02, Benoit Minisini wrote: > > > >The next development version will understand "./" and "../" in > > > > relative paths as expected, i.e. "./toto.jpg" will be equivalent to > > > > "toto.jpg". > > > > > > http://freshmeat.net/projects/getabspath/ > > > You using this? > > > > Absolutely not. > > > > In Gambas, a relative path points at a file inside the executable. Until > > recently, the interpreter didn't interpret "." and "..", and so > > "./toto.jpg" and "toto.jpg" were two different files. > > > > Regards, > > And what about a thing like : > > Application.path &/ "../mypath" > > (/lib/bin/../share/mypath) for exemple > > > I know it's not really usefull but.... > > fabien > That is an absolute path. I was talking about relative paths, which are managed differently by Gambas than by the operating system. Regards, -- Benoit Minisini From gambas at ...1... Sat May 13 20:16:37 2006 From: gambas at ...1... (Benoit Minisini) Date: Sat, 13 May 2006 20:16:37 +0200 Subject: [Gambas-user] Italian special chars bug? In-Reply-To: <200605120051.58733.stefanopalmeri@...152...> References: <200605120051.58733.stefanopalmeri@...152...> Message-ID: <200605132016.37231.gambas@...1...> On Friday 12 May 2006 00:51, Stefano Palmeri wrote: > Hi, all. Hi, Benoit. > > After hours of wondering why in certain Gambas2 projects I was able to type > "? ? ? ? ? ?" and in some other I wasn't, I finally discovered the reason. > > If in a Gambas2 project I add the component "gb.qt.ext", then I'm not > able to type in the editor those Italian special chars (look at attached > bad.jpg) and I get instead funny chars. > > If I remove from the project properties the "gb.qt.ext" component and > restart Gambas2, then I'm able to see and type the special chars > (good.jpg). > > No problem with this component in the stable Gambas. > > To the Italians in the list: please, try to add the gb.qt.ext component to > a project, then restart Gambas2 and re-open the project: see if your are > able to type "? ? ? ? ? ?". (To know if this is a general problem or a > problem of mine - thanks). > > Gambas2 1.9.28 > Qt 3.3.2 > KDE 3.4.2 > > Regards, > > Stefano Palmeri Very strange... 1) I couldn't reproduce the problem. 2) If you add any component to a project, this won't change anything in the IDE, so there is no reason why characters should change. 3) Moreover, everything is stored in UTF-8, so please check that the contents of your source files were not changed by something other. Regards, -- Benoit Minisini From gambas at ...1... Sat May 13 20:18:46 2006 From: gambas at ...1... (Benoit Minisini) Date: Sat, 13 May 2006 20:18:46 +0200 Subject: [Gambas-user] about IsFloat and IsInteger behaviour... In-Reply-To: <200605111545.05692.stefanopalmeri@...152...> References: <200605111545.05692.stefanopalmeri@...152...> Message-ID: <200605132018.46560.gambas@...1...> On Thursday 11 May 2006 15:45, Stefano Palmeri wrote: > Hi all. > > It's a lot of time from my mathematics studies at school, so excuse the > stupid question... > > Please, could someone explain to me this Gambas behaviour? > > ------------------------------ > PRINT IsFloat (Int(4 / 2)) > --> True ? > > PRINT IsFloat(2) > --> False > ------------------------------ > > ------------------------------ > PRINT IsInteger(3.5) > --> False > > PRINT IsInteger(Int(3.5)) > --> False ? > ------------------------------ > > Thanks in advance for any answer. > > Regards, > > Stefano Palmeri > > Gambas 1.0.14 > Gambas 1.9.28 > Because Int() is implemented as always returning a floating point number. The IsXXX() functions test the Gambas datatype of an expression, not its real type in the real life! Regards, -- Benoit Minisini From brian at ...1334... Sun May 14 02:58:03 2006 From: brian at ...1334... (Christopher Brian Jack) Date: Sat, 13 May 2006 17:58:03 -0700 (PDT) Subject: [Gambas-user] about IsFloat and IsInteger behaviour... In-Reply-To: <200605132018.46560.gambas@...1...> References: <200605111545.05692.stefanopalmeri@...152...> <200605132018.46560.gambas@...1...> Message-ID: <20060513175721.X87578@...1337...> On Sat, 13 May 2006, Benoit Minisini wrote: Isn't there like a CInt() or something when you really need an integer-typed result? > Date: Sat, 13 May 2006 20:18:46 +0200 > From: Benoit Minisini > Reply-To: gambas-user at lists.sourceforge.net > To: gambas-user at lists.sourceforge.net > Subject: Re: [Gambas-user] about IsFloat and IsInteger behaviour... > > On Thursday 11 May 2006 15:45, Stefano Palmeri wrote: > > Hi all. > > > > It's a lot of time from my mathematics studies at school, so excuse the > > stupid question... > > > > Please, could someone explain to me this Gambas behaviour? > > > > ------------------------------ > > PRINT IsFloat (Int(4 / 2)) > > --> True ? > > > > PRINT IsFloat(2) > > --> False > > ------------------------------ > > > > ------------------------------ > > PRINT IsInteger(3.5) > > --> False > > > > PRINT IsInteger(Int(3.5)) > > --> False ? > > ------------------------------ > > > > Thanks in advance for any answer. > > > > Regards, > > > > Stefano Palmeri > > > > Gambas 1.0.14 > > Gambas 1.9.28 > > > > Because Int() is implemented as always returning a floating point number. The > IsXXX() functions test the Gambas datatype of an expression, not its real > type in the real life! > > Regards, > > -- > Benoit Minisini > > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > .=================================================. | Christopher BRIAN Jack aka "Gau of the Veldt" | +=================================================' | brian _AT_ brians-anime _DOT_ com `=================================================- Hi Spambots, my email address is sputnik at ...1334... From rospolosco at ...152... Sun May 14 05:03:00 2006 From: rospolosco at ...152... (Stefano Palmeri) Date: Sun, 14 May 2006 05:03:00 +0200 Subject: [Gambas-user] about IsFloat and IsInteger behaviour... In-Reply-To: <20060513175721.X87578@...1337...> References: <200605111545.05692.stefanopalmeri@...152...> <200605132018.46560.gambas@...1...> <20060513175721.X87578@...1337...> Message-ID: <200605140503.00288.rospolosco@...152...> On Sat, 13 May 2006, Benoit Minisini wrote: > Because Int() is implemented as always returning a floating point number. > The IsXXX() functions test the Gambas datatype of an expression, not its > real type in the real life! > > Regards, > > > Benoit Minisini > Thanks for answer. It's clear to me, now. Saluti, Stefano Palmeri From nando_f at ...1382... Sun May 14 05:08:05 2006 From: nando_f at ...1382... (nando) Date: Sat, 13 May 2006 23:08:05 -0400 Subject: [Gambas-user] about IsFloat and IsInteger behaviour... In-Reply-To: <20060513175721.X87578@...1337...> References: <200605111545.05692.stefanopalmeri@...152...> <200605132018.46560.gambas@...1...> <20060513175721.X87578@...1337...> Message-ID: <20060514030356.M6134@...1382...> I do believe CInt will convert to a 4 byte Integer. I heavily use CByte to convert to a 1 byte. I do this because Write #hfile, Byte_Var will definitely write to a file only 1 byte. Question for Benoit, Do you screen all emails to this forum or do they all get posted automatically?? -Fernando ---------- Original Message ----------- From: Christopher Brian Jack To: gambas-user at lists.sourceforge.net Sent: Sat, 13 May 2006 17:58:03 -0700 (PDT) Subject: Re: [Gambas-user] about IsFloat and IsInteger behaviour... > On Sat, 13 May 2006, Benoit Minisini wrote: > > Isn't there like a CInt() or something when you really need an > integer-typed result? > > > Date: Sat, 13 May 2006 20:18:46 +0200 > > From: Benoit Minisini > > Reply-To: gambas-user at lists.sourceforge.net > > To: gambas-user at lists.sourceforge.net > > Subject: Re: [Gambas-user] about IsFloat and IsInteger behaviour... > > > > On Thursday 11 May 2006 15:45, Stefano Palmeri wrote: > > > Hi all. > > > > > > It's a lot of time from my mathematics studies at school, so excuse the > > > stupid question... > > > > > > Please, could someone explain to me this Gambas behaviour? > > > > > > ------------------------------ > > > PRINT IsFloat (Int(4 / 2)) > > > --> True ? > > > > > > PRINT IsFloat(2) > > > --> False > > > ------------------------------ > > > > > > ------------------------------ > > > PRINT IsInteger(3.5) > > > --> False > > > > > > PRINT IsInteger(Int(3.5)) > > > --> False ? > > > ------------------------------ > > > > > > Thanks in advance for any answer. > > > > > > Regards, > > > > > > Stefano Palmeri > > > > > > Gambas 1.0.14 > > > Gambas 1.9.28 > > > > > > > Because Int() is implemented as always returning a floating point number. The > > IsXXX() functions test the Gambas datatype of an expression, not its real > > type in the real life! > > > > Regards, > > > > -- > > Benoit Minisini > > > > > > > > ------------------------------------------------------- > > Using Tomcat but need to do more? Need to support web services, security? > > Get stuff done quickly with pre-integrated technology to make your job easier > > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > .=================================================. > | Christopher BRIAN Jack aka "Gau of the Veldt" | > +=================================================' > | brian _AT_ brians-anime _DOT_ com > `=================================================- > Hi Spambots, my email address is sputnik at ...1334... > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier Download IBM WebSphere Application Server v.1.0.1 based on > Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From mwuest at ...1436... Sun May 14 18:57:12 2006 From: mwuest at ...1436... (Michi) Date: Sun, 14 May 2006 18:57:12 +0200 Subject: [Gambas-user] UDP Broadcast In-Reply-To: <7259b5ae0605090002u58b94b6ma0de065e2cd43e2b@...627...> Message-ID: Hello, a week ago I wrote a mail in this list regarding Serversocket programming with gambas. That one works now. Now there is the next question. UDPSocket does not allow me to send an UDP Broadcast across subnets. He is always telling me access forbidden when sending to 255.255.255.255. How can I do this? Thanks, bye, Michael. From eilert-sprachen at ...221... Mon May 15 10:33:34 2006 From: eilert-sprachen at ...221... (Eilert) Date: Mon, 15 May 2006 10:33:34 +0200 Subject: [Gambas-user] 1.9.29 does not appear on screen Message-ID: <44683CDE.4050600@...221...> Hi folks, There is still this problem here that all versions after 1.9.24 do not appear on the screen but keep on running somewhere without error message. To make a beginning, I'm including two files with output from my configure and make of 1.9.29. Perhaps someone can read a reason out of it for this strange behaviour. Regards Rolf This is a list of error messages during configure: configure: WARNING: *** MySQL driver is disabled configure: WARNING: *** ODBC driver is disabled configure: WARNING: *** PostgreSQL driver is disabled configure: WARNING: *** SQLite 2 driver is disabled configure: WARNING: *** SQLite 3 driver is disabled configure: WARNING: *** firebird driver is disabled configure: WARNING: *** GTK+ toolkit is disabled configure: WARNING: *** Poppler PDF library is disabled configure: WARNING: *** Advanced networking component is disabled configure: WARNING: *** SDL 2D image is disabled configure: WARNING: *** SDL OpenGL is disabled configure: WARNING: *** Ldap component is disabled configure: WARNING: *** CORBA component is disabled This is a list of error messages during make: gbx_exec.c: In function `EXEC_function_real': gbx_exec.c:630: warning: `retry' might be used uninitialized in this function gbx_exec_loop.c: In function `EXEC_loop': gbx_exec_loop.c:425: warning: `ind' might be used uninitialized in this function gbx_exec_loop.c:941: warning: `val' might be used uninitialized in this function gbx_exec_loop.c:1114: warning: `val' might be used uninitialized in this function gbx_exec_loop.c:1160: warning: `val' might be used uninitialized in this function gbx_class_load.c: In function `get_section': gbx_class_load.c:101: warning: `ss' might be used uninitialized in this function gbx_subr_file.c:196: warning: `print_it' defined but not used gbx_local.c: In function `fill_local_info': gbx_local.c:353: warning: `%x' yields only last 2 digits of year in some locales gbc_trans_subr.c:70: warning: `trans_subr_output' defined but not used eval_analyze.c: In function `analyze': eval_analyze.c:187: warning: unused variable `usym' CNet.c: In function `ToIPv4': CNet.c:86: warning: embedded `\0' in format CNet.c:89: warning: embedded `\0' in format libsmtp_comm.c: In function `libsmtp_dialogue': libsmtp_comm.c:174: warning: unused variable `libsmtp_swap_glist' libsmtp_connection.c: In function `libsmtp_connect': libsmtp_connection.c:40: warning: unused variable `libsmtp_bytes_read' libsmtp_connection.c:44: warning: unused variable `libsmtp_search_buffer' base64.c: In function `libsmtp_int_send_base64': base64.c:76: warning: unused variable `libsmtp_int_temp' base64.c:84: warning: unused variable `libsmtp_int_gstring' comm.c: In function `libsmtp_part_send': comm.c:266: warning: implicit declaration of function `libsmtp_int_send_base64' comm.c:270: warning: implicit declaration of function `libsmtp_int_send_quoted' parts.c: In function `libsmtp_int_nextpart': parts.c:465: warning: control reaches end of non-void function quoted.c: In function `libsmtp_int_send_quoted': quoted.c:49: warning: unused variable `libsmtp_int_temp' quoted.c:49: warning: unused variable `libsmtp_int_counter' quoted.c:56: warning: unused variable `libsmtp_int_copied' quoted.c:59: warning: unused variable `libsmtp_int_gstring' CLCDNumber.h:0: Warning: No relevant classes found. No output generated. gdocument.cpp: In member function `virtual bool GInsertCommand::merge(GCommand*)': gdocument.cpp:141: warning: comparison is always false due to limited range of data type gdocument.cpp:146: warning: comparison is always false due to limited range of data type gview.cpp: In member function `void GEditor::checkMatching()': gview.cpp:382: warning: `char c' might be used uninitialized in this function qeditor.cpp: In member function `virtual void QEditor::insertAt(const QString&, int, int, bool)': qeditor.cpp:5357: warning: unused variable `int offset' qeditor.cpp: In member function `virtual void QEditor::del()': qeditor.cpp:5437: warning: unused variable `int offset' CPictureBox.h:0: Warning: No relevant classes found. No output generated. CMouse.h:0: Warning: No relevant classes found. No output generated. CKey.h:0: Warning: No relevant classes found. No output generated. CColor.h:0: Warning: No relevant classes found. No output generated. CFrame.h:0: Warning: No relevant classes found. No output generated. CPanel.h:0: Warning: No relevant classes found. No output generated. CDialog.h:0: Warning: No relevant classes found. No output generated. CPicture.h:0: Warning: No relevant classes found. No output generated. CImage.h:0: Warning: No relevant classes found. No output generated. CDrawing.h:0: Warning: No relevant classes found. No output generated. CProgress.h:0: Warning: No relevant classes found. No output generated. CPrinter.h:0: Warning: No relevant classes found. No output generated. CMovieBox.h:0: Warning: No relevant classes found. No output generated. main.h:0: Warning: No relevant classes found. No output generated. CXMLNode.c: In function `CXmlNode_a_count': CXMLNode.c:250: warning: assignment from incompatible pointer type CXMLDocument.c: In function `Doc_AddChild': CXMLDocument.c:74: warning: assignment from incompatible pointer type CXMLDocument.c: In function `CXMLDocument_ToString': CXMLDocument.c:185: warning: unused variable `_p' CWebcam.c: In function `CWEBCAM_image': CWebcam.c:791: warning: unused variable `bucle' CWebcam.c: In function `CWEBCAM_picture': CWebcam.c:816: warning: unused variable `bucle' GLrasterization.c: In function `GLPOLYGONSTIPPLE': GLrasterization.c:76: warning: unused variable `_p' kcpuinfo.cpp:49: warning: `visibility' attribute ignored kcpuinfo.cpp:53: warning: `visibility' attribute ignored kcpuinfo.cpp:74: warning: `visibility' attribute ignored -------------- next part -------------- A non-text attachment was scrubbed... Name: confmake.tgz Type: application/x-compressed-tar Size: 23704 bytes Desc: not available URL: From laxminarayan at ...1434... Tue May 16 14:51:46 2006 From: laxminarayan at ...1434... (Laxminarayan G Kamath A) Date: Tue, 16 May 2006 18:21:46 +0530 Subject: [Gambas-user] about IsFloat and IsInteger behaviour... In-Reply-To: <20060514030356.M6134@...1382...> References: <200605111545.05692.stefanopalmeri@...152...> <200605132018.46560.gambas@...1...> <20060513175721.X87578@...1337...> <20060514030356.M6134@...1382...> Message-ID: <4469CAE2.3080908@...1434...> On 05/14/06 08:38, nando wrote: >Question for Benoit, > >Do you screen all emails to this forum or do they >all get posted automatically?? > > Or both? I get duplicate copiesof many mails -- Laxminarayan G Kamath A laxminarayan at ...1434... From sourceforge-raindog2 at ...94... Mon May 15 16:33:59 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Mon, 15 May 2006 10:33:59 -0400 Subject: [Gambas-user] UDP Broadcast In-Reply-To: References: Message-ID: <200605151034.00627.sourceforge-raindog2@...94...> On Sun May 14 2006 12:57, Michi wrote: > UDPSocket does not allow me to send an UDP Broadcast > across subnets. He is always telling me access > forbidden when sending to 255.255.255.255. > How can I do this? Sorry to ask a stupid question, but are you running as root? You have to be, in order to send broadcasts. Rob From na2492 at ...9... Tue May 16 21:46:51 2006 From: na2492 at ...9... (Charlie Reinl) Date: Tue, 16 May 2006 21:46:51 +0200 Subject: [Gambas-user] who wrote the random for gambas-user-list Message-ID: <1147808811.10380.8.camel@...37...> Salut, today, i'v got 3 mails posted o5/13 (now total 5), one from Sunday (total 3) and 1 form Yesterday the 'UDP Broadcast' from Rob. I like the speed of the web, could make as much coffee, as I need ! Amicalment charlie From ronstk at ...239... Tue May 16 22:04:39 2006 From: ronstk at ...239... (ron) Date: Tue, 16 May 2006 22:04:39 +0200 Subject: [Gambas-user] who wrote the random for gambas-user-list In-Reply-To: <1147808811.10380.8.camel@...37...> References: <1147808811.10380.8.camel@...37...> Message-ID: <200605162204.39583.ronstk@...239...> On Tuesday 16 May 2006 21:46, Charlie Reinl wrote: > Salut, > > today, i'v got 3 mails posted o5/13 (now total 5), one from Sunday > (total 3) and 1 form Yesterday the 'UDP Broadcast' from Rob. > > I like the speed of the web, could make as much coffee, as I need ! > > > Amicalment > charlie > Ja, its a bit silence on the list. May be the people are on other site/forums :) I enyoy my coffee very much O btw, welkom back? you was also silent hee :) ?n aka (r)n From na2492 at ...9... Tue May 16 22:23:06 2006 From: na2492 at ...9... (Charlie Reinl) Date: Tue, 16 May 2006 22:23:06 +0200 Subject: [Gambas-user] who wrote the random for gambas-user-list In-Reply-To: <200605162204.39583.ronstk@...239...> References: <1147808811.10380.8.camel@...37...> <200605162204.39583.ronstk@...239...> Message-ID: <1147810986.10380.14.camel@...37...> Am Dienstag, den 16.05.2006, 22:04 +0200 schrieb ron: > On Tuesday 16 May 2006 21:46, Charlie Reinl wrote: > > Salut, > > > > today, i'v got 3 mails posted o5/13 (now total 5), one from Sunday > > (total 3) and 1 form Yesterday the 'UDP Broadcast' from Rob. > > > > I like the speed of the web, could make as much coffee, as I need ! > > > > > > Amicalment > > charlie > > > > Ja, its a bit silence on the list. > May be the people are on other site/forums :) > > I enyoy my coffee very much > > O btw, welkom back? you was also silent hee :) > > ?n aka (r)n Salut Ron, but about the response from Rob to the mail from 'On Sun May 14 2006 12:57, Michi wrote:' , I'v not these mail from Michi. my mail and yours came back very quick ! Amicalment Charlie From mwuest at ...1436... Tue May 16 22:27:59 2006 From: mwuest at ...1436... (Michi) Date: Tue, 16 May 2006 22:27:59 +0200 Subject: AW: [Gambas-user] UDP Broadcast In-Reply-To: <200605151034.00627.sourceforge-raindog2@...94...> Message-ID: Hi. > On Sun May 14 2006 12:57, Michi wrote: > > UDPSocket does not allow me to send an UDP Broadcast > > across subnets. He is always telling me access > > forbidden when sending to 255.255.255.255. > > How can I do this? > Sorry to ask a stupid question, but are you running as root? You > have to be, in order to send broadcasts. > Rob Yes, I know. The App is running as root and the environment I am using for testing and programming is using root as well. Anyway, Broadcast to "255.255.255.255" gives me an "access forbidden". Maybe there is any feature to enable/disbale I do not know of. I am using Debian Sarge with Gnome. Thanks, bye, Michael. ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From na2492 at ...9... Tue May 16 22:44:13 2006 From: na2492 at ...9... (Charlie Reinl) Date: Tue, 16 May 2006 22:44:13 +0200 Subject: [Gambas-user] had a look to gambas-user at sf Message-ID: <1147812253.10380.21.camel@...37...> Salut, oh very nice, I stop to complain , I'v more mails in my box then the archive have. Last entry 10 mails on Thursday 05/04/2006, nice. There's something wrong, you don't thing so Ben?it ? Amicalment Charlie From ronstk at ...239... Tue May 16 22:45:47 2006 From: ronstk at ...239... (ron) Date: Tue, 16 May 2006 22:45:47 +0200 Subject: [Gambas-user] who wrote the random for gambas-user-list In-Reply-To: <1147810986.10380.14.camel@...37...> References: <1147808811.10380.8.camel@...37...> <200605162204.39583.ronstk@...239...> <1147810986.10380.14.camel@...37...> Message-ID: <200605162245.48419.ronstk@...239...> On Tuesday 16 May 2006 22:23, Charlie Reinl wrote: > Am Dienstag, den 16.05.2006, 22:04 +0200 schrieb ron: > > On Tuesday 16 May 2006 21:46, Charlie Reinl wrote: > > > Salut, > > > > > > today, i'v got 3 mails posted o5/13 (now total 5), one from Sunday > > > (total 3) and 1 form Yesterday the 'UDP Broadcast' from Rob. > > > > > > I like the speed of the web, could make as much coffee, as I need ! > > > > > > > > > Amicalment > > > charlie > > > > > > > Ja, its a bit silence on the list. > > May be the people are on other site/forums :) > > > > I enyoy my coffee very much > > > > O btw, welkom back? you was also silent hee :) > > > > ??n aka (r)n > Salut Ron, > > but about the response from Rob to the mail from 'On Sun May 14 2006 > 12:57, Michi wrote:' , I'v not these mail from Michi. > > my mail and yours came back very quick ! > > Amicalment > Charlie > LOL your mail are same time as the 2'nd from Michi as response on Rob. The mail Rob refer is here also not arrived :( Ron From na2492 at ...9... Tue May 16 22:48:14 2006 From: na2492 at ...9... (Charlie Reinl) Date: Tue, 16 May 2006 22:48:14 +0200 Subject: AW: [Gambas-user] UDP Broadcast In-Reply-To: References: Message-ID: <1147812494.10380.24.camel@...37...> Am Dienstag, den 16.05.2006, 22:27 +0200 schrieb Michi: > Hi. > > > On Sun May 14 2006 12:57, Michi wrote: > > > UDPSocket does not allow me to send an UDP Broadcast > > > across subnets. He is always telling me access > > > forbidden when sending to 255.255.255.255. > > > How can I do this? > > > Sorry to ask a stupid question, but are you running as root? You > > have to be, in order to send broadcasts. > > > Rob > > Yes, I know. The App is running as root and the > environment I am using for testing and programming > is using root as well. > > Anyway, Broadcast to "255.255.255.255" gives me > an "access forbidden". > > Maybe there is any feature to enable/disbale I do > not know of. I am using Debian Sarge with Gnome. > > Thanks, > bye, > Michael. Salut, how do they say, 'COOL' I'v got the answer to an response, but I'v never seen the question. Question : is that 'COOL' Amicalment Charlie From mwuest at ...1436... Tue May 16 23:11:03 2006 From: mwuest at ...1436... (Michi) Date: Tue, 16 May 2006 23:11:03 +0200 Subject: AW: AW: [Gambas-user] UDP Broadcast In-Reply-To: <1147812494.10380.24.camel@...37...> Message-ID: > Am Dienstag, den 16.05.2006, 22:27 +0200 schrieb Michi: > > Hi. > > > > > On Sun May 14 2006 12:57, Michi wrote: > > > > UDPSocket does not allow me to send an UDP Broadcast > > > > across subnets. He is always telling me access > > > > forbidden when sending to 255.255.255.255. > > > > How can I do this? > > > > > Sorry to ask a stupid question, but are you running as root? You > > > have to be, in order to send broadcasts. > > > > > Rob > > > > Yes, I know. The App is running as root and the > > environment I am using for testing and programming > > is using root as well. > > > > Anyway, Broadcast to "255.255.255.255" gives me > > an "access forbidden". > > > > Maybe there is any feature to enable/disbale I do > > not know of. I am using Debian Sarge with Gnome. > > > > Thanks, > > bye, > > Michael. > > Salut, > > how do they say, 'COOL' I'v got the answer to an response, but I'v never > seen the question. > > Question : is that 'COOL' > > Amicalment > Charlie Hi Charlie. What do you want to tell me with that? I have a problem to be solved. Are you kidding on me? Bye, Michael. ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From Karl.Reinl at ...9... Tue May 16 23:50:21 2006 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Tue, 16 May 2006 23:50:21 +0200 Subject: [Gambas-user] your mails about UDP Broadcast Message-ID: <200605162350.21722.Karl.Reinl@...9...> Salut Michael, no don't bother, thats nothing to do with you, your mail or your question. The problem is that, and for that I wrote the mails, I see the respons to a mail, but I'v never saw the mail, in that case yours...Sorry What I want to say with my mails, that there is a problem in that list, the mails do not arrive. Amicalment Charlie From stefanopalmeri at ...152... Wed May 17 01:41:56 2006 From: stefanopalmeri at ...152... (Stefano Palmeri) Date: Wed, 17 May 2006 01:41:56 +0200 Subject: [Gambas-user] Italian special chars bug? In-Reply-To: <200605132016.37231.gambas@...1...> References: <200605120051.58733.stefanopalmeri@...152...> <200605132016.37231.gambas@...1...> Message-ID: <200605170141.56908.stefanopalmeri@...152...> Alle 20:16, sabato 13 maggio 2006, Benoit Minisini ha scritto: > On Friday 12 May 2006 00:51, Stefano Palmeri wrote: > > Hi, all. Hi, Benoit. > > > > After hours of wondering why in certain Gambas2 projects I was able to type > > "? ? ? ? ? ?" and in some other I wasn't, I finally discovered the reason. > > > > If in a Gambas2 project I add the component "gb.qt.ext", then I'm not > > able to type in the editor those Italian special chars (look at attached > > bad.jpg) and I get instead funny chars. > > > > If I remove from the project properties the "gb.qt.ext" component and > > restart Gambas2, then I'm able to see and type the special chars > > (good.jpg). > > > > No problem with this component in the stable Gambas. > > > > To the Italians in the list: please, try to add the gb.qt.ext component to > > a project, then restart Gambas2 and re-open the project: see if your are > > able to type "? ? ? ? ? ?". (To know if this is a general problem or a > > problem of mine - thanks). > > > > Gambas2 1.9.28 > > Qt 3.3.2 > > KDE 3.4.2 > > > > Regards, > > > > Stefano Palmeri > > Very strange... > > 1) I couldn't reproduce the problem. > > 2) If you add any component to a project, this won't change anything in the > IDE, so there is no reason why characters should change. > > 3) Moreover, everything is stored in UTF-8, so please check that the contents > of your source files were not changed by something other. > > Regards, > > -- > Benoit Minisini > Hi, Benoit. It seems very strange to me too. So I created a fresh untouched project. In this project there's an empty form and a text file with the special chars I can't correctly see. In the project properties I added the gb.qt.ext. After restarting Gambas2 and opening the fresh project as the first project to work on, I can't see the chars "? ? ? ? ?". This thing is making me go crazy, because is without sense. Also, I think it's important, I noticed that if I start Gambas2 and I open a project without gb.qt.ext and then, in the same Gambas2 session, I open the fresh testing project I can see the chars! I've attached the testing project... and I hope you could find the reason. Qt 3.3.2 Gambas2-1.9.28 KDE 3.4.2 Kernel 2.6.16.11 Also I've attached the output of set. Thanks. Regards, Stefano Palmeri -------------- next part -------------- A non-text attachment was scrubbed... Name: prova2.tar.gz Type: application/x-tgz Size: 496 bytes Desc: not available URL: -------------- next part -------------- BASH=/usr/bin/bash BASH_VERSINFO=([0]="2" [1]="05b" [2]="0" [3]="1" [4]="release" [5]="i486-slackware-linux-gnu") BASH_VERSION='2.05b.0(1)-release' BROWSER=/opt/kde/bin/konqueror COLORTERM= COLUMNS=80 CPLUS_INCLUDE_PATH=/usr/lib/qt/include:/usr/lib/qt/include DESKTOP_SESSION=default DIRSTACK=() DISPLAY=:0.0 DM_CONTROL=/var/run/xdmctl EUID=1000 GDK_USE_XFT=1 GROUPS=() GS_LIB=/home/stefano/.fonts GTK2_RC_FILES=/home/stefano/.gtkrc-2.0 GTK_RC_FILES=/etc/gtk/gtkrc:/home/stefano/.gtkrc:/home/stefano/.kde/share/config/gtkrc HISTFILE=/home/stefano/.bash_history HISTFILESIZE=500 HISTSIZE=500 HOME=/home/stefano HOSTNAME=macondo.localhost HOSTTYPE=i486 IFS=$' \t\n' INPUTRC=/etc/inputrc JAVA_HOME=/usr/lib/java KDEDIR=/opt/kde KDE_FULL_SESSION=true KDE_MULTIHEAD=false KONSOLE_DCOP='DCOPRef(konsole-5965,konsole)' KONSOLE_DCOP_SESSION='DCOPRef(konsole-5965,session-1)' LANG=it_IT LC_COLLATE=C LESS=-M LESSOPEN='|lesspipe.sh %s' LINES=25 LOGNAME=stefano LS_COLORS='no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;32:*.bat=01;32:*.BAT=01;32:*.btm=01;32:*.BTM=01;32:*.cmd=01;32:*.CMD=01;32:*.com=01;32:*.COM=01;32:*.dll=01;32:*.DLL=01;32:*.exe=01;32:*.EXE=01;32:*.arj=01;31:*.bz2=01;31:*.deb=01;31:*.gz=01;31:*.lzh=01;31:*.rpm=01;31:*.tar=01;31:*.taz=01;31:*.tb2=01;31:*.tbz2=01;31:*.tbz=01;31:*.tgz=01;31:*.tz2=01;31:*.z=01;31:*.Z=01;31:*.zip=01;31:*.ZIP=01;31:*.zoo=01;31:*.asf=01;35:*.ASF=01;35:*.avi=01;35:*.AVI=01;35:*.bmp=01;35:*.BMP=01;35:*.flac=01;35:*.FLAC=01;35:*.gif=01;35:*.GIF=01;35:*.jpg=01;35:*.JPG=01;35:*.jpeg=01;35:*.JPEG=01;35:*.m2a=01;35:*.M2a=01;35:*.m2v=01;35:*.M2V=01;35:*.mov=01;35:*.MOV=01;35:*.mp3=01;35:*.MP3=01;35:*.mpeg=01;35:*.MPEG=01;35:*.mpg=01;35:*.MPG=01;35:*.ogg=01;35:*.OGG=01;35:*.ppm=01;35:*.rm=01;35:*.RM=01;35:*.tga=01;35:*.TGA=01;35:*.tif=01;35:*.TIF=01;35:*.wav=01;35:*.WAV=01;35:*.wmv=01;35:*.WMV=01;35:*.xbm=01;35:*.xpm=01;35:' LS_OPTIONS=' --color=auto -F -b -T 0' MACHTYPE=i486-slackware-linux-gnu MAILCHECK=60 MANPATH=/usr/local/man:/usr/man:/usr/X11R6/man:/usr/lib/java/man:/usr/lib/qt/doc/man MINICOM='-c on' OPTERR=1 OPTIND=1 OSTYPE=linux-gnu PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games:/usr/sbin:/sbin:/usr/local/sbin:/opt/kde/bin:/usr/lib/java/bin:/usr/lib/java/jre/bin:/opt/kde/bin:/usr/lib/qt/bin:/home/stefano/bin PIPESTATUS=([0]="0") PKG_CONFIG_PATH=:/usr/local/lib/pkgconfig:/usr/local/lib/pkgconfig PPID=5965 PS1='\u@\h:`basename "$(pwd)" | tr " " "_"`\$ ' PS2='> ' PS4='+ ' PWD=/home/stefano QTDIR=/usr/lib/qt SESSION_MANAGER=local/macondo:/tmp/.ICE-unix/1236 SHELL=/bin/bash SHELLOPTS=braceexpand:emacs:hashall:histexpand:history:interactive-comments:monitor SHLVL=4 T1LIB_CONFIG=/usr/share/t1lib/t1lib.config TERM=xterm UID=1000 USER=stefano WINDOWID=44040200 XCURSOR_THEME=Chameleon-Aluminium-Regular XDM_MANAGED=/var/run/xdmctl/xdmctl-:0,maysd,mayfn,sched,rsvd,method=classic _=set From ronstk at ...239... Wed May 17 06:33:52 2006 From: ronstk at ...239... (ron) Date: Wed, 17 May 2006 06:33:52 +0200 Subject: AW: AW: [Gambas-user] UDP Broadcast In-Reply-To: References: Message-ID: <200605170633.52795.ronstk@...239...> On Tuesday 16 May 2006 23:11, Michi wrote: > > > Am Dienstag, den 16.05.2006, 22:27 +0200 schrieb Michi: > > > Hi. > > > > > > > On Sun May 14 2006 12:57, Michi wrote: > > > > > UDPSocket does not allow me to send an UDP Broadcast > > > > > across subnets. He is always telling me access > > > > > forbidden when sending to 255.255.255.255. > > > > > How can I do this? > > > > > > > Sorry to ask a stupid question, but are you running as root? You > > > > have to be, in order to send broadcasts. > > > > > > > Rob > > > > > > Yes, I know. The App is running as root and the > > > environment I am using for testing and programming > > > is using root as well. > > > > > > Anyway, Broadcast to "255.255.255.255" gives me > > > an "access forbidden". > > > > > > Maybe there is any feature to enable/disbale I do > > > not know of. I am using Debian Sarge with Gnome. > > > > > > Thanks, > > > bye, > > > Michael. > > > > Salut, > > > > how do they say, 'COOL' I'v got the answer to an response, but I'v never > > seen the question. > > > > Question : is that 'COOL' > > > > Amicalment > > Charlie > > Hi Charlie. > > What do you want to tell me with that? > I have a problem to be solved. Are you kidding on me? > > Bye, > Michael. > > hi Michael, For me, I could say the same COOL as Charlie. No, it is no kidding of him because we saw the reply from Rob on you announcement that it work now from 14 may. I got that message just now at 6:00 17 may. So I got also the answer before the question :) Ron (and Charlie) From mwuest at ...1436... Wed May 17 06:54:09 2006 From: mwuest at ...1436... (Michi) Date: Wed, 17 May 2006 06:54:09 +0200 Subject: AW: AW: AW: [Gambas-user] UDP Broadcast In-Reply-To: <200605170633.52795.ronstk@...239...> Message-ID: Ahhhh, I understand. Ok, just to point it out. The first issue was about TCP connections, that works now fine. That mail with the qestion is some days old. The seond issue is about UDP broadcast and different... That one still does not work... So I guess you missed a question, but you did not get the answer ahead of the question, you mixed sth up. bye, michael. On Tuesday 16 May 2006 23:11, Michi wrote: > > > Am Dienstag, den 16.05.2006, 22:27 +0200 schrieb Michi: > > > Hi. > > > > > > > On Sun May 14 2006 12:57, Michi wrote: > > > > > UDPSocket does not allow me to send an UDP Broadcast > > > > > across subnets. He is always telling me access > > > > > forbidden when sending to 255.255.255.255. > > > > > How can I do this? > > > > > > > Sorry to ask a stupid question, but are you running as root? You > > > > have to be, in order to send broadcasts. > > > > > > > Rob > > > > > > Yes, I know. The App is running as root and the > > > environment I am using for testing and programming > > > is using root as well. > > > > > > Anyway, Broadcast to "255.255.255.255" gives me > > > an "access forbidden". > > > > > > Maybe there is any feature to enable/disbale I do > > > not know of. I am using Debian Sarge with Gnome. > > > > > > Thanks, > > > bye, > > > Michael. > > > > Salut, > > > > how do they say, 'COOL' I'v got the answer to an response, but I'v never > > seen the question. > > > > Question : is that 'COOL' > > > > Amicalment > > Charlie > > Hi Charlie. > > What do you want to tell me with that? > I have a problem to be solved. Are you kidding on me? > > Bye, > Michael. > > hi Michael, For me, I could say the same COOL as Charlie. No, it is no kidding of him because we saw the reply from Rob on you announcement that it work now from 14 may. I got that message just now at 6:00 17 may. So I got also the answer before the question :) Ron (and Charlie) ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From sourceforge-raindog2 at ...94... Wed May 17 07:56:05 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Wed, 17 May 2006 01:56:05 -0400 Subject: [Gambas-user] UDP Broadcast In-Reply-To: References: Message-ID: <200605170156.07069.sourceforge-raindog2@...94...> On Wed May 17 2006 00:54, Michi wrote: > The seond issue is about UDP broadcast and different... > That one still does not work... A bit of googling tells me that C programs need to set the SO_BROADCAST socket option (with setsockopt) before trying to send a broadcast packet, and SO_BROADCAST doesn't appear anywhere within the gb.net source code. The symptom when the flag is missing would be an access denied error. So I'm guessing gb.net just doesn't support sending broadcasts at present, but shouldn't be too hard to patch (the least elegant way would be to check if the last octet of the IP address is 255 and set SO_BROADCAST accordingly, which would make it work for any netmask of 24 bits or smaller, if you didn't want to add a new "Broadcast" property for the user to set.) In the meantime, you should be able to do broadcasts using some rather tortured API calls in the development releases. Rob From mwuest at ...1436... Wed May 17 09:42:43 2006 From: mwuest at ...1436... (Michi) Date: Wed, 17 May 2006 09:42:43 +0200 Subject: AW: [Gambas-user] UDP Broadcast In-Reply-To: <200605170156.07069.sourceforge-raindog2@...94...> Message-ID: Hi Rob, can you please send me more information regarding wird API calls... I think I?d prefer that method instead of recompiling gb.net Or can I set SO_BROADCAST in any other way? I really need 255.255.255.255 to be usable. Just using a part of the network by masking some subnets out does not work for me. Thanks, bye, Michael. On Wed May 17 2006 00:54, Michi wrote: > The seond issue is about UDP broadcast and different... > That one still does not work... A bit of googling tells me that C programs need to set the SO_BROADCAST socket option (with setsockopt) before trying to send a broadcast packet, and SO_BROADCAST doesn't appear anywhere within the gb.net source code. The symptom when the flag is missing would be an access denied error. So I'm guessing gb.net just doesn't support sending broadcasts at present, but shouldn't be too hard to patch (the least elegant way would be to check if the last octet of the IP address is 255 and set SO_BROADCAST accordingly, which would make it work for any netmask of 24 bits or smaller, if you didn't want to add a new "Broadcast" property for the user to set.) In the meantime, you should be able to do broadcasts using some rather tortured API calls in the development releases. Rob ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1443... Wed May 17 11:08:52 2006 From: gambas at ...1443... (gambas at ...1443...) Date: Wed, 17 May 2006 04:08:52 -0500 (CDT) Subject: [Gambas-user] Re: Treeview and other Questions Message-ID: <3496.165.146.41.7.1147856932.squirrel@...1444...> Testing... Hope this works! I am using a treeview in a small app I am doing. I will be happy to send you the source if you want. I currently have the following functionality; Add a new item (with an image etc. and a unique key from an array) Add a child (under the new item) and lastly a click event Maybe it will help Shaun From gambas at ...1... Wed May 17 16:09:07 2006 From: gambas at ...1... (Benoit Minisini) Date: Wed, 17 May 2006 16:09:07 +0200 Subject: [Gambas-user] had a look to gambas-user at sf In-Reply-To: <1147812253.10380.21.camel@...37...> References: <1147812253.10380.21.camel@...37...> Message-ID: <200605171609.07750.gambas@...1...> On Tuesday 16 May 2006 22:44, Charlie Reinl wrote: > Salut, > > oh very nice, I stop to complain , I'v more mails in my box then the > archive have. > Last entry 10 mails on Thursday 05/04/2006, nice. > > > There's something wrong, you don't thing so Ben?it ? > > Amicalment > Charlie > I think so, but I can't do anything! -- Benoit Minisini From sourceforge-raindog2 at ...94... Wed May 17 18:02:29 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Wed, 17 May 2006 12:02:29 -0400 Subject: [Gambas-user] UDP Broadcast In-Reply-To: References: Message-ID: <200605171202.29780.sourceforge-raindog2@...94...> On Wed May 17 2006 03:42, Michi wrote: > can you please send me more information regarding > wird API calls... I think I?d prefer that method > instead of recompiling gb.net I myself have never used API calls within Gambas; I just know the ability to do so has been added to Gambas2. I know others have used them, though.... maybe someone will chime in. Rob From mwuest at ...1436... Wed May 17 21:53:38 2006 From: mwuest at ...1436... (Michi) Date: Wed, 17 May 2006 21:53:38 +0200 Subject: AW: [Gambas-user] UDP Broadcast In-Reply-To: <200605171202.29780.sourceforge-raindog2@...94...> Message-ID: Hi. that?ll be good... Maybe there is a PDF or an FAQ or sth similar regarding the usage of API?s ??? Bye, Michael. On Wed May 17 2006 03:42, Michi wrote: > can you please send me more information regarding > wird API calls... I think I?d prefer that method > instead of recompiling gb.net I myself have never used API calls within Gambas; I just know the ability to do so has been added to Gambas2. I know others have used them, though.... maybe someone will chime in. Rob ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=k&kid0709&bid&3057&dat1642 _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From leonardo at ...1237... Thu May 18 15:10:56 2006 From: leonardo at ...1237... (Leonardo Miliani) Date: Thu, 18 May 2006 15:10:56 +0200 Subject: [Gambas-user] Strange way of working about form dimensions Message-ID: <446C7260.4050707@...1237...> Hi everybody. I bought a notebook and I installed on it the Suse 9.3 Linux system. I wrote an application on the notebook that I transfered on my desktop (same Suse 9.3 Linux system but different window decorations and desktop resolutions). I had a problem transfering the source because it seems that Gambas refers to the window decorations or desktop resolutions it finds on the system and overwrites the form dimensions... On the notebook, I created a form that is 384x257 pixel(X,Y) in dimensions but when I open the source code on the desktop PC I find that the dimensions are changed in (X, Y). I tried to compile the source but when I run the executable on the desktop I find again the altered dimensions of the form. When I opened the .form files I looked at the first lines and they appear as: " { frmStart Form MoveScaled(50.6667,28.6667,42.6667,28.5556) 'Move(456,258,384,257) .... " The real dimensions are in the quoted line. Maybe is this the problem? Gambas does scale the dimensions of the forms looking at the desktop ratios (the notebook has a 1280x800 display, the desktop has a 1280x1024 one). -- Ciao. Leo Visita il mio sito personale: www.leonardomiliani.com e-mail: leonardo at ...1237... From leonardo at ...1237... Thu May 18 22:22:08 2006 From: leonardo at ...1237... (Leonardo Miliani) Date: Thu, 18 May 2006 22:22:08 +0200 Subject: [Gambas-user] Strange way of working about form dimensions In-Reply-To: <446C7260.4050707@...1237...> References: <446C7260.4050707@...1237...> Message-ID: <446CD770.6050906@...1237...> Leonardo Miliani ha scritto: > On the notebook, I created a form that is 384x257 pixel(X,Y) in > dimensions but when I open the source code on the desktop PC I find that > the dimensions are changed in (X, Y). I tried to compile the source but Sorry. I forgot to specify the dimensions. They are 341x228 (X, Y). -- Ciao. Leo Visita il mio sito personale: www.leonardomiliani.com e-mail: leonardo at ...1237... From joe1962 at ...626... Fri May 19 01:12:19 2006 From: joe1962 at ...626... (Jose J. Rodriguez) Date: Thu, 18 May 2006 19:12:19 -0400 Subject: [Gambas-user] Object array code gives weird results Message-ID: <6c208f950605181612k447cfc2aife930bbd17ef17f7@...627...> The weirdest things happen to me in Gambas, lol. This is in 1.9.29 (patched). From the info and examples I've managed to search out, this seems correct and it does work (to a point). I have the following module and a Form1 with a TextView1 component. There are 2 classes (see at the bottom). The funny thing is that the line: Form1.TextView1.Text &= "
" & PartInfo[pcounter - 1].Device works perfectly in the main parsing loop: /dev/hda1 /dev/hda2 /dev/hda4 /dev/hda5 /dev/hda6 /dev/hda7 but the later loop: FOR n = 0 TO PartInfo.Max Form1.TextView1.Text &= "
" & PartInfo[n].Device NEXT just gives this: /dev/hda7 /dev/hda7 /dev/hda7 /dev/hda7 /dev/hda7 /dev/hda7 Here's the code, as you will see, only the device is being parsed so far, the rest is filler data until someone helps me figure out what is wrong ;). Regards, Joe1962 ' Gambas module file 'Drive and partition declarations: PUBLIC DiskInfo AS NEW Object[] PUBLIC PartInfo AS NEW Object[] PUBLIC SUB Main() Form1.Show DrivePartInfo END PUBLIC SUB DrivePartInfo() DIM sTemp AS String 'Get available drives and partitions: EXEC ["fdisk", "-l"] TO sTemp Parse_fdisk(sTemp) END PUBLIC SUB Parse_fdisk(sTemp AS String) DIM vDI AS NEW CDiskInfo DIM vPI AS NEW CPartInfo DIM arrTemp1 AS NEW String[] DIM arrTemp2 AS NEW String[] DIM pos AS Long DIM n AS Long DIM pcounter AS Long arrTemp1 = Split(sTemp, Chr$(10)) FOR n = 0 TO arrTemp1.Max pos = InStr(arrTemp1[n], "/dev/") IF pos = 1 'Parse a partition. arrTemp2 = Split(arrTemp1[n], Space$(1), "", TRUE) INC pcounter vPI.Device = arrTemp2[0] vPI.Bootable = FALSE vPI.StartBlock = 0 vPI.EndBlock = 1024 vPI.Blocks = 25 vPI.ID = "06" PartInfo.Push(vPI) Form1.TextView1.Text &= "
" & PartInfo[pcounter - 1].Device END IF NEXT FOR n = 0 TO PartInfo.Max Form1.TextView1.Text &= "
" & PartInfo[n].Device NEXT END CDiskInfo.class: ' Gambas class file PUBLIC Device AS String PUBLIC Bytes AS Long CPartInfo.class: ' Gambas class file PUBLIC Device AS String PUBLIC Bootable AS Boolean PUBLIC StartBlock AS Long PUBLIC EndBlock AS Long PUBLIC Blocks AS Long PUBLIC ID AS String From almanova at ...1228... Fri May 19 08:26:53 2006 From: almanova at ...1228... (Almanova Sistemi) Date: Fri, 19 May 2006 08:26:53 +0200 Subject: [Gambas-user] Play a dvd Message-ID: <446D652D.7020602@...1228...> I need to play a dvd in gambas with xine. I tried with EXEC [ "xine", .... ] and all works fine. Now I need to put the xine's output into a container (like drawing area). Is possible to do this? Tank's Massimo. From brian at ...1334... Fri May 19 08:36:05 2006 From: brian at ...1334... (Christopher Brian Jack) Date: Thu, 18 May 2006 23:36:05 -0700 (PDT) Subject: [Gambas-user] Play a dvd In-Reply-To: <446D652D.7020602@...1228...> References: <446D652D.7020602@...1228...> Message-ID: <20060518233221.W17332@...1337...> On Fri, 19 May 2006, Almanova Sistemi wrote: > I need to play a dvd in gambas with xine. > I tried with EXEC [ "xine", .... ] and all works fine. > Now I need to put the xine's output into a container (like drawing area). > Is possible to do this? > Tank's > > Massimo. It is possible if xine has an option (like mplayer does) to direct the video output to a specified window. Past that use the media player example to figure out the proper control to use and the correct property on that control to determine the Window Handle which you would then give to xine (if it has the option to direct to a specified Window Handle) on its command line options. .=================================================. | Christopher BRIAN Jack aka "Gau of the Veldt" | +=================================================' | brian _AT_ brians-anime _DOT_ com `=================================================- Hi Spambots, my email address is sputnik at ...1334... From timothy.marshal-nichols at ...247... Fri May 19 12:35:10 2006 From: timothy.marshal-nichols at ...247... (Timothy Marshal-Nichols) Date: Fri, 19 May 2006 11:35:10 +0100 Subject: [Gambas-user] Object array code gives weird results In-Reply-To: <6c208f950605181612k447cfc2aife930bbd17ef17f7@...627...> Message-ID: Thanks 8-{)} Timothy Marshal-Nichols > -----Original Message----- > From: gambas-user-admin at lists.sourceforge.net > [mailto:gambas-user-admin at lists.sourceforge.net]On Behalf Of Jose J. > Rodriguez > Sent: Friday, 19 May 2006 00:12 > To: gambas-user at lists.sourceforge.net > Subject: [Gambas-user] Object array code gives weird results > > > The weirdest things happen to me in Gambas, lol. This is in 1.9.29 > (patched). From the info and examples I've managed to search out, this > seems correct and it does work (to a point). I have the following > module and a Form1 with a TextView1 component. There are 2 classes > (see at the bottom). The funny thing is that the line: > > Form1.TextView1.Text &= "
" & PartInfo[pcounter - 1].Device > > works perfectly in the main parsing loop: > > /dev/hda1 > /dev/hda2 > /dev/hda4 > /dev/hda5 > /dev/hda6 > /dev/hda7 > > but the later loop: > > FOR n = 0 TO PartInfo.Max > Form1.TextView1.Text &= "
" & PartInfo[n].Device > NEXT > > just gives this: > > /dev/hda7 > /dev/hda7 > /dev/hda7 > /dev/hda7 > /dev/hda7 > /dev/hda7 > > > Here's the code, as you will see, only the device is being parsed so > far, the rest is filler data until someone helps me figure out what is > wrong ;). > > Regards, > Joe1962 > > > > ' Gambas module file > > 'Drive and partition declarations: > PUBLIC DiskInfo AS NEW Object[] > PUBLIC PartInfo AS NEW Object[] > > > PUBLIC SUB Main() > Form1.Show > DrivePartInfo > END > > > PUBLIC SUB DrivePartInfo() > DIM sTemp AS String > > 'Get available drives and partitions: > EXEC ["fdisk", "-l"] TO sTemp > Parse_fdisk(sTemp) > > END > > > PUBLIC SUB Parse_fdisk(sTemp AS String) > DIM vDI AS NEW CDiskInfo > DIM vPI AS NEW CPartInfo > DIM arrTemp1 AS NEW String[] > DIM arrTemp2 AS NEW String[] > DIM pos AS Long > DIM n AS Long > DIM pcounter AS Long > > arrTemp1 = Split(sTemp, Chr$(10)) > > FOR n = 0 TO arrTemp1.Max > pos = InStr(arrTemp1[n], "/dev/") > IF pos = 1 'Parse a partition. > arrTemp2 = Split(arrTemp1[n], Space$(1), "", TRUE) > INC pcounter > vPI.Device = arrTemp2[0] > vPI.Bootable = FALSE > vPI.StartBlock = 0 > vPI.EndBlock = 1024 > vPI.Blocks = 25 > vPI.ID = "06" > PartInfo.Push(vPI) On the above line you a pushing an object. So at the end of the loop all items in the array are set to the same object. To overcome the problem push the value of the object or create a new object with the value you want. > Form1.TextView1.Text &= "
" & PartInfo[pcounter - 1].Device > END IF > NEXT > > FOR n = 0 TO PartInfo.Max So on the line below you are always looking the same object. You always get the value you last set this object to. You might not like this behaviour. But it is the same as in most programming languages with objects. > Form1.TextView1.Text &= "
" & PartInfo[n].Device > NEXT > > END > > > > CDiskInfo.class: > ' Gambas class file > PUBLIC Device AS String > PUBLIC Bytes AS Long > > > > CPartInfo.class: > ' Gambas class file > PUBLIC Device AS String > PUBLIC Bootable AS Boolean > PUBLIC StartBlock AS Long > PUBLIC EndBlock AS Long > PUBLIC Blocks AS Long > PUBLIC ID AS String > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make > your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=k&kid0709&bid&3057&dat1642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From joe1962 at ...626... Fri May 19 17:38:32 2006 From: joe1962 at ...626... (Jose J. Rodriguez) Date: Fri, 19 May 2006 11:38:32 -0400 Subject: [Gambas-user] Object array code gives weird results In-Reply-To: References: <6c208f950605181612k447cfc2aife930bbd17ef17f7@...627...> Message-ID: <6c208f950605190838y92c7973v3403ce24c6817413@...627...> On 5/19/06, Timothy Marshal-Nichols wrote: > > > -----Original Message----- > > From: gambas-user-admin at lists.sourceforge.net > > [mailto:gambas-user-admin at lists.sourceforge.net]On Behalf Of Jose J. > > Rodriguez > > Sent: Friday, 19 May 2006 00:12 > > To: gambas-user at lists.sourceforge.net > > Subject: [Gambas-user] Object array code gives weird results > > > > PartInfo.Push(vPI) > > On the above line you a pushing an object. So at the end of the loop > all items in the array are set to the same object. Well, it's the only way I've found so far in the docs, forums or examples that is similar to the user defined type arrays from VB. > To overcome the problem push the value of the object or create a new object > with the value you want. Sorry but, could you give an example? Not really sure how to do this. > > So on the line below you are always looking the same object. You > always get the value you last set this object to. I sort of figured it was something like that. > You might not like this behaviour. But it is the same as in most > programming languages with objects. I don't have any problem with it, its just not clear to me from the docs. As to being the same in most, I can't really tell. OOP is still somewhat a grey area for me. I use objects and classes here and there, but mostly can't quite tell why or when to use the approach. Also, a concept like the UDTs seems more logical to me in this instance. Gambas sort of "forces" me to program in a more OOP way, which I see as a good thing mostly. Thanks, Joe1962 From Jonasb at ...369... Sat May 20 12:19:13 2006 From: Jonasb at ...369... (Jonas Baggett) Date: Sat, 20 May 2006 10:19:13 +0000 Subject: [Gambas-user] Bug in the eval Function Message-ID: <446EED21.40300@...369...> Hello, I found a bug with gambas 1.9.29 in the eval Function : ' after this line will be executed, strPattern will be "\"asdf\" LIKE \"*\"" strPattern = Chr(34) & "asdf" & Chr(34) & " LIKE " & Chr(34) & "*" & Chr(34) 'strangely, after this line will be executed, strPattern change its value to "\"asdf\x00 LIKE \"*\x00" blnResult = Eval(strPattern) 'after this line will be executed a message error appears telling "Type mismatch : wanted float got string instead" blnResult = Eval(strPattern) From ronstk at ...239... Sat May 20 11:09:26 2006 From: ronstk at ...239... (ron) Date: Sat, 20 May 2006 11:09:26 +0200 Subject: [Gambas-user] Bug in the eval Function In-Reply-To: <446EED21.40300@...369...> References: <446EED21.40300@...369...> Message-ID: <200605201109.27402.ronstk@...239...> On Saturday 20 May 2006 12:19, Jonas Baggett wrote: > Hello, I found a bug with gambas 1.9.29 in the eval Function : > > ' after this line will be executed, strPattern will be "\"asdf\" LIKE \"*\"" > strPattern = Chr(34) & "asdf" & Chr(34) & " LIKE " & Chr(34) & "*" & Chr(34) > > 'strangely, after this line will be executed, strPattern change its > value to "\"asdf\x00 LIKE \"*\x00" What do you mean with "executed" exactly? strPattern is not a valid calculate expresion. > blnResult = Eval(strPattern) > > 'after this line will be executed a message error appears telling "Type > mismatch : wanted float got string instead" > blnResult = Eval(strPattern) > From gambas at ...1... Sat May 20 15:05:20 2006 From: gambas at ...1... (Benoit Minisini) Date: Sat, 20 May 2006 15:05:20 +0200 Subject: [Gambas-user] Bug in the eval Function In-Reply-To: <446EED21.40300@...369...> References: <446EED21.40300@...369...> Message-ID: <200605201505.20752.gambas@...1...> On Saturday 20 May 2006 12:19, Jonas Baggett wrote: > Hello, I found a bug with gambas 1.9.29 in the eval Function : > > ' after this line will be executed, strPattern will be "\"asdf\" LIKE > \"*\"" strPattern = Chr(34) & "asdf" & Chr(34) & " LIKE " & Chr(34) & "*" & > Chr(34) > > 'strangely, after this line will be executed, strPattern change its > value to "\"asdf\x00 LIKE \"*\x00" > blnResult = Eval(strPattern) > > 'after this line will be executed a message error appears telling "Type > mismatch : wanted float got string instead" > blnResult = Eval(strPattern) > Yes, there is a bug both in stable and development version that modifies the original string. I will fix it in the next versions. As for the error message, I think you should apply the 1.9.29 patch to get the correct result. Regards, -- Benoit Minisini From gambas at ...1... Sun May 21 00:31:19 2006 From: gambas at ...1... (Benoit Minisini) Date: Sun, 21 May 2006 00:31:19 +0200 Subject: [Gambas-user] Release of gambas 1.9.30 Message-ID: <200605210031.19713.gambas@...1...> Hi, Besides including the 1.9.29 patch, the main changes of this release are the following: * Relative paths can include '.' and '..', and can refer to a directory. Consequently, project directories are now stored in the executable with project data files. * UDP sockets can send broadcast packets. Set the Broadcast property of the UDPSocket object for that. * Components can tell the IDE what features they implement, and what features they need. A feature is just a symbol, like 'EventLoop', 'OpenGLViewer', 'ImageProvider'... The IDE uses that to tell the user that some components need some other ones, or is not compatible with another component. * DataSource is now sortable, and DataView uses this new feature when you click on a column header. * A printing example made by Timothy Marshal-Nichols was added. * The MDI IDE now uses SidePanel for the property window and the toolbox. See the ChangeLog for the other changes and bug fixes at http://gambas.sf.net/changelog2.html. Enjoy it! Regards, -- Benoit Minisini From ronstk at ...239... Sun May 21 11:19:39 2006 From: ronstk at ...239... (ron) Date: Sun, 21 May 2006 11:19:39 +0200 Subject: [Gambas-user] Find color on point in drawingarea Message-ID: <200605211119.39722.ronstk@...239...> Hi all, Any bode who know how to get the color information of a point in the DrawingArea ? In this area I have drawn several lines where the x/y point for start en end location are in a array. I need to find on a MouseDown event on a line the index in that array. pts[0]=[1,2,3,4] pts[1]=[5,6,7,8] draw.begin(DrawingArea) for x = 0 to pts.count-1 t=pts[x] draw.line(t[0],t[1],t[2],t[3]) next draw.end sub DA_MouseDown() 'find if point by mouse.x and .y is drawn in linecolor checkhit how? end TIA Ron. From mwuest at ...1436... Sun May 21 16:59:31 2006 From: mwuest at ...1436... (Michi) Date: Sun, 21 May 2006 16:59:31 +0200 Subject: AW: [Gambas-user] UDP Broadcast In-Reply-To: Message-ID: Hi again. Finally I made it to patch the gb.net source code to no longer complain about the broadcast adress "255.255.255.255". I added setsocketopt to the write-routine and to the dgram_start-routine in CUDPSOCKET.C Now there is a new problem. Gambas/Debian does not seem to receive UDP broadcasts from systems being from another subnet. Meaning: PC1 having 192.168.181.20 Meaning: PC2 having 182.168.181.123 Is there again any trick with this? Thanks, bye, Michael. From gambas at ...1... Sun May 21 20:30:50 2006 From: gambas at ...1... (Benoit Minisini) Date: Sun, 21 May 2006 20:30:50 +0200 Subject: AW: [Gambas-user] UDP Broadcast In-Reply-To: References: Message-ID: <200605212030.50757.gambas@...1...> On Sunday 21 May 2006 16:59, Michi wrote: > Hi again. > > Finally I made it to patch the gb.net source code > to no longer complain about the broadcast adress > "255.255.255.255". > > I added setsocketopt to the write-routine and to > the dgram_start-routine in CUDPSOCKET.C > > Now there is a new problem. > > Gambas/Debian does not seem to receive UDP broadcasts > from systems being from another subnet. > > Meaning: PC1 having 192.168.181.20 > Meaning: PC2 having 182.168.181.123 > > Is there again any trick with this? > > Thanks, > bye, > Michael. > If I remember, UDP broadcast packets have a "Time To Live" option that is the number of subnet it can go through. This number is one by default, so by default UDP broadcasts stay in the same subnet. But I can be wrong, as I am not a network specialist! I will add all useful TCP/UDP/IP socket options as I did with the Broadcast property in 1.9.30. Regards, -- Benoit Minisini From thierry at ...342... Sun May 21 22:40:56 2006 From: thierry at ...342... (Thierry Thomas) Date: Sun, 21 May 2006 22:40:56 +0200 Subject: [Gambas-user] v. 1.9.30 - gb.pdf and poppler-0.5.1. Message-ID: <20060521204056.GC65963@...343...> Hello, Is it possible to build gb.pdf with poppler v. 0.5.1? It fails here with the following message: if /bin/sh /usr/local/bin/libtool --tag=CXX --mode=compile c++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/X11R6/include/poppler -I/usr/X11R6/include -I/usr/local/include -pipe -Wall -fno-exceptions -Wno-unused-value -g -Os -fno-omit-frame-pointer -MT main.lo -MD -MP -MF ".deps/main.Tpo" -c -o main.lo main.cpp; \ then mv -f ".deps/main.Tpo" ".deps/main.Plo"; else rm -f ".deps/main.Tpo"; exit 1; fi c++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/X11R6/include/poppler -I/usr/X11R6/include -I/usr/local/include -pipe -Wall -fno-exceptions -Wno-unused-value -g -Os -fno-omit-frame-pointer -MT main.lo -MD -MP -MF .deps/main.Tpo -c main.cpp -fPIC -DPIC -o .libs/main.o main.cpp: In function `int GB_INIT()': main.cpp:63: error: 'class GlobalParams' has no member named 'setupBaseFontsFc' gmake[4]: *** [main.lo] Erreur 1 There is no setupBaseFontsFc in GlobalParams.h. Regards, -- Th. Thomas. From sirfabien at ...626... Sun May 21 22:54:33 2006 From: sirfabien at ...626... (Fabien Bodard) Date: Sun, 21 May 2006 22:54:33 +0200 Subject: [Gambas-user] v. 1.9.30 - gb.pdf and poppler-0.5.1. In-Reply-To: <20060521204056.GC65963@...343...> References: <20060521204056.GC65963@...343...> Message-ID: <200605212254.33355.sirfabien@...626...> Le Sunday 21 Mai 2006 22:40, Thierry Thomas a ?crit?: > Hello, > > Is it possible to build gb.pdf with poppler v. 0.5.1? > > It fails here with the following message: > > if /bin/sh /usr/local/bin/libtool --tag=CXX --mode=compile c++ > -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/X11R6/include/poppler > -I/usr/X11R6/include -I/usr/local/include -pipe -Wall -fno-exceptions > -Wno-unused-value -g -Os -fno-omit-frame-pointer -MT main.lo -MD -MP -MF > ".deps/main.Tpo" -c -o main.lo main.cpp; \ then mv -f ".deps/main.Tpo" > ".deps/main.Plo"; else rm -f ".deps/main.Tpo"; exit 1; fi c++ > -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/X11R6/include/poppler > -I/usr/X11R6/include -I/usr/local/include -pipe -Wall -fno-exceptions > -Wno-unused-value -g -Os -fno-omit-frame-pointer -MT main.lo -MD -MP -MF > .deps/main.Tpo -c main.cpp -fPIC -DPIC -o .libs/main.o main.cpp: In > function `int GB_INIT()': > main.cpp:63: error: 'class GlobalParams' has no member named > 'setupBaseFontsFc' gmake[4]: *** [main.lo] Erreur 1 > > There is no setupBaseFontsFc in GlobalParams.h. > > Regards, Yop same error for me and only since this version. Fabien From gambas at ...1... Sun May 21 23:07:18 2006 From: gambas at ...1... (Benoit Minisini) Date: Sun, 21 May 2006 23:07:18 +0200 Subject: [Gambas-user] Re: [Gambas-devel] Release of gambas 1.9.30 In-Reply-To: <7259b5ae0605211017g3eac1e19m33bea6d4d849ea27@...627...> References: <200605210031.19713.gambas@...1...> <7259b5ae0605211017g3eac1e19m33bea6d4d849ea27@...627...> Message-ID: <200605212307.18966.gambas@...1...> On Sunday 21 May 2006 19:17, Daniel Campos wrote: > Hi: > > The new IDE seems to be unuseable: once you write the name of a module or > class and write the dot to see the autocompletion window, the window in > which you are writting dissapears... > > Daniel > It seems that MDI child activate event is raised even if the window is not activated. Maybe a QWorkspace bug again... :-( I will see if I can find a workaround. Regards, -- Benoit Minisini From mwuest at ...1436... Sun May 21 23:31:21 2006 From: mwuest at ...1436... (Michi) Date: Sun, 21 May 2006 23:31:21 +0200 Subject: AW: AW: [Gambas-user] UDP Broadcast In-Reply-To: <200605212030.50757.gambas@...1...> Message-ID: Hello, I checked it more than once. I also realized that the broadcasts packages not really leave the system... I checked it with Ethereal. As soon as the broadcasting system leaves the subnet and enters its own, the broadcasts are no longer received. I checked the system with Ethereal running with a GPS time server doing NTP broadcasts... Are there any Debian-specific tricks regarding kernel setups and/or system configurations??? Thanks, bye, Michael. PS: TTL AFAIK is for Multicast. PPS: I also checked your 1.9.30 sourcecode. You are quite doing the same in your sourcecode like I did in my "tweak". I just hardcoded setting SO_BROADCAST to "1" whereas you gave us the option... On Sunday 21 May 2006 16:59, Michi wrote: > Hi again. > > Finally I made it to patch the gb.net source code > to no longer complain about the broadcast adress > "255.255.255.255". > > I added setsocketopt to the write-routine and to > the dgram_start-routine in CUDPSOCKET.C > > Now there is a new problem. > > Gambas/Debian does not seem to receive UDP broadcasts > from systems being from another subnet. > > Meaning: PC1 having 192.168.181.20 > Meaning: PC2 having 182.168.181.123 > > Is there again any trick with this? > > Thanks, > bye, > Michael. > If I remember, UDP broadcast packets have a "Time To Live" option that is the number of subnet it can go through. This number is one by default, so by default UDP broadcasts stay in the same subnet. But I can be wrong, as I am not a network specialist! I will add all useful TCP/UDP/IP socket options as I did with the Broadcast property in 1.9.30. Regards, -- Benoit Minisini ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Mon May 22 00:45:15 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 22 May 2006 00:45:15 +0200 Subject: [Gambas-user] Re: [Gambas-devel] Release of gambas 1.9.30 In-Reply-To: <200605212307.18966.gambas@...1...> References: <200605210031.19713.gambas@...1...> <7259b5ae0605211017g3eac1e19m33bea6d4d849ea27@...627...> <200605212307.18966.gambas@...1...> Message-ID: <200605220045.16199.gambas@...1...> On Sunday 21 May 2006 23:07, Benoit Minisini wrote: > On Sunday 21 May 2006 19:17, Daniel Campos wrote: > > Hi: > > > > The new IDE seems to be unuseable: once you write the name of a module or > > class and write the dot to see the autocompletion window, the window in > > which you are writting dissapears... > > > > Daniel > > It seems that MDI child activate event is raised even if the window is not > activated. Maybe a QWorkspace bug again... :-( I will see if I can find a > workaround. > > Regards, Can you try this patch Daniel ? -- Benoit Minisini -------------- next part -------------- A non-text attachment was scrubbed... Name: CWorkspace.cpp Type: text/x-c++src Size: 5658 bytes Desc: not available URL: From timothy.marshal-nichols at ...247... Mon May 22 07:21:44 2006 From: timothy.marshal-nichols at ...247... (Timothy Marshal-Nichols) Date: Mon, 22 May 2006 06:21:44 +0100 Subject: [Gambas-user] Find color on point in drawingarea In-Reply-To: <200605211119.39722.ronstk@...239...> Message-ID: Try this. The Grab() function on a control returns a Picture. But you can not get the color of a point from a Picture. You get the color from a Image. So convert the Picture to a Image. Then its easy. PUBLIC SUB Form_Open() DrawingAreaColor.Cached = TRUE DrawingAreaColor.BackColor = Color.White Draw.Begin(DrawingAreaColor) Draw.ForeColor = Color.Blue Draw.Line(10, 10, 290, 10) Draw.ForeColor = Color.Red Draw.Line(290, 10, 290, 290) Draw.ForeColor = Color.DarkGreen Draw.Line(290, 290, 10, 290) Draw.ForeColor = Color.DarkYellow Draw.Line(10, 290, 10, 10) Draw.End END PUBLIC SUB DrawingAreaColor_MouseDown() DIM c AS Integer c = DrawingAreaColor.Grab().Image[Mouse.X, Mouse.Y] PRINT "Color: 0x" & Hex(c, 6) & " at " & Mouse.X & ", " & Mouse.Y END Thanks 8-{)} Timothy Marshal-Nichols > -----Original Message----- > From: gambas-user-admin at lists.sourceforge.net > [mailto:gambas-user-admin at lists.sourceforge.net]On Behalf Of ron > Sent: Sunday, 21 May 2006 10:20 > To: gambas-user at lists.sourceforge.net > Subject: [Gambas-user] Find color on point in drawingarea > > > Hi all, > > Any bode who know how to get the color information of a point > in the DrawingArea ? > > In this area I have drawn several lines where the x/y point for > start en end location are in a array. > I need to find on a MouseDown event on a line the index in that array. > > pts[0]=[1,2,3,4] > pts[1]=[5,6,7,8] > > draw.begin(DrawingArea) > for x = 0 to pts.count-1 > t=pts[x] > draw.line(t[0],t[1],t[2],t[3]) > next > draw.end > > sub DA_MouseDown() > 'find if point by mouse.x and .y is drawn in linecolor > checkhit how? > end > > > TIA Ron. > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make > your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rospolosco at ...152... Tue May 23 01:30:14 2006 From: rospolosco at ...152... (Stefano Palmeri) Date: Tue, 23 May 2006 01:30:14 +0200 Subject: [Gambas-user] again special chars Message-ID: <200605230130.14153.rospolosco@...152...> Hi, all. Hi, Benoit. Here again, disturbing you with the special chars issue. Good news: with the last 1.9.30 I'm always able to type the Italian special chars when I edit a class, a text file, et cetera... Bad news: the problem is still there in the Editor control from gb.qt.ext. This also happens with Spanish and German particular chars. Benoit, excuse me for disturbing you again with this stuff... Regards, Stefano Palmeri -------------- next part -------------- A non-text attachment was scrubbed... Name: german.jpg Type: image/jpeg Size: 8209 bytes Desc: not available URL: From stefanopalmeri at ...152... Tue May 23 01:35:52 2006 From: stefanopalmeri at ...152... (Stefano Palmeri) Date: Tue, 23 May 2006 01:35:52 +0200 Subject: [Gambas-user] [Gambas-devel] Release of gambas 1.9.30 In-Reply-To: <200605220045.16199.gambas@...1...> References: <200605210031.19713.gambas@...1...> <200605212307.18966.gambas@...1...> <200605220045.16199.gambas@...1...> Message-ID: <200605230135.52834.stefanopalmeri@...152...> Alle 00:45, luned? 22 maggio 2006, Benoit Minisini ha scritto: > On Sunday 21 May 2006 23:07, Benoit Minisini wrote: > > On Sunday 21 May 2006 19:17, Daniel Campos wrote: > > > Hi: > > > > > > The new IDE seems to be unuseable: once you write the name of a module or > > > class and write the dot to see the autocompletion window, the window in > > > which you are writting dissapears... > > > > > > Daniel > > > > It seems that MDI child activate event is raised even if the window is not > > activated. Maybe a QWorkspace bug again... :-( I will see if I can find a > > workaround. > > > > Regards, > > Can you try this patch Daniel ? > > -- > Benoit Minisini > I had the same problem as Daniel Campos in 1.9.29. I tried the patch in 1.9.30 and the little bug seems disappeared. Regards, Stefano Palmeri From ronstk at ...239... Tue May 23 04:42:44 2006 From: ronstk at ...239... (ron) Date: Tue, 23 May 2006 04:42:44 +0200 Subject: [Gambas-user] Find color on point in drawingarea In-Reply-To: References: Message-ID: <200605230442.45384.ronstk@...239...> On Monday 22 May 2006 07:21, Timothy Marshal-Nichols wrote: > ? DIM c AS Integer > ? c = DrawingAreaColor.Grab().Image[Mouse.X, Mouse.Y] > ? PRINT "Color: 0x" & Hex(c, 6) & " at " & Mouse.X & ", " & Mouse.Y > Thanks voor the code, it works but I have chosen an other way now. I draw the lines in a batch with the normal draw method. For the mouse down I draw the lines dot by dot, in fact calculate only the poinst, and check for a collision with the mouse x/y position. This way I'm able to have a hit if the mouse x/y point is fictive upsized to not 1 but 3 pixels width/height. Following the constuction of your code with usage of .Grab in the help was interesting. The code is stored in project anyway. :) Thanks anyway, Ron From joe1962 at ...626... Tue May 23 06:30:57 2006 From: joe1962 at ...626... (Jose J. Rodriguez) Date: Tue, 23 May 2006 00:30:57 -0400 Subject: [Gambas-user] Re: TextLabel misbehaving inside ScrollView. In-Reply-To: <200605071745.08521.gambas@...1...> References: <6c208f950605040211v38c8d8cage6cb5a335e13455c@...627...> <200605060814.15692.gambas@...1...> <6c208f950605060108u37c4b6dn5aca359d9a10a84@...627...> <200605071745.08521.gambas@...1...> Message-ID: <6c208f950605222130y59b21400xdf30d0817385400b@...627...> On 5/7/06, Benoit Minisini wrote: > On Saturday 06 May 2006 10:08, Jose J. Rodriguez wrote: > > On 5/6/06, Benoit Minisini wrote: > > > On Saturday 06 May 2006 03:33, Jose J. Rodriguez wrote: > > > > On 5/4/06, Jose J. Rodriguez wrote: > > > > > Hello, > > > > > > > > > > I'm trying to get a vertically scrollable TextLabel by embedding it > > > > > inside a ScrollView, but when I set Textlabel.Autoresize to True, it > > > > > becomes wider than the client area of the ScrollView, in fact, wider > > > > > than the ScrollView control itself, as I can see if I activate both > > > > > scrollbars. It doesn't matter if I set the TextLabel to Expand or > > > > > not, nor does it matter which Arrangement I set for the ScrollView. > > > > > If I manually set the width to Scroll.ClientWidth, I lose text at the > > > > > bottom of the TextLabel. The ScrollView has Expand = True, in case > > > > > this has anything to do with it. > > > > > > > > > > This is in Gambas 1.9.29. > > > > > > > > Still getting nowhere with this. I'd really appreciate a solution, > > > > workaround (like how to know the height of the TextLabel needed to fit > > > > the text, etc) or at least acknowledgement of the problem, as I'm sort > > > > of stuck at this point on the installer project. The full blown html > > > > component is not feasable for this, as it means adding another > > > > component and also reduces the possibility if porting to the gtk > > > > component later. > > > > > > > > Regards, > > > > Joe1962 > > > > > > There is no real solution at the moment, but you can use a TextView > > > instead of a TextLabel, because it has a TextWidth and TextHeight > > > property. > > > > Like I tried to say, TextView needs another component and has no > > equivalent in GTK component. Also, it doesn't have "Padding", heh heh. > > What TextView needs is a "AutoResize direction", with possible values > > of horizontal, vertical and both. > > > > Regards, > > Joe1962 > > > > TextLabel is just for displaying a simple and short HTML text. The problem is > that TextView needs to be implemented in the GTK component. Adding features > to the Qt version of TextLabel does not mean that the GTK one will have them > automagically! > I know, but the stated objective is to try and have plug and play replacement between qt and gtk components. I'm now using a workaround, no Textlabel.Autoresize, I set the width in code to fit the ScrollView, and set a height that will fit the longest text I use. Is there at least the possibility to add a property that returns the neccesary height needed for the text to fit after setting the width? No problem if the answer is no, but it would be a nice addition for this kind of use. Regards, Joe1962 From gambas at ...1... Tue May 23 07:28:20 2006 From: gambas at ...1... (Benoit Minisini) Date: Tue, 23 May 2006 07:28:20 +0200 Subject: [Gambas-user] again special chars In-Reply-To: <200605230130.14153.rospolosco@...152...> References: <200605230130.14153.rospolosco@...152...> Message-ID: <200605230728.20542.gambas@...1...> On Tuesday 23 May 2006 01:30, Stefano Palmeri wrote: > Hi, all. Hi, Benoit. > > Here again, disturbing you with the special chars issue. > > Good news: with the last 1.9.30 I'm always able to type > the Italian special chars when I edit a class, a text file, et cetera... > > Bad news: the problem is still there in the Editor control > from gb.qt.ext. This also happens with Spanish and > German particular chars. > > Benoit, excuse me for disturbing you again with this stuff... > > Regards, > > Stefano Palmeri Can you send me a little project and tell me how to reproduce the bug? -- Benoit Minisini From eilert-sprachen at ...221... Tue May 23 10:37:53 2006 From: eilert-sprachen at ...221... (Eilert) Date: Tue, 23 May 2006 10:37:53 +0200 Subject: [Gambas-user] Why 1.9.x doesn't show up Message-ID: <4472C9E1.3050506@...221...> Morning, Benoit, is there a log file by the gbx2 binaries where I might find a hint to what causes Gambas2 to not show up on my system? Or can I start it with an option that gives error messages? You'll remember: since you introduced MDI, Gambas will run like "hidden" on my system, i. e. it's running but you cannot see any windows (the only thing you get to see is the greeting window). By the way, the dancing symbol KDE produces doesn't stop, so KDE never knows that Gambas2 has started. But the binary is in the list of processes, and if you just log out and log in again, Gambas will pop up and greet again. But there should be a way to find out where it hangs... :-) Maybe some too old library or something missing on my system? Regards Rolf From stefanopalmeri at ...152... Tue May 23 16:32:26 2006 From: stefanopalmeri at ...152... (Stefano Palmeri) Date: Tue, 23 May 2006 16:32:26 +0200 Subject: [Gambas-user] again special chars In-Reply-To: <200605230728.20542.gambas@...1...> References: <200605230130.14153.rospolosco@...152...> <200605230728.20542.gambas@...1...> Message-ID: <200605231632.26794.stefanopalmeri@...152...> Alle 07:28, marted? 23 maggio 2006, Benoit Minisini ha scritto: > > Bad news: the problem is still there in the Editor control > > from gb.qt.ext. ?This also happens with Spanish and > > German particular chars. > > > > Benoit, excuse me for disturbing you again with this stuff... > > > > Regards, > > > > Stefano Palmeri > > Can you send me a little project and tell me how to reproduce the bug? > > -- > Benoit Minisini Well. I've attached a little project. In the form there are a Textbox and a Editor control. When I type in the Textbox all chars are correctly displayed; when I type in the Editor the special chars are not and I get strange chars. The bug comes up when I run the project from the Gambas2 IDE and also after compiling and running it from console. I don't do anything special: I just type those particular chars in the Textbox and in the Editor, getting different output. My keyboard is Italian; to reproduce Spanish and German chars I used the Keyboard layout utility from KDE Control Center --> Regional and Accessibility. I used that tool only to test particular chars other than Italian; normally, I don't use it. Also I've attached two screenshots of the project running and testing Italian and Spanish. Regards, Stefano Palmeri -------------- next part -------------- A non-text attachment was scrubbed... Name: special-chars-0.0.2.tar.gz Type: application/x-tgz Size: 1084 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: italian.jpg Type: image/jpeg Size: 7928 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: spanish.jpg Type: image/jpeg Size: 7926 bytes Desc: not available URL: From gambas at ...1... Tue May 23 19:28:02 2006 From: gambas at ...1... (Benoit Minisini) Date: Tue, 23 May 2006 19:28:02 +0200 Subject: [Gambas-user] Why 1.9.x doesn't show up In-Reply-To: <4472C9E1.3050506@...221...> References: <4472C9E1.3050506@...221...> Message-ID: <200605231928.02324.gambas@...1...> On Tuesday 23 May 2006 10:37, Eilert wrote: > Morning, Benoit, > > is there a log file by the gbx2 binaries where I might find a hint to > what causes Gambas2 to not show up on my system? > > Or can I start it with an option that gives error messages? > > You'll remember: since you introduced MDI, Gambas will run like "hidden" > on my system, i. e. it's running but you cannot see any windows (the > only thing you get to see is the greeting window). > > By the way, the dancing symbol KDE produces doesn't stop, so KDE never > knows that Gambas2 has started. But the binary is in the list of > processes, and if you just log out and log in again, Gambas will pop up > and greet again. > > But there should be a way to find out where it hangs... :-) Maybe some > too old library or something missing on my system? > > Regards > > Rolf > 1) Check that you compile it without optimization and with debugging information (this is the default normally). 2) Launch the IDE. 3) Get its process id with 'ps'. 4) Run gdb by telling it to attach to this process id, like that: $ gdb /usr/bin/gbx2 5) Stop it with CTRL+C in gdb. 6) Type bt, get the backtrace, and send it to me. Another useful information is launching the IDE with strace until it freezes, and sending the output. This way: $ cd $ strace gbx2 2> strace.out Regards, -- Benoit Minisini From na2492 at ...9... Tue May 23 19:33:43 2006 From: na2492 at ...9... (Charlie Reinl) Date: Tue, 23 May 2006 19:33:43 +0200 Subject: [Gambas-user] Why 1.9.x doesn't show up In-Reply-To: <4472C9E1.3050506@...221...> References: <4472C9E1.3050506@...221...> Message-ID: <1148405624.10340.2.camel@...37...> Am Dienstag, den 23.05.2006, 10:37 +0200 schrieb Eilert: > Morning, Benoit, > > is there a log file by the gbx2 binaries where I might find a hint to > what causes Gambas2 to not show up on my system? > > Or can I start it with an option that gives error messages? > > You'll remember: since you introduced MDI, Gambas will run like "hidden" > on my system, i. e. it's running but you cannot see any windows (the > only thing you get to see is the greeting window). > > By the way, the dancing symbol KDE produces doesn't stop, so KDE never > knows that Gambas2 has started. But the binary is in the list of > processes, and if you just log out and log in again, Gambas will pop up > and greet again. > > But there should be a way to find out where it hangs... :-) Maybe some > too old library or something missing on my system? > > Regards > > Rolf Salut Rolf, dit you try to start it from a xTerm ? Normaly there you can see the problems. Amicalment Charlie From gambas at ...1... Wed May 24 01:31:46 2006 From: gambas at ...1... (Benoit Minisini) Date: Wed, 24 May 2006 01:31:46 +0200 Subject: [Gambas-user] Re: [Gambas-devel] Release of gambas 1.9.30 In-Reply-To: <200605212253.25398.sirfabien@...626...> References: <200605210031.19713.gambas@...1...> <7259b5ae0605211017g3eac1e19m33bea6d4d849ea27@...627...> <200605212253.25398.sirfabien@...626...> Message-ID: <200605240131.47023.gambas@...1...> On Sunday 21 May 2006 22:53, Fabien Bodard wrote: > Le Sunday 21 Mai 2006 19:17, Daniel Campos a ?crit?: > > Hi, Benoit and Daniel, > > For me, no problem like Daniel but the side panel are unusable in a 1024 X > 768 resolution. if i want to design a form too big it's really not usefull. > > I think the for designer can't be in the same container (workspace). > > It remember a program i don't like ... krita... not for the capability but > for the same problem on 'little resolution'. I think today 1024X... i the > standard resolution... and the max that my laptop can do ! > > Regards, > Fabien Bodard > I reworked shortcuts, and added some to hide the side panels, and one shortcut (F10) to show/hide every visible side panels. Anyway, if your form is too big in the IDE with a 1024x768 resolution, it may be too big to the user at runtime with the same resolution :-) Regards, -- Benoit Minisini From gambas at ...1... Wed May 24 01:55:16 2006 From: gambas at ...1... (Benoit Minisini) Date: Wed, 24 May 2006 01:55:16 +0200 Subject: [Gambas-user] again special chars In-Reply-To: <200605231632.26794.stefanopalmeri@...152...> References: <200605230130.14153.rospolosco@...152...> <200605230728.20542.gambas@...1...> <200605231632.26794.stefanopalmeri@...152...> Message-ID: <200605240155.16549.gambas@...1...> On Tuesday 23 May 2006 16:32, Stefano Palmeri wrote: > Alle 07:28, marted? 23 maggio 2006, Benoit Minisini ha scritto: > > > Bad news: the problem is still there in the Editor control > > > from gb.qt.ext. ?This also happens with Spanish and > > > German particular chars. > > > > > > Benoit, excuse me for disturbing you again with this stuff... > > > > > > Regards, > > > > > > Stefano Palmeri > > > > Can you send me a little project and tell me how to reproduce the bug? > > > > -- > > Benoit Minisini > > Well. I've attached a little project. In the form there are a Textbox > and a Editor control. When I type in the Textbox all chars are > correctly displayed; when I type in the Editor the special chars > are not and I get strange chars. > The bug comes up when I run the project from the Gambas2 IDE and > also after compiling and running it from console. > > I don't do anything special: I just type those particular chars in > the Textbox and in the Editor, getting different output. > > My keyboard is Italian; to reproduce Spanish and German > chars I used the Keyboard layout utility from KDE Control Center --> > Regional and Accessibility. I used that tool only to test particular > chars other than Italian; normally, I don't use it. > > Also I've attached two screenshots of the project running and testing > Italian and Spanish. > > Regards, > > Stefano Palmeri I have no problem with your project there. I tried a french keyboard, a spanish and an italian one. The code that gets the typed characters in the Editor source code is the same as in the QT source code (except a hack for hebrew language). Which version of QT is installed on your system? Do you use a specific input method? You can see it with the qtconfig program, which must be installed with qt. Regards, -- Benoit Minisini From stefanopalmeri at ...152... Wed May 24 02:39:19 2006 From: stefanopalmeri at ...152... (Stefano Palmeri) Date: Wed, 24 May 2006 02:39:19 +0200 Subject: [Gambas-user] again special chars In-Reply-To: <200605240155.16549.gambas@...1...> References: <200605230130.14153.rospolosco@...152...> <200605231632.26794.stefanopalmeri@...152...> <200605240155.16549.gambas@...1...> Message-ID: <200605240239.19631.stefanopalmeri@...152...> Alle 01:55, mercoled? 24 maggio 2006, Benoit Minisini ha scritto: > Which version of QT is installed on your system? Do you use a specific input > method? You can see it with the qtconfig program, which must be installed > with qt. > > Regards, > > -- > Benoit Minisini QT version is 3.3.2. I don't use any particular input method. Probably the bug is related with my system. Anyway, thanks for helping me. Regards, Stefano Palmeri From gambas at ...1... Wed May 24 02:42:39 2006 From: gambas at ...1... (Benoit Minisini) Date: Wed, 24 May 2006 02:42:39 +0200 Subject: [Gambas-user] prb:Left() does not work correct. In-Reply-To: <200605090256.25910.ronstk@...239...> References: <200604232329.16829.ronstk@...239...> <200605082223.57230.gambas@...1...> <200605090256.25910.ronstk@...239...> Message-ID: <200605240242.39160.gambas@...1...> On Tuesday 09 May 2006 02:56, ron wrote: > On Monday 08 May 2006 22:23, Benoit Minisini wrote: > > Can you send me your project, or better, can you isolate the bug and send > > me a stripped project that reproduce the bug? > > > > Thanks in advance. > > > > Regards, > > Ok here it is in very stripped form > On the bottom of the form is told what to do. > > Happy programming, > > Ron Your project works correctly there (1.9.30 and qt 3.3.4 on Mandriva 2006). Do you have the problem yet? -- Benoit Minisini From ronstk at ...239... Wed May 24 02:50:48 2006 From: ronstk at ...239... (ron) Date: Wed, 24 May 2006 02:50:48 +0200 Subject: [Gambas-user] prb:Left() does not work correct. In-Reply-To: <200605240242.39160.gambas@...1...> References: <200604232329.16829.ronstk@...239...> <200605090256.25910.ronstk@...239...> <200605240242.39160.gambas@...1...> Message-ID: <200605240250.48638.ronstk@...239...> On Wednesday 24 May 2006 02:42, Benoit Minisini wrote: > On Tuesday 09 May 2006 02:56, ron wrote: > > On Monday 08 May 2006 22:23, Benoit Minisini wrote: > > > Can you send me your project, or better, can you isolate the bug and send > > > me a stripped project that reproduce the bug? > > > > > > Thanks in advance. > > > > > > Regards, > > > > Ok here it is in very stripped form > > On the bottom of the form is told what to do. > > > > Happy programming, > > > > Ron > > Your project works correctly there (1.9.30 and qt 3.3.4 on Mandriva 2006). Do > you have the problem yet? > I do not know, because 1.9.30 not yet installed. I'm silent waiting for bug reports on it, but it seams to be less as in the past once happend. The workspace bug from Daniel & Fabien, was it Gtk related? I do not see other reporting that one. Maybe I try thuesday, I let you know the result. Haven't you try it on 1.9.29? Greets rainy holland :( Ron From ronstk at ...239... Wed May 24 02:57:51 2006 From: ronstk at ...239... (ron) Date: Wed, 24 May 2006 02:57:51 +0200 Subject: [Gambas-user] Wish: image path from project tree In-Reply-To: <200605131446.09247.ronstk@...239...> References: <200605131446.09247.ronstk@...239...> Message-ID: <200605240257.51192.ronstk@...239...> On Saturday 13 May 2006 14:46, ron wrote: > > I add simple code in FMain to be able to get the path > of a image/object in the Data directory. > > This is done to get the path of the object and able > to paste it in the editor code. > > Note: the .Visible property is not what is should be in > logical sence seen as the other above it but it looks > that it works then only 1 time. :( > > I did need a quick working method and this do the job. :) > > Patch and code below > ------------------------------------------------ > in FMain.form > { mnuPopup Menu > ... > { mnuPropertyFile Menu > Text = ("&Properties...") > Picture = Picture["img/16/sheet.png"] > } > { mnuCopyPath Menu > Text = ("CopyPath") > Picture = Picture["img/16/text.png"] > } > } > > the entry 'mnuCopyPath' (4 lines using menu editor) > ------------------------------------------------ > in FMain.class > in PUBLIC SUB mnuPopup_Show() > > bFile = (NOT Project.IsClassName(sCurrent)) AND bCurrent > mnuCut.Visible = mnuCut.Visible AND (bFile AND NOT IsDir($sKey)) > mnuCopy.Visible = mnuCopy.Visible AND (bFile AND NOT IsDir($sKey)) > mnuPaste.Visible = mnuPaste.Visible AND (bFile OR $sKey = Project.KEY_MISC) AND Clipboard.Format = FILE_CLIPBOARD_FORMAT > > ' > mnuCopyPath.Visible = mnuCopy.Visible > ' > > mnuAddForm.Visible = Project.AllowForm() > then part > ------------------------------------------------ > > in FMain.class a subroutine just below the 'mnuCopy_Click()' > > ' > PUBLIC SUB mnuCopyPath_Click() > DIM sPath AS String > sPath = GetCurrent() > sPath = Mid$(sPath, Len(project.Dir) + 2) > Clipboard.Copy(sPath, "text/plain") 'FILE_CLIPBOARD_FORMAT) > END > ' > ------------------------------------------------ > > > Smiling, > > Ron Kick, Is it add to 1.9.30 as I like it much? Ron From gambas at ...1... Wed May 24 03:07:31 2006 From: gambas at ...1... (Benoit Minisini) Date: Wed, 24 May 2006 03:07:31 +0200 Subject: [Gambas-user] Wish: image path from project tree In-Reply-To: <200605240257.51192.ronstk@...239...> References: <200605131446.09247.ronstk@...239...> <200605240257.51192.ronstk@...239...> Message-ID: <200605240307.31573.gambas@...1...> On Wednesday 24 May 2006 02:57, ron wrote: > On Saturday 13 May 2006 14:46, ron wrote: > > I add simple code in FMain to be able to get the path > > of a image/object in the Data directory. > > > > This is done to get the path of the object and able > > to paste it in the editor code. > > > > Note: the .Visible property is not what is should be in > > logical sence seen as the other above it but it looks > > that it works then only 1 time. :( > > > > I did need a quick working method and this do the job. :) > > > > Patch and code below > > ------------------------------------------------ > > in FMain.form > > { mnuPopup Menu > > ... > > { mnuPropertyFile Menu > > Text = ("&Properties...") > > Picture = Picture["img/16/sheet.png"] > > } > > { mnuCopyPath Menu > > Text = ("CopyPath") > > Picture = Picture["img/16/text.png"] > > } > > } > > > > the entry 'mnuCopyPath' (4 lines using menu editor) > > ------------------------------------------------ > > in FMain.class > > in PUBLIC SUB mnuPopup_Show() > > > > bFile = (NOT Project.IsClassName(sCurrent)) AND bCurrent > > mnuCut.Visible = mnuCut.Visible AND (bFile AND NOT IsDir($sKey)) > > mnuCopy.Visible = mnuCopy.Visible AND (bFile AND NOT IsDir($sKey)) > > mnuPaste.Visible = mnuPaste.Visible AND (bFile OR $sKey = > > Project.KEY_MISC) AND Clipboard.Format = FILE_CLIPBOARD_FORMAT > > > > ' > > mnuCopyPath.Visible = mnuCopy.Visible > > ' > > > > mnuAddForm.Visible = Project.AllowForm() > > then part > > ------------------------------------------------ > > > > in FMain.class a subroutine just below the 'mnuCopy_Click()' > > > > ' > > PUBLIC SUB mnuCopyPath_Click() > > DIM sPath AS String > > sPath = GetCurrent() > > sPath = Mid$(sPath, Len(project.Dir) + 2) > > Clipboard.Copy(sPath, "text/plain") 'FILE_CLIPBOARD_FORMAT) > > END > > ' > > ------------------------------------------------ > > > > > > Smiling, > > > > Ron > > Kick, > > Is it add to 1.9.30 as I like it much? > > Ron > I didn't add it, I forgot. I will see what I can do :-) Regards, -- Benoit Minisini From ronstk at ...239... Wed May 24 03:22:03 2006 From: ronstk at ...239... (ron) Date: Wed, 24 May 2006 03:22:03 +0200 Subject: [Gambas-user] Wish: image path from project tree In-Reply-To: <200605240307.31573.gambas@...1...> References: <200605131446.09247.ronstk@...239...> <200605240257.51192.ronstk@...239...> <200605240307.31573.gambas@...1...> Message-ID: <200605240322.03608.ronstk@...239...> On Wednesday 24 May 2006 03:07, Benoit Minisini wrote: > On Wednesday 24 May 2006 02:57, ron wrote: > > On Saturday 13 May 2006 14:46, ron wrote: ---8<---- > > Kick, > > > > Is it add to 1.9.30 as I like it much? > > > > Ron > > > > I didn't add it, I forgot. I will see what I can do :-) > > Regards, > Your late on programming? No problem, I can add it for me local here. Also the adds for the Editor, help browser and Find I have made. Have a good sleep, Ron From ronstk at ...239... Wed May 24 03:38:29 2006 From: ronstk at ...239... (ron) Date: Wed, 24 May 2006 03:38:29 +0200 Subject: [Gambas-user] popup Menu question Message-ID: <200605240338.29695.ronstk@...239...> Hello I have implemented a drag and drop function. At the moment of drop I need an answer on a popup menu. So I made a menu of 2 choises and use .pop PUBLIC SUB grdDrop2() DIM hMenu AS Menu IF NOT hMenus THEN hMenus = NEW Menu(ME) ME.hMenus.Children.Clear hmenu = NEW menu(hMenus) AS "grdAction2" hmenu.Caption = "Move" hmenu.tag = FALSE hmenu = NEW menu(hMenus) AS "grdAction2" hmenu.Caption = "Swap" hmenu.tag = TRUE hmenus.Popup END PUBLIC SUB grdAction2_Click() bMove = LAST.tag END in the drop sub if drag.source=a then ... endif if drag.source=b then grdDrop2 if bMove then 'do move else 'do swap endif endif Now I found when I use move several times it moves When I use then swap it does move and on repeat the swap again it does the swap. The chosen menu entry is delayed 1 drop/click, it's not direct used but the next time I do the drop. Using ..move1,swap2,move3,swap4,swap5,swap6 does ..swap0,move1,swap2,move3,swap4,swap5 Ron From nando_f at ...1382... Wed May 24 09:04:23 2006 From: nando_f at ...1382... (nando) Date: Wed, 24 May 2006 03:04:23 -0400 Subject: [Gambas-user] Asking about a new Command Message-ID: <20060524065111.M51979@...1382...> Benoit, I would like to know if it is possible to add a statement like: DELAY <--deliberately let the kernel use the CPU for other processes. -or- DELAY 0.5 <--let 1/2 second go by, processes no events and not hog the CPU, deliberately let the kernel use the CPU for other processes. It would be similar to WAIT except it would not process events. It would simply keep the CPU from being tied up. For example: I need to wait a small amount of time inside a SUB, but I cannot have events processed until the sub is completed. I have tried using WAIT in both forms, but the events get processed incorrectly. Using a loop and looking at TIMER or TIME$ for the appropriate delay only uses the CPU too much. A DELAY would make it CPU friendlier. Could this be done and what amount of time do you think it would take so I could calculate a donation ? -Fernando From gambas at ...1443... Wed May 24 09:46:18 2006 From: gambas at ...1443... (gambas at ...1443...) Date: Wed, 24 May 2006 02:46:18 -0500 (CDT) Subject: [Gambas-user] Problem with Gambas 1.0.1-4 Message-ID: <1080.165.146.21.200.1148456778.squirrel@...1444...> Hello, I have a problem on Gambas that I cannot seem to fix. An explanation follows. I had installed gambas in SUSE from the SUSE disks and it was working fine. I then purchased a new graphics card which caused linux to change settings and instead of logging in graphically, all I had was the command line. I have managed to fix this by resetting my window manager. Since installing the graohics card I have been experiencing problems with gambas, an explanation follows. I connect to an sqlite database (the database name is hardcoded 'sqlite.test' ) and run a query on the sqlite_master table This query fills a tableview with the records. My problem is this,(Finally! ;) ) If I change the database name (in the code, it's hard coded) to a different database 'testing' the program still connects to the original database 'test.sqlite' and displays the info from its master table!! I have tried deleting sections of code, renaming the variable etc. even uninstalling gambas and re-installing it (from the SUSE disks) but nothing seems to have worked. Does anyone know if this will be resolved by installing a new version of gambas? P.S. I have tried other development packages on linux but gambas is the only one that a. worked and b. who's example programs actually work and run Brilliant! Thanks in advance Shaun From nigel at ...38... Wed May 24 09:52:46 2006 From: nigel at ...38... (nigel at ...38...) Date: Wed, 24 May 2006 09:52:46 +0200 (CEST) Subject: [Gambas-user] Problem with Gambas 1.0.1-4 Message-ID: <701840.1148457166055.JavaMail.www@...713...> Do you do the changes through the IDE or through a local editor. If not through the ide, then you will need to compile (in the loose form) the code by issuing gbc, then execute with gbx. Nigel > Message Received: May 24 2006, 08:47 AM > From: gambas at ...1443... > To: gambas-user at lists.sourceforge.net > Cc: > Subject: [Gambas-user] Problem with Gambas 1.0.1-4 > > Hello, > > I have a problem on Gambas that I cannot seem to fix. An explanation follows. > > I had installed gambas in SUSE from the SUSE disks and it was working fine. > I then purchased a new graphics card which caused linux to change settings > and instead of logging in graphically, all I had was the command line. > I have managed to fix this by resetting my window manager. > > Since installing the graohics card I have been experiencing problems with > gambas, an explanation follows. > > I connect to an sqlite database (the database name is hardcoded > 'sqlite.test' ) and run a query on the sqlite_master table > This query fills a tableview with the records. > > My problem is this,(Finally! ;) ) If I change the database name (in the > code, it's hard coded) to a different database 'testing' the program still > connects to the original database 'test.sqlite' and displays the info from > its master table!! > I have tried deleting sections of code, renaming the variable etc. even > uninstalling gambas and re-installing it (from the SUSE disks) but nothing > seems to have worked. > > Does anyone know if this will be resolved by installing a new version of > gambas? > > P.S. I have tried other development packages on linux but gambas is the > only one that a. worked and b. who's example programs actually work and > run > Brilliant! > > Thanks in advance > Shaun > > > ------------------------------------------------------- > All the advantages of Linux Managed Hosting--Without the Cost and Risk! > Fully trained technicians. The highest number of Red Hat certifications in > the hosting industry. Fanatical Support. Click to learn more > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From gambas at ...1443... Wed May 24 10:11:33 2006 From: gambas at ...1443... (gambas at ...1443...) Date: Wed, 24 May 2006 03:11:33 -0500 (CDT) Subject: [Gambas-user] Problem with Gambas 1.0.1-4 In-Reply-To: <701840.1148457166055.JavaMail.www@...713...> References: <701840.1148457166055.JavaMail.www@...713...> Message-ID: <1168.165.146.21.200.1148458293.squirrel@...1443...> > Do you do the changes through the IDE or through a local editor. > If not through the ide, then you will need to compile (in the loose form) > the code by issuing gbc, > then execute with gbx. > > Nigel > > >> Message Received: May 24 2006, 08:47 AM >> From: gambas at ...1443... >> To: gambas-user at lists.sourceforge.net >> Cc: >> Subject: [Gambas-user] Problem with Gambas 1.0.1-4 >> >> Hello, >> >> I have a problem on Gambas that I cannot seem to fix. An explanation >> follows. >> >> I had installed gambas in SUSE from the SUSE disks and it was working >> fine. >> I then purchased a new graphics card which caused linux to change >> settings >> and instead of logging in graphically, all I had was the command line. >> I have managed to fix this by resetting my window manager. >> >> Since installing the graohics card I have been experiencing problems >> with >> gambas, an explanation follows. >> >> I connect to an sqlite database (the database name is hardcoded >> 'sqlite.test' ) and run a query on the sqlite_master table >> This query fills a tableview with the records. >> >> My problem is this,(Finally! ;) ) If I change the database name (in the >> code, it's hard coded) to a different database 'testing' the program >> still >> connects to the original database 'test.sqlite' and displays the info >> from >> its master table!! >> I have tried deleting sections of code, renaming the variable etc. even >> uninstalling gambas and re-installing it (from the SUSE disks) but >> nothing >> seems to have worked. >> >> Does anyone know if this will be resolved by installing a new version of >> gambas? >> >> P.S. I have tried other development packages on linux but gambas is the >> only one that a. worked and b. who's example programs actually work and >> run >> Brilliant! >> >> Thanks in advance >> Shaun >> >> >> ------------------------------------------------------- >> All the advantages of Linux Managed Hosting--Without the Cost and Risk! >> Fully trained technicians. The highest number of Red Hat certifications >> in >> the hosting industry. Fanatical Support. Click to learn more >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> I do everything in the IDE which makes it more confusing. If I add a watch to the variable when I run the code it goes to the old database name 'test.sqlite' even though the text 'test.sqlite' exists nowhere in the project! I have been struggling with this for days before I saw that! Any advice on posting and replies would be appreciated, this is the first mailing list I have been on. Shaun From stefanopalmeri at ...152... Wed May 24 10:40:40 2006 From: stefanopalmeri at ...152... (Stefano Palmeri) Date: Wed, 24 May 2006 10:40:40 +0200 Subject: [Gambas-user] again special chars Message-ID: <200605241040.40644.stefanopalmeri@...152...> Hi, Benoit. Some (clues?) news: I noticed that my special chars bug comes up even if I set the Editor control text in the project code. The strange thing is that I can edit the class with those chars, but then the Editor control can't display the text (look at the screenshot). Regards, Stefano Palmeri -------------- next part -------------- A non-text attachment was scrubbed... Name: special-chars-0.0.3.tar.gz Type: application/x-tgz Size: 681 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: code_and_running.jpg Type: image/jpeg Size: 22418 bytes Desc: not available URL: From timothy.marshal-nichols at ...247... Wed May 24 11:27:40 2006 From: timothy.marshal-nichols at ...247... (Timothy Marshal-Nichols) Date: Wed, 24 May 2006 10:27:40 +0100 Subject: [Gambas-user] Asking about a new Command In-Reply-To: <20060524065111.M51979@...1382...> Message-ID: Have you tried: SHELL "sleep 0.5" WAIT Though I do not want to stop you making a donation to Gambas. Thanks 8-{)} Timothy Marshal-Nichols > -----Original Message----- > From: gambas-user-admin at lists.sourceforge.net > [mailto:gambas-user-admin at lists.sourceforge.net]On Behalf Of nando > Sent: Wednesday, 24 May 2006 08:04 > To: Benoit > Subject: [Gambas-user] Asking about a new Command > > > Benoit, > > I would like to know if it is possible to add a statement like: > > DELAY <--deliberately let the kernel use the CPU for other processes. > -or- > DELAY 0.5 <--let 1/2 second go by, processes no events and > not hog the CPU, deliberately let the kernel use the CPU for > other processes. > > It would be similar to WAIT except it would not process events. > It would simply keep the CPU from being tied up. > > For example: > > I need to wait a small amount of time inside a SUB, but I cannot > have events processed until the sub is completed. > > I have tried using WAIT in both forms, but the events get processed > incorrectly. > > Using a loop and looking at TIMER or TIME$ for the appropriate delay > only uses the CPU too much. A DELAY would make it CPU friendlier. > > Could this be done and what amount of time > do you think it would take so I could calculate a donation ? > > -Fernando > > > ------------------------------------------------------- > All the advantages of Linux Managed Hosting--Without the Cost and Risk! > Fully trained technicians. The highest number of Red Hat certifications in > the hosting industry. Fanatical Support. Click to learn more > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Wed May 24 13:00:27 2006 From: gambas at ...1... (Benoit Minisini) Date: Wed, 24 May 2006 13:00:27 +0200 Subject: [Gambas-user] popup Menu question In-Reply-To: <200605240338.29695.ronstk@...239...> References: <200605240338.29695.ronstk@...239...> Message-ID: <200605241300.27257.gambas@...1...> On Wednesday 24 May 2006 03:38, ron wrote: > Hello > > I have implemented a drag and drop function. > At the moment of drop I need an answer on a popup menu. > So I made a menu of 2 choises and use .pop > > PUBLIC SUB grdDrop2() > DIM hMenu AS Menu > IF NOT hMenus THEN hMenus = NEW Menu(ME) > ME.hMenus.Children.Clear > hmenu = NEW menu(hMenus) AS "grdAction2" > hmenu.Caption = "Move" > hmenu.tag = FALSE > hmenu = NEW menu(hMenus) AS "grdAction2" > hmenu.Caption = "Swap" > hmenu.tag = TRUE > hmenus.Popup > END > PUBLIC SUB grdAction2_Click() > bMove = LAST.tag > END > > in the drop sub > > if drag.source=a then > ... > endif > if drag.source=b then > grdDrop2 > if bMove then > 'do move > else > 'do swap > endif > endif > > Now I found when I use move several times it moves > When I use then swap it does move and on repeat the swap again > it does the swap. > The chosen menu entry is delayed 1 drop/click, it's not direct > used but the next time I do the drop. > Using > ..move1,swap2,move3,swap4,swap5,swap6 does > ..swap0,move1,swap2,move3,swap4,swap5 > > Ron > I think I see what you are talking about, but please try to polish a bit your english because your explanations are hard to understand, and send me a project too of course! Thanks in advance, Regards, -- Benoit Minisini From gambas at ...1... Wed May 24 13:03:13 2006 From: gambas at ...1... (Benoit Minisini) Date: Wed, 24 May 2006 13:03:13 +0200 Subject: [Gambas-user] again special chars In-Reply-To: <200605241040.40644.stefanopalmeri@...152...> References: <200605241040.40644.stefanopalmeri@...152...> Message-ID: <200605241303.13998.gambas@...1...> On Wednesday 24 May 2006 10:40, Stefano Palmeri wrote: > Hi, Benoit. > > Some (clues?) news: I noticed that my special chars bug comes > up even if I set the Editor control text in the project code. > > The strange thing is that I can edit the class with those chars, > but then the Editor control can't display the text (look at the > screenshot). > > > Regards, > > Stefano Palmeri Can you tell me: - The value of the $LC_ALL and $LANG environment variables. - The value of System.Charset in Gambas. -- Benoit Minisini From dcamposf at ...626... Wed May 24 13:12:55 2006 From: dcamposf at ...626... (Daniel Campos) Date: Wed, 24 May 2006 11:12:55 +0000 Subject: [Gambas-user] Re: [Gambas-devel] Release of gambas 1.9.30 In-Reply-To: <200605240131.47023.gambas@...1...> References: <200605210031.19713.gambas@...1...> <7259b5ae0605211017g3eac1e19m33bea6d4d849ea27@...627...> <200605212253.25398.sirfabien@...626...> <200605240131.47023.gambas@...1...> Message-ID: <7259b5ae0605240412q2f74e2e7t34247b2d68822bf5@...627...> Hi Benoit: Finally I found an internet connection. The patch works OK! Regards, Daniel 2006/5/23, Benoit Minisini : > > On Sunday 21 May 2006 22:53, Fabien Bodard wrote: > > Le Sunday 21 Mai 2006 19:17, Daniel Campos a ?crit: > > > > Hi, Benoit and Daniel, > > > > For me, no problem like Daniel but the side panel are unusable in a 1024 > X > > 768 resolution. if i want to design a form too big it's really not > usefull. > > > > I think the for designer can't be in the same container (workspace). > > > > It remember a program i don't like ... krita... not for the capability > but > > for the same problem on 'little resolution'. I think today 1024X... i > the > > standard resolution... and the max that my laptop can do ! > > > > Regards, > > Fabien Bodard > > > > I reworked shortcuts, and added some to hide the side panels, and one > shortcut > (F10) to show/hide every visible side panels. > > Anyway, if your form is too big in the IDE with a 1024x768 resolution, it > may > be too big to the user at runtime with the same resolution :-) > > Regards, > > -- > Benoit Minisini > > > > ------------------------------------------------------- > All the advantages of Linux Managed Hosting--Without the Cost and Risk! > Fully trained technicians. The highest number of Red Hat certifications in > the hosting industry. Fanatical Support. Click to learn more > http://sel.as-us.falkag.net/sel?cmdlnk&kid7521&bid$8729&dat1642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at ...1... Wed May 24 13:13:37 2006 From: gambas at ...1... (Benoit Minisini) Date: Wed, 24 May 2006 13:13:37 +0200 Subject: [Gambas-user] popup Menu question In-Reply-To: <200605240338.29695.ronstk@...239...> References: <200605240338.29695.ronstk@...239...> Message-ID: <200605241313.38073.gambas@...1...> On Wednesday 24 May 2006 03:38, ron wrote: > Hello > > I have implemented a drag and drop function. > At the moment of drop I need an answer on a popup menu. > So I made a menu of 2 choises and use .pop > > PUBLIC SUB grdDrop2() > DIM hMenu AS Menu > IF NOT hMenus THEN hMenus = NEW Menu(ME) > ME.hMenus.Children.Clear > hmenu = NEW menu(hMenus) AS "grdAction2" > hmenu.Caption = "Move" > hmenu.tag = FALSE > hmenu = NEW menu(hMenus) AS "grdAction2" > hmenu.Caption = "Swap" > hmenu.tag = TRUE > hmenus.Popup > END > PUBLIC SUB grdAction2_Click() > bMove = LAST.tag > END > > in the drop sub > > if drag.source=a then > ... > endif > if drag.source=b then > grdDrop2 > if bMove then > 'do move > else > 'do swap > endif > endif > > Now I found when I use move several times it moves > When I use then swap it does move and on repeat the swap again > it does the swap. > The chosen menu entry is delayed 1 drop/click, it's not direct > used but the next time I do the drop. > Using > ..move1,swap2,move3,swap4,swap5,swap6 does > ..swap0,move1,swap2,move3,swap4,swap5 > > Ron > OK, I understand... The menu click events are posted, they are delivered one event loop cycle later, and so after the Popup method returns. As a workaround, you can add a WAIT instruction after Popup. I will try anyway to fix that problem. Regards, -- Benoit Minisini From leonardo at ...1237... Wed May 24 17:42:59 2006 From: leonardo at ...1237... (Leonardo Miliani) Date: Wed, 24 May 2006 17:42:59 +0200 Subject: [Gambas-user] SDL problems Message-ID: <44747F03.2010703@...1237...> A few days ago I changed my SUSE, from 9.3 to 10.1. Now I have problems compiling the SDL components of Gambas. Even if I have in my system the SDL packages bundled with Suse 10.1 (SDL, SDL-devel, SDL_image, SDL_mixer, SDL_net, SDL_perl, SDL_ttf) I just can compile the CDROM SDL components, but during the compilation the configure script tells me that it cannot compile SDl image, SDL mixer and SDL opengl components. Here are the errors I get: --------------------------- " ..... checking for SDL headers... /usr/include/SDL/ checking for SDL libraries... /usr/lib/ checking for SDL sound headers... no checking for SDL sound libraries... no configure: WARNING: *** SDL sound is disabled checking for SDL 2D image headers... no checking for SDL 2D image libraries... no configure: WARNING: *** SDL 2D image is disabled checking for SDL OpenGL headers... no checking for SDL OpenGL libraries... /usr/lib/ configure: WARNING: *** SDL OpenGL is disabled ..... " ------------------------- I also tried to download and manually install libSDL from sources but I got same errors. -- Ciao. Leo Visita il mio sito personale: www.leonardomiliani.com e-mail: leonardo at ...1237... From lordheavy at ...512... Wed May 24 17:53:54 2006 From: lordheavy at ...512... (Laurent Carlier) Date: Wed, 24 May 2006 17:53:54 +0200 Subject: [Gambas-user] SDL problems In-Reply-To: <44747F03.2010703@...1237...> References: <44747F03.2010703@...1237...> Message-ID: <200605241753.55191.lordheavy@...512...> Le Mercredi 24 Mai 2006 17:42, Leonardo Miliani a ?crit?: > A few days ago I changed my SUSE, from 9.3 to 10.1. > Now I have problems compiling the SDL components of Gambas. > Even if I have in my system the SDL packages bundled with Suse 10.1 > (SDL, SDL-devel, SDL_image, SDL_mixer, SDL_net, SDL_perl, SDL_ttf) I > just can compile the CDROM SDL components, but during the compilation > the configure script tells me that it cannot compile SDl image, SDL > mixer and SDL opengl components. Here are the errors I get: > > --------------------------- > " > ..... > checking for SDL headers... /usr/include/SDL/ > checking for SDL libraries... /usr/lib/ > checking for SDL sound headers... no > checking for SDL sound libraries... no > configure: WARNING: *** SDL sound is disabled > checking for SDL 2D image headers... no > checking for SDL 2D image libraries... no > configure: WARNING: *** SDL 2D image is disabled > checking for SDL OpenGL headers... no > checking for SDL OpenGL libraries... /usr/lib/ > configure: WARNING: *** SDL OpenGL is disabled > ..... > " > ------------------------- > I also tried to download and manually install libSDL from sources but I > got same errors. You got a lot of chance :) i've just move my laptop to suse ... 10.1 and the solution is : You must add a ftp/http repository to yast because dvd/cd doesn't have the devels packages of SDL libs (ttf,image,...). Open Yast2 -> Change Install support -> add -> FTP -> into server name : ftp.belnet.be/mirrors/ftp.opensuse.org/opensuse/distribution/SL-10.1/inst-source/ Now you should have access to devel files :) Regards, -- jabber : lordheavy at ...943... mail : lordheavymREMOVEME at ...626... From sourceforge-raindog2 at ...94... Wed May 24 18:41:52 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Wed, 24 May 2006 12:41:52 -0400 Subject: [Gambas-user] Asking about a new Command In-Reply-To: <20060524065111.M51979@...1382...> References: <20060524065111.M51979@...1382...> Message-ID: <200605241241.52809.sourceforge-raindog2@...94...> On Wed May 24 2006 03:04, nando wrote: > I need to wait a small amount of time inside a SUB, but I > cannot have events processed until the sub is completed. What do you mean by "not have events processed"? You want the events to be dropped silently, which could cause any number of undebuggable problems with your code, or you need Benoit to implement some kind of cross-toolkit event queueing mechanism that intercepts events and then dispatches them after the delay? Because I think that would be a lot harder (and buggier) than you're imagining. Rob From gambas at ...1... Wed May 24 18:46:53 2006 From: gambas at ...1... (Benoit Minisini) Date: Wed, 24 May 2006 18:46:53 +0200 Subject: [Gambas-user] Asking about a new Command In-Reply-To: <20060524065111.M51979@...1382...> References: <20060524065111.M51979@...1382...> Message-ID: <200605241846.53176.gambas@...1...> On Wednesday 24 May 2006 09:04, nando wrote: > Benoit, > > I would like to know if it is possible to add a statement like: > > DELAY <--deliberately let the kernel use the CPU for other processes. > -or- > DELAY 0.5 <--let 1/2 second go by, processes no events and > not hog the CPU, deliberately let the kernel use the CPU for other > processes. > > It would be similar to WAIT except it would not process events. > It would simply keep the CPU from being tied up. > > For example: > > I need to wait a small amount of time inside a SUB, but I cannot > have events processed until the sub is completed. > > I have tried using WAIT in both forms, but the events get processed > incorrectly. > > Using a loop and looking at TIMER or TIME$ for the appropriate delay > only uses the CPU too much. A DELAY would make it CPU friendlier. > > Could this be done and what amount of time > do you think it would take so I could calculate a donation ? > > -Fernando > Why don't you want events to be processed during your wait? -- Benoit Minisini From ronstk at ...239... Wed May 24 18:58:50 2006 From: ronstk at ...239... (ron) Date: Wed, 24 May 2006 18:58:50 +0200 Subject: [Gambas-user] Asking about a new Command In-Reply-To: <20060524065111.M51979@...1382...> References: <20060524065111.M51979@...1382...> Message-ID: <200605241858.51059.ronstk@...239...> On Wednesday 24 May 2006 09:04, nando wrote: > For example: > > I need to wait a small amount of time inside a SUB, but I cannot > have events processed until the sub is completed. Can I get your ptoject? This is just what I want, but does not work here. In my project during a drop event I ask the user how it must be dropped. the answer is not used until the drop event is finished. Maybe some other routines, in your case, are not allowed when that sub is in action other should keep working, like a abort function. Let the Sub set a flag to block those alien functions. Today I add a, expecting a file, to amarok playlist but he want to add the whole directory with over 500 files over a ssh connection with password. No break button working shows me 500 popup shh logins and download popups :) Ron From stefanopalmeri at ...152... Wed May 24 19:19:48 2006 From: stefanopalmeri at ...152... (Stefano Palmeri) Date: Wed, 24 May 2006 19:19:48 +0200 Subject: [Gambas-user] again special chars In-Reply-To: <200605241303.13998.gambas@...1...> References: <200605241040.40644.stefanopalmeri@...152...> <200605241303.13998.gambas@...1...> Message-ID: <200605241919.48893.stefanopalmeri@...152...> Alle 13:03, mercoled? 24 maggio 2006, Benoit Minisini ha scritto: > On Wednesday 24 May 2006 10:40, Stefano Palmeri wrote: > > Hi, Benoit. > > > > Some (clues?) news: I noticed that my special chars bug comes > > up even if I set the Editor control text in the project code. > > > > The strange thing is that I can edit the class with those chars, > > but then the Editor control can't display the text (look at the > > screenshot). > > > > > > Regards, > > > > Stefano Palmeri > > Can you tell me: > - The value of the $LC_ALL and $LANG environment variables. > - The value of System.Charset in Gambas. > > -- > Benoit Minisini LC_ALL value is not set. LANG is it_IT. System.Charset is ISO-8859-1 Desktop.Charset is UTF-8 I've attached the output of env. I tried to set LC_ALL=it_IT or en_US, but the project still doesn't display those chars. Regards, Stefano Palmeri -------------- next part -------------- CPLUS_INCLUDE_PATH=/usr/lib/qt/include:/usr/lib/qt/include MANPATH=/usr/local/man:/usr/man:/usr/X11R6/man:/usr/lib/java/man:/usr/lib/qt/doc/man KDE_MULTIHEAD=false HOSTNAME=macondo.localhost DM_CONTROL=/var/run/xdmctl TERM=xterm SHELL=/bin/bash XDM_MANAGED=/var/run/xdmctl/xdmctl-:0,maysd,mayfn,sched,rsvd,method=classic GTK2_RC_FILES=/home/stefano/.gtkrc-2.0 GTK_RC_FILES=/etc/gtk/gtkrc:/home/stefano/.gtkrc:/home/stefano/.kde/share/config/gtkrc GS_LIB=/home/stefano/.fonts WINDOWID=41943048 QTDIR=/usr/lib/qt KDE_FULL_SESSION=true USER=stefano LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;32:*.bat=01;32:*.BAT=01;32:*.btm=01;32:*.BTM=01;32:*.cmd=01;32:*.CMD=01;32:*.com=01;32:*.COM=01;32:*.dll=01;32:*.DLL=01;32:*.exe=01;32:*.EXE=01;32:*.arj=01;31:*.bz2=01;31:*.deb=01;31:*.gz=01;31:*.lzh=01;31:*.rpm=01;31:*.tar=01;31:*.taz=01;31:*.tb2=01;31:*.tbz2=01;31:*.tbz=01;31:*.tgz=01;31:*.tz2=01;31:*.z=01;31:*.Z=01;31:*.zip=01;31:*.ZIP=01;31:*.zoo=01;31:*.asf=01;35:*.ASF=01;35:*.avi=01;35:*.AVI=01;35:*.bmp=01;35:*.BMP=01;35:*.flac=01;35:*.FLAC=01;35:*.gif=01;35:*.GIF=01;35:*.jpg=01;35:*.JPG=01;35:*.jpeg=01;35:*.JPEG=01;35:*.m2a=01;35:*.M2a=01;35:*.m2v=01;35:*.M2V=01;35:*.mov=01;35:*.MOV=01;35:*.mp3=01;35:*.MP3=01;35:*.mpeg=01;35:*.MPEG=01;35:*.mpg=01;35:*.MPG=01;35:*.ogg=01;35:*.OGG=01;35:*.ppm=01;35:*.rm=01;35:*.RM=01;35:*.tga=01;35:*.TGA=01;35:*.tif=01;35:*.TIF=01;35:*.wav=01;35:*.WAV=01;35:*.wmv=01;35:*.WMV=01;35:*.xbm=01;35:*.xpm=01;35: GDK_USE_XFT=1 SESSION_MANAGER=local/macondo:/tmp/.ICE-unix/1243 T1LIB_CONFIG=/usr/share/t1lib/t1lib.config MINICOM=-c on KONSOLE_DCOP=DCOPRef(konsole-2988,konsole) DESKTOP_SESSION=default PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games:/usr/sbin:/sbin:/usr/local/sbin:/usr/lib/java/bin:/usr/lib/java/jre/bin:/opt/kde/bin:/usr/lib/qt/bin:/home/stefano/bin LC_COLLATE=C INPUTRC=/etc/inputrc PWD=/home/stefano KONSOLE_DCOP_SESSION=DCOPRef(konsole-2988,session-1) JAVA_HOME=/usr/lib/java LANG=it_IT PS1=\u@\h:`basename "$(pwd)" | tr " " "_"`\$ PS2=> SHLVL=4 HOME=/home/stefano XCURSOR_THEME=Chameleon-Aluminium-Regular LS_OPTIONS= --color=auto -F -b -T 0 LESS=-M LOGNAME=stefano PKG_CONFIG_PATH=:/usr/local/lib/pkgconfig:/usr/local/lib/pkgconfig LESSOPEN=|lesspipe.sh %s BROWSER=/opt/kde/bin/konqueror DISPLAY=:0.0 COLORTERM= _=/usr/bin/env From cjro99 at ...67... Wed May 24 20:19:04 2006 From: cjro99 at ...67... (javier romero) Date: Wed, 24 May 2006 18:19:04 +0000 Subject: [Gambas-user] Drawing again Message-ID: I have this: dim pagina as drawing pagina = new drawing draw.begin(pagina) draw.text("RELACION DE CLIENTE", 10, 10) draw.end print pagina.width print pagina.height when print the width and height of the drawing "pagina" i obtain that: 0 0 why the width and the height dont shows the actuals width and height after drawing? I need this ou use this for the printer example for prints a drawing in the printer and for escalable porpuses. I'm using gambas 1.0.15 Thanks Javier Romero _________________________________________________________________ Descarga gratis la Barra de Herramientas de MSN http://www.msn.es/usuario/busqueda/barra?XAPID=2031&DI=1055&SU=http%3A//www.hotmail.com&HL=LINKTAG1OPENINGTEXT_MSNBH From nando_f at ...1382... Wed May 24 20:32:59 2006 From: nando_f at ...1382... (nando) Date: Wed, 24 May 2006 14:32:59 -0400 Subject: [Gambas-user] Asking about a new Command In-Reply-To: <200605241846.53176.gambas@...1...> References: <20060524065111.M51979@...1382...> <200605241846.53176.gambas@...1...> Message-ID: <20060524180739.M67778@...1382...> Thanks to everyone for your replies. This project is over a year in the making at considerable cost and is quite involved. It operates as a set of concurrent multiple programs and runs on hundreds of computers. There is use of some specialized communication equipment. The particular problem is I need to wait a small amount of time for a particular hardware condition to be ready. In my case, with Serial Port characters streaming in, if I use the WAIT 0.5, inside the _Read, it will recurse more _Reads while the processing of the first is incomplete. This actually makes the stream processed out of order because the 'newer' _Read process the next char while the original _Read that invoked the WAIT is still unfinished. So, processing events is forbidden in this case. A empty loop consumes CPU...other programs are running. WAIT allows processing of things out of order. Although the SHELL sleep works, it is too much overhead. This problem exists in the VB world when using DoEvents. My solution in the VB world is to use a Boolean inside the critical SUBs that can recurse and simply exit when busy. That too, still uses too much CPU because there are always characters waiting and _Read will 'event' by the interpreter just to do a quick exit. A Delay statement sounded like a you might have been interested in. Essentially it would be sleeping using the kernel. Eventhough we use fast computers, managing and minimizing CPU usage is still an important item. Of course, I may be ignorant and uninformed of other ways and overlooking something easy...to which you all have been helpful. Thanks -Fernando ---------- Original Message ----------- From: Benoit Minisini To: gambas-user at lists.sourceforge.net Sent: Wed, 24 May 2006 18:46:53 +0200 Subject: Re: [Gambas-user] Asking about a new Command > On Wednesday 24 May 2006 09:04, nando wrote: > > Benoit, > > > > I would like to know if it is possible to add a statement like: > > > > DELAY <--deliberately let the kernel use the CPU for other processes. > > -or- > > DELAY 0.5 <--let 1/2 second go by, processes no events and > > not hog the CPU, deliberately let the kernel use the CPU for other > > processes. > > > > It would be similar to WAIT except it would not process events. > > It would simply keep the CPU from being tied up. > > > > For example: > > > > I need to wait a small amount of time inside a SUB, but I cannot > > have events processed until the sub is completed. > > > > I have tried using WAIT in both forms, but the events get processed > > incorrectly. > > > > Using a loop and looking at TIMER or TIME$ for the appropriate delay > > only uses the CPU too much. A DELAY would make it CPU friendlier. > > > > Could this be done and what amount of time > > do you think it would take so I could calculate a donation ? > > > > -Fernando > > > > Why don't you want events to be processed during your wait? > > -- > Benoit Minisini > > ------------------------------------------------------- > All the advantages of Linux Managed Hosting--Without the Cost and Risk! > Fully trained technicians. The highest number of Red Hat > certifications in the hosting industry. Fanatical Support. Click to > learn more http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From gambas at ...1... Wed May 24 20:54:04 2006 From: gambas at ...1... (Benoit Minisini) Date: Wed, 24 May 2006 20:54:04 +0200 Subject: [Gambas-user] Drawing again In-Reply-To: References: Message-ID: <200605242054.04720.gambas@...1...> On Wednesday 24 May 2006 20:19, javier romero wrote: > I have this: > > dim pagina as drawing > > pagina = new drawing > > draw.begin(pagina) > draw.text("RELACION DE CLIENTE", 10, 10) > draw.end > > print pagina.width > print pagina.height > > when print the width and height of the drawing "pagina" i obtain that: > 0 > 0 > > why the width and the height dont shows the actuals width and height after > drawing? I need this ou use this for the printer example for prints a > drawing in the printer and for escalable porpuses. > > I'm using gambas 1.0.15 > > Thanks > Javier Romero Can you try these patches? Thanks in advance. -- Benoit Minisini -------------- next part -------------- A non-text attachment was scrubbed... Name: CDrawing.cpp Type: text/x-c++src Size: 6462 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: CDrawing.h Type: text/x-chdr Size: 1240 bytes Desc: not available URL: From gambas at ...1... Wed May 24 21:00:26 2006 From: gambas at ...1... (Benoit Minisini) Date: Wed, 24 May 2006 21:00:26 +0200 Subject: [Gambas-user] Asking about a new Command In-Reply-To: <20060524180739.M67778@...1382...> References: <20060524065111.M51979@...1382...> <200605241846.53176.gambas@...1...> <20060524180739.M67778@...1382...> Message-ID: <200605242100.26138.gambas@...1...> On Wednesday 24 May 2006 20:32, nando wrote: > Thanks to everyone for your replies. > > This project is over a year in the making at considerable cost > and is quite involved. It operates as a set of concurrent multiple > programs and runs on hundreds of computers. There is use of some > specialized communication equipment. > > The particular problem is I need to wait a small amount of time > for a particular hardware condition to be ready. > > In my case, with Serial Port characters streaming in, if I use > the WAIT 0.5, inside the _Read, it will recurse more _Reads while > the processing of the first is incomplete. > This actually makes the stream processed out of order because > the 'newer' _Read process the next char while the original _Read > that invoked the WAIT is still unfinished. > So, processing events is forbidden in this case. > > A empty loop consumes CPU...other programs are running. > WAIT allows processing of things out of order. > Although the SHELL sleep works, it is too much overhead. > > This problem exists in the VB world when using DoEvents. > My solution in the VB world is to use a Boolean inside > the critical SUBs that can recurse and simply exit when busy. > That too, still uses too much CPU because there are always > characters waiting and _Read will 'event' by the interpreter > just to do a quick exit. > > A Delay statement sounded like a you might have been interested in. > Essentially it would be sleeping using the kernel. > > Eventhough we use fast computers, managing and minimizing CPU usage > is still an important item. > > Of course, I may be ignorant and uninformed of other ways and > overlooking something easy...to which you all have been helpful. > > Thanks > -Fernando > I see... The stable version being frozen, can you use the development version? -- Benoit Minisini From leonardo at ...1237... Wed May 24 21:49:34 2006 From: leonardo at ...1237... (Leonardo Miliani) Date: Wed, 24 May 2006 21:49:34 +0200 Subject: [Gambas-user] SDL problems In-Reply-To: <200605241753.55191.lordheavy@...512...> References: <44747F03.2010703@...1237...> <200605241753.55191.lordheavy@...512...> Message-ID: <4474B8CE.6000402@...1237...> Laurent Carlier ha scritto: > Le Mercredi 24 Mai 2006 17:42, Leonardo Miliani a ?crit : >> A few days ago I changed my SUSE, from 9.3 to 10.1. >> Now I have problems compiling the SDL components of Gambas. >> Even if I have in my system the SDL packages bundled with Suse 10.1 >> (SDL, SDL-devel, SDL_image, SDL_mixer, SDL_net, SDL_perl, SDL_ttf) I >> just can compile the CDROM SDL components, but during the compilation >> the configure script tells me that it cannot compile SDl image, SDL >> mixer and SDL opengl components. Here are the errors I get: >> >> --------------------------- >> " >> ..... >> checking for SDL headers... /usr/include/SDL/ >> checking for SDL libraries... /usr/lib/ >> checking for SDL sound headers... no >> checking for SDL sound libraries... no >> configure: WARNING: *** SDL sound is disabled >> checking for SDL 2D image headers... no >> checking for SDL 2D image libraries... no >> configure: WARNING: *** SDL 2D image is disabled >> checking for SDL OpenGL headers... no >> checking for SDL OpenGL libraries... /usr/lib/ >> configure: WARNING: *** SDL OpenGL is disabled >> ..... >> " >> ------------------------- >> I also tried to download and manually install libSDL from sources but I >> got same errors. > > You got a lot of chance :) i've just move my laptop to suse ... 10.1 and the > solution is : > > You must add a ftp/http repository to yast because dvd/cd doesn't have the > devels packages of SDL libs (ttf,image,...). > > Open Yast2 -> Change Install support -> add -> FTP -> into server name : > ftp.belnet.be/mirrors/ftp.opensuse.org/opensuse/distribution/SL-10.1/inst-source/ > > Now you should have access to devel files :) > > Regards, > Thanks a lot! It worked! :-) -- Ciao. Leo Visita il mio sito personale: www.leonardomiliani.com e-mail: leonardo at ...1237... From nando_f at ...1382... Wed May 24 21:59:20 2006 From: nando_f at ...1382... (nando) Date: Wed, 24 May 2006 15:59:20 -0400 Subject: [Gambas-user] Asking about a new Command In-Reply-To: <200605242100.26138.gambas@...1...> References: <20060524065111.M51979@...1382...> <200605241846.53176.gambas@...1...> <20060524180739.M67778@...1382...> <200605242100.26138.gambas@...1...> Message-ID: <20060524195618.M46370@...1382...> I am currently frozen on 1.0.6 because it is in operation. But I am planning on converting to 1.0.? latest version very soon. ---------- Original Message ----------- From: Benoit Minisini To: gambas-user at lists.sourceforge.net Sent: Wed, 24 May 2006 21:00:26 +0200 Subject: Re: [Gambas-user] Asking about a new Command > On Wednesday 24 May 2006 20:32, nando wrote: > > Thanks to everyone for your replies. > > > > This project is over a year in the making at considerable cost > > and is quite involved. It operates as a set of concurrent multiple > > programs and runs on hundreds of computers. There is use of some > > specialized communication equipment. > > > > The particular problem is I need to wait a small amount of time > > for a particular hardware condition to be ready. > > > > In my case, with Serial Port characters streaming in, if I use > > the WAIT 0.5, inside the _Read, it will recurse more _Reads while > > the processing of the first is incomplete. > > This actually makes the stream processed out of order because > > the 'newer' _Read process the next char while the original _Read > > that invoked the WAIT is still unfinished. > > So, processing events is forbidden in this case. > > > > A empty loop consumes CPU...other programs are running. > > WAIT allows processing of things out of order. > > Although the SHELL sleep works, it is too much overhead. > > > > This problem exists in the VB world when using DoEvents. > > My solution in the VB world is to use a Boolean inside > > the critical SUBs that can recurse and simply exit when busy. > > That too, still uses too much CPU because there are always > > characters waiting and _Read will 'event' by the interpreter > > just to do a quick exit. > > > > A Delay statement sounded like a you might have been interested in. > > Essentially it would be sleeping using the kernel. > > > > Eventhough we use fast computers, managing and minimizing CPU usage > > is still an important item. > > > > Of course, I may be ignorant and uninformed of other ways and > > overlooking something easy...to which you all have been helpful. > > > > Thanks > > -Fernando > > > > I see... The stable version being frozen, can you use the development version? > > -- > Benoit Minisini > > ------------------------------------------------------- > All the advantages of Linux Managed Hosting--Without the Cost and Risk! > Fully trained technicians. The highest number of Red Hat > certifications in the hosting industry. Fanatical Support. Click to > learn more http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From gambas at ...1... Wed May 24 22:05:25 2006 From: gambas at ...1... (Benoit Minisini) Date: Wed, 24 May 2006 22:05:25 +0200 Subject: [Gambas-user] Asking about a new Command In-Reply-To: <20060524195618.M46370@...1382...> References: <20060524065111.M51979@...1382...> <200605242100.26138.gambas@...1...> <20060524195618.M46370@...1382...> Message-ID: <200605242205.26143.gambas@...1...> On Wednesday 24 May 2006 21:59, nando wrote: > I am currently frozen on 1.0.6 because it is in operation. > But I am planning on converting to 1.0.? latest version very soon. > Can't you try to port your program to the development version? It will be easier to add the instruction you need. Regards, -- Benoit Minisini From cjro99 at ...67... Thu May 25 00:01:20 2006 From: cjro99 at ...67... (javier romero) Date: Wed, 24 May 2006 22:01:20 +0000 Subject: [Gambas-user] Drawing again Message-ID: Hi, how i can install the patches?, I replace the original CDrawing.h and CDrawing.cpp in /gambas/src/lib/qt directory, its correct?, after that, I run my proyect, but width and height doesnt works, when i print width after draw the drawing sends me a 0. Thanks Javier ---------------------------------------- > From: gambas at ...1... > To: gambas-user at lists.sourceforge.net > Subject: Re: [Gambas-user] Drawing again > Date: Wed, 24 May 2006 20:54:04 +0200 > > On Wednesday 24 May 2006 20:19, javier romero wrote: > > I have this: > > > > dim pagina as drawing > > > > pagina = new drawing > > > > draw.begin(pagina) > > draw.text("RELACION DE CLIENTE", 10, 10) > > draw.end > > > > print pagina.width > > print pagina.height > > > > when print the width and height of the drawing "pagina" i obtain that: > > 0 > > 0 > > > > why the width and the height dont shows the actuals width and height after > > drawing? I need this ou use this for the printer example for prints a > > drawing in the printer and for escalable porpuses. > > > > I'm using gambas 1.0.15 > > > > Thanks > > Javier Romero > > Can you try these patches? > > Thanks in advance. > > -- > Benoit Minisini _________________________________________________________________ Descarga gratis la Barra de Herramientas de MSN http://www.msn.es/usuario/busqueda/barra?XAPID=2031&DI=1055&SU=http%3A//www.hotmail.com&HL=LINKTAG1OPENINGTEXT_MSNBH From lordheavy at ...512... Thu May 25 00:08:13 2006 From: lordheavy at ...512... (Laurent Carlier) Date: Thu, 25 May 2006 00:08:13 +0200 Subject: [Gambas-user] Drawing again In-Reply-To: References: Message-ID: <200605250008.13370.lordheavy@...512...> Le Jeudi 25 Mai 2006 00:01, javier romero a ?crit?: > Hi, how i can install the patches?, I replace the original CDrawing.h and > CDrawing.cpp in /gambas/src/lib/qt directory, its correct?, after that, I > run my proyect, but width and height doesnt works, when i print width after > draw the drawing sends me a 0. > > Thanks > Javier > > ---------------------------------------- > > > From: gambas at ...1... > > To: gambas-user at lists.sourceforge.net > > Subject: Re: [Gambas-user] Drawing again > > Date: Wed, 24 May 2006 20:54:04 +0200 > > > > On Wednesday 24 May 2006 20:19, javier romero wrote: > > > I have this: > > > > > > dim pagina as drawing > > > > > > pagina = new drawing > > > > > > draw.begin(pagina) > > > draw.text("RELACION DE CLIENTE", 10, 10) > > > draw.end > > > > > > print pagina.width > > > print pagina.height > > > > > > when print the width and height of the drawing "pagina" i obtain that: > > > 0 > > > 0 > > > > > > why the width and the height dont shows the actuals width and height > > > after drawing? I need this ou use this for the printer example for > > > prints a drawing in the printer and for escalable porpuses. > > > > > > I'm using gambas 1.0.15 > > > > > > Thanks > > > Javier Romero > > > > Can you try these patches? > > > > Thanks in advance. > > > > -- > > Benoit Minisini > > _________________________________________________________________ > Descarga gratis la Barra de Herramientas de MSN > http://www.msn.es/usuario/busqueda/barra?XAPID=2031&DI=1055&SU=http%3A//www >.hotmail.com&HL=LINKTAG1OPENINGTEXT_MSNBH > > ------------------------------------------------------- > All the advantages of Linux Managed Hosting--Without the Cost and Risk! > Fully trained technicians. The highest number of Red Hat certifications in > the hosting industry. Fanatical Support. Click to learn more > http://sel.as-us.falkag.net/sel?cmd=lnk&kid7521&bid$8729&dat1642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Did you build gb.qt componant again ? (make && su -c 'make install') ? Regards, -- jabber : lordheavy at ...943... mail : lordheavymREMOVEME at ...626... From timothy.marshal-nichols at ...247... Thu May 25 07:48:23 2006 From: timothy.marshal-nichols at ...247... (Timothy Marshal-Nichols) Date: Thu, 25 May 2006 06:48:23 +0100 Subject: [Gambas-user] Asking about a new Command In-Reply-To: <20060524180739.M67778@...1382...> Message-ID: > -----Original Message----- > From: gambas-user-admin at lists.sourceforge.net > [mailto:gambas-user-admin at lists.sourceforge.net]On Behalf Of nando > Sent: Wednesday, 24 May 2006 19:33 > To: gambas-user at lists.sourceforge.net > Subject: Re: [Gambas-user] Asking about a new Command > > > Thanks to everyone for your replies. > > This project is over a year in the making at considerable cost > and is quite involved. It operates as a set of concurrent multiple > programs and runs on hundreds of computers. There is use of some > specialized communication equipment. > > The particular problem is I need to wait a small amount of time > for a particular hardware condition to be ready. > > In my case, with Serial Port characters streaming in, if I use > the WAIT 0.5, inside the _Read, it will recurse more _Reads while > the processing of the first is incomplete. > This actually makes the stream processed out of order because > the 'newer' _Read process the next char while the original _Read > that invoked the WAIT is still unfinished. > So, processing events is forbidden in this case. > > A empty loop consumes CPU...other programs are running. > WAIT allows processing of things out of order. > Although the SHELL sleep works, it is too much overhead. > > This problem exists in the VB world when using DoEvents. > My solution in the VB world is to use a Boolean inside > the critical SUBs that can recurse and simply exit when busy. > That too, still uses too much CPU because there are always > characters waiting and _Read will 'event' by the interpreter > just to do a quick exit. > > A Delay statement sounded like a you might have been interested in. > Essentially it would be sleeping using the kernel. > > Eventhough we use fast computers, managing and minimizing CPU usage > is still an important item. > > Of course, I may be ignorant and uninformed of other ways and > overlooking something easy...to which you all have been helpful. > > Thanks > -Fernando > Surly the normal way to use a serial port is something like the following: PRIVATE buffer AS String PUBLIC SUB SerialPort1_Read() DIM s AS String ' Read data from serial port LINE INPUT #SerialPort1, s ' Add data to buffer buffer = buffer & s ' Test if we have all the required data IF yourBufferCompleteText THEN ' Process buffer ' Clear buffer buffer = "" END IF END This way there is no need for a wait at all. Thanks 8-{)} Timothy Marshal-Nichols From nando_f at ...1382... Thu May 25 18:10:25 2006 From: nando_f at ...1382... (nando) Date: Thu, 25 May 2006 12:10:25 -0400 Subject: [Gambas-user] Asking about a new Command In-Reply-To: References: <20060524180739.M67778@...1382...> Message-ID: <20060525155737.M41029@...1382...> Your example is a way. If 'yourBufferCompleteText' is an involved process, then it will fall behind and the buffer may overflow. This was already tested. This app uses 5 serial ports per each of hundreds of computers plus servers plus multiple programs simultaneously running on each computer. The 'same idea' example was tried initially and reworked many times. It doesn't work properly. Instead, a different and 'non-obvious' approach solved it and full serial port speeds use only a few % CPU. This is good. Thanks everyone for your help. -Fernando ---------- Original Message ----------- From: "Timothy Marshal-Nichols" To: Sent: Thu, 25 May 2006 06:48:23 +0100 Subject: RE: [Gambas-user] Asking about a new Command > > -----Original Message----- > > From: gambas-user-admin at lists.sourceforge.net > > [mailto:gambas-user-admin at lists.sourceforge.net]On Behalf Of nando > > Sent: Wednesday, 24 May 2006 19:33 > > To: gambas-user at lists.sourceforge.net > > Subject: Re: [Gambas-user] Asking about a new Command > > > > > > Thanks to everyone for your replies. > > > > This project is over a year in the making at considerable cost > > and is quite involved. It operates as a set of concurrent multiple > > programs and runs on hundreds of computers. There is use of some > > specialized communication equipment. > > > > The particular problem is I need to wait a small amount of time > > for a particular hardware condition to be ready. > > > > In my case, with Serial Port characters streaming in, if I use > > the WAIT 0.5, inside the _Read, it will recurse more _Reads while > > the processing of the first is incomplete. > > This actually makes the stream processed out of order because > > the 'newer' _Read process the next char while the original _Read > > that invoked the WAIT is still unfinished. > > So, processing events is forbidden in this case. > > > > A empty loop consumes CPU...other programs are running. > > WAIT allows processing of things out of order. > > Although the SHELL sleep works, it is too much overhead. > > > > This problem exists in the VB world when using DoEvents. > > My solution in the VB world is to use a Boolean inside > > the critical SUBs that can recurse and simply exit when busy. > > That too, still uses too much CPU because there are always > > characters waiting and _Read will 'event' by the interpreter > > just to do a quick exit. > > > > A Delay statement sounded like a you might have been interested in. > > Essentially it would be sleeping using the kernel. > > > > Eventhough we use fast computers, managing and minimizing CPU usage > > is still an important item. > > > > Of course, I may be ignorant and uninformed of other ways and > > overlooking something easy...to which you all have been helpful. > > > > Thanks > > -Fernando > > > > Surly the normal way to use a serial port is something like the following: > > PRIVATE buffer AS String > > PUBLIC SUB SerialPort1_Read() > DIM s AS String > > ' Read data from serial port > LINE INPUT #SerialPort1, s > > ' Add data to buffer > buffer = buffer & s > > ' Test if we have all the required data > IF yourBufferCompleteText THEN > > ' Process buffer > > ' Clear buffer > buffer = "" > END IF > END > > This way there is no need for a wait at all. > > Thanks > > 8-{)} Timothy Marshal-Nichols > > > ------------------------------------------------------- > All the advantages of Linux Managed Hosting--Without the Cost and Risk! > Fully trained technicians. The highest number of Red Hat > certifications in the hosting industry. Fanatical Support. Click to > learn more http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From na2492 at ...9... Thu May 25 20:40:30 2006 From: na2492 at ...9... (Charlie Reinl) Date: Thu, 25 May 2006 20:40:30 +0200 Subject: [Gambas-user] Asking about a new Command In-Reply-To: <20060525155737.M41029@...1382...> References: <20060524180739.M67778@...1382...> <20060525155737.M41029@...1382...> Message-ID: <1148582431.10827.16.camel@...37...> Am Donnerstag, den 25.05.2006, 12:10 -0400 schrieb nando: > Your example is a way. > If 'yourBufferCompleteText' is an involved process, then it will fall > behind and the buffer may overflow. This was already tested. > > This app uses 5 serial ports per each of hundreds of computers plus > servers plus multiple programs simultaneously running on each computer. > The 'same idea' example was tried initially and reworked many times. > It doesn't work properly. > Instead, a different and 'non-obvious' approach solved it > and full serial port speeds use only a few % CPU. This is good. > Thanks everyone for your help. > -Fernando > > Salut Fernando, if I had right understood, it is very critical, if that new Command don't come ? You wrote hundreds of computers need that, hundreds of computers running Gambas. Why your employer, can't 'employ' Benoit to make it in an stable Version 1.0.XX just for him ? And after it will be ported to gambas2. Amicalment Charlie From cjro99 at ...67... Fri May 26 00:19:41 2006 From: cjro99 at ...67... (javier romero) Date: Thu, 25 May 2006 22:19:41 +0000 Subject: [Gambas-user] Drawing again Message-ID: Ok, now its works, but, in the printing drawing example, the "escaling" dont works, now i have the width and the height and when i try escaling it, dont works. in the example: draw.begin(printer) draw.drawing(drw, (printer.width - DrawWidth) / 2, (printer.height - DrawHeight) / 2, DrawWidth, DrawHeigt) draw.end the content of the draw is printing very small when i draw into image object an then stretch this, the print fits the page, but is so slowly, and the others forms opens are redrawings, what i can do? Thanks Javier ---------------------------------------- > From: lordheavy at ...512... > To: gambas-user at lists.sourceforge.net > Subject: Re: [Gambas-user] Drawing again > Date: Thu, 25 May 2006 00:08:13 +0200 > > Le Jeudi 25 Mai 2006 00:01, javier romero a ?crit : > > Hi, how i can install the patches?, I replace the original CDrawing.h and > > CDrawing.cpp in /gambas/src/lib/qt directory, its correct?, after that, I > > run my proyect, but width and height doesnt works, when i print width after > > draw the drawing sends me a 0. > > > > Thanks > > Javier > > > > ---------------------------------------- > > > > > From: gambas at ...1... > > > To: gambas-user at lists.sourceforge.net > > > Subject: Re: [Gambas-user] Drawing again > > > Date: Wed, 24 May 2006 20:54:04 +0200 > > > > > > On Wednesday 24 May 2006 20:19, javier romero wrote: > > > > I have this: > > > > > > > > dim pagina as drawing > > > > > > > > pagina = new drawing > > > > > > > > draw.begin(pagina) > > > > draw.text("RELACION DE CLIENTE", 10, 10) > > > > draw.end > > > > > > > > print pagina.width > > > > print pagina.height > > > > > > > > when print the width and height of the drawing "pagina" i obtain that: > > > > 0 > > > > 0 > > > > > > > > why the width and the height dont shows the actuals width and height > > > > after drawing? I need this ou use this for the printer example for > > > > prints a drawing in the printer and for escalable porpuses. > > > > > > > > I'm using gambas 1.0.15 > > > > > > > > Thanks > > > > Javier Romero > > > > > > Can you try these patches? > > > > > > Thanks in advance. > > > > > > -- > > > Benoit Minisini > > > > _________________________________________________________________ > > Descarga gratis la Barra de Herramientas de MSN > > http://www.msn.es/usuario/busqueda/barra?XAPID=2031&DI=1055&SU=http%3A//www > >.hotmail.com&HL=LINKTAG1OPENINGTEXT_MSNBH > > > > ------------------------------------------------------- > > All the advantages of Linux Managed Hosting--Without the Cost and Risk! > > Fully trained technicians. The highest number of Red Hat certifications in > > the hosting industry. Fanatical Support. Click to learn more > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid7521&bid$8729&dat1642 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Did you build gb.qt componant again ? (make && su -c 'make install') ? > > Regards, > > -- > jabber : lordheavy at ...943... > mail : lordheavymREMOVEME at ...626... > > > > ------------------------------------------------------- > All the advantages of Linux Managed Hosting--Without the Cost and Risk! > Fully trained technicians. The highest number of Red Hat certifications in > the hosting industry. Fanatical Support. Click to learn more > http://sel.as-us.falkag.net/sel?cmd=k&kid7521&bid$8729&dat1642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user _________________________________________________________________ Descarga gratis la Barra de Herramientas de MSN http://www.msn.es/usuario/busqueda/barra?XAPID=2031&DI=1055&SU=http%3A//www.hotmail.com&HL=LINKTAG1OPENINGTEXT_MSNBH From gambas at ...1... Fri May 26 01:12:51 2006 From: gambas at ...1... (Benoit Minisini) Date: Fri, 26 May 2006 01:12:51 +0200 Subject: [Gambas-user] Drawing again In-Reply-To: References: Message-ID: <200605260112.51559.gambas@...1...> On Friday 26 May 2006 00:19, javier romero wrote: > Ok, now its works, but, in the printing drawing example, the "escaling" > dont works, now i have the width and the height and when i try escaling it, > dont works. > > in the example: > draw.begin(printer) > draw.drawing(drw, (printer.width - DrawWidth) / 2, (printer.height > - DrawHeight) / 2, DrawWidth, DrawHeigt) draw.end > > the content of the draw is printing very small > > when i draw into image object an then stretch this, the print fits the > page, but is so slowly, and the others forms opens are redrawings, what i > can do? > > Thanks > Javier > At the moment, Gambas does not know how to scale drawings. The width and height parameters of Draw.Drawing() are just for clipping! I will add some rotation/scale/translation support to the Draw class, and maybe change the meaning of the Draw.Drawing() parameters. But when? :-) Regards, -- Benoit Minisini From ronstk at ...239... Fri May 26 04:09:09 2006 From: ronstk at ...239... (ron) Date: Fri, 26 May 2006 04:09:09 +0200 Subject: [Gambas-user] Does DirChooser and Wizard work?? Message-ID: <200605260409.10292.ronstk@...239...> I can't get this working. DirChooser.SelectedPath and Wizard.Index give error message "Null Object" DirChooser.Activate and .Change does not fire. And more stupid, just check this events are the ones I did use I do not get on the right mouse menu the "Events" list anymore. GambasUpdate-0.0.1.tar.gz So I add a new form, put a button on it and check the right mouse button The eventlist on the new form is there but not on the Fmain??? GambasUpdate-0.0.2.tar.gz I'm lost Ron -------------- next part -------------- A non-text attachment was scrubbed... Name: GambasUpdate-0.0.1.tar.gz Type: application/x-tgz Size: 5043 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: GambasUpdate-0.0.2.tar.gz Type: application/x-tgz Size: 5140 bytes Desc: not available URL: From joe1962 at ...626... Fri May 26 04:53:28 2006 From: joe1962 at ...626... (Jose J. Rodriguez) Date: Thu, 25 May 2006 22:53:28 -0400 Subject: [Gambas-user] Object array code gives weird results In-Reply-To: <6c208f950605190838y92c7973v3403ce24c6817413@...627...> References: <6c208f950605181612k447cfc2aife930bbd17ef17f7@...627...> <6c208f950605190838y92c7973v3403ce24c6817413@...627...> Message-ID: <6c208f950605251953x68a3e9d0o80c89046bfca1fcc@...627...> On 5/19/06, Jose J. Rodriguez wrote: > On 5/19/06, Timothy Marshal-Nichols > wrote: > > > > > -----Original Message----- > > > From: gambas-user-admin at lists.sourceforge.net > > > [mailto:gambas-user-admin at lists.sourceforge.net]On Behalf Of Jose J. > > > Rodriguez > > > Sent: Friday, 19 May 2006 00:12 > > > To: gambas-user at lists.sourceforge.net > > > Subject: [Gambas-user] Object array code gives weird results > > > > > > PartInfo.Push(vPI) > > > > On the above line you a pushing an object. So at the end of the loop > > all items in the array are set to the same object. > > Well, it's the only way I've found so far in the docs, forums or > examples that is similar to the user defined type arrays from VB. > > > To overcome the problem push the value of the object or create a new object > > with the value you want. > > Sorry but, could you give an example? Not really sure how to do this. > > Any further help on this, please? Meanwhile, I found a workaround with 2 dimensional string arrays, but I'd really like to do it the proper way. However, I can't delay the development of the installer much longer, and it's sort of stuck on this problem, which applies to many places in the code (guess I'm used to typed array structures, lol). Regards, Joe1962 From ronstk at ...239... Fri May 26 06:29:56 2006 From: ronstk at ...239... (ron) Date: Fri, 26 May 2006 06:29:56 +0200 Subject: [Gambas-user] Object array code gives weird results In-Reply-To: References: Message-ID: <200605260629.56330.ronstk@...239...> On Friday 19 May 2006 12:35, Timothy Marshal-Nichols wrote: > > PUBLIC SUB Parse_fdisk(sTemp AS String) > > ? ?DIM vDI AS NEW CDiskInfo > > ? ?DIM vPI AS NEW CPartInfo > > ? ?DIM arrTemp1 AS NEW String[] > > ? ?DIM arrTemp2 AS NEW String[] > > ? ?DIM pos AS Long > > ? ?DIM n AS Long > > ? ?DIM pcounter AS Long > > > > ? ?arrTemp1 = Split(sTemp, Chr$(10)) > > > > ? ?FOR n = 0 TO arrTemp1.Max > > ? ? ? pos = InStr(arrTemp1[n], "/dev/") > > ? ? ? IF pos = 1 'Parse a partition. > > ? ? ? ? ?arrTemp2 = Split(arrTemp1[n], Space$(1), "", TRUE) > > ? ? ? ? ?INC pcounter see next below > > ? ? ? ? ?vPI.Device = arrTemp2[0] > > ? ? ? ? ?vPI.Bootable = FALSE > > ? ? ? ? ?vPI.StartBlock = 0 > > ? ? ? ? ?vPI.EndBlock = 1024 > > ? ? ? ? ?vPI.Blocks = 25 > > ? ? ? ? ?vPI.ID = "06" > > ? ? ? ? ?PartInfo.Push(vPI) > > On the above line you a pushing an object. So at the end of the loop > all items in the array are set to the same object. ----------------------------------------^^^^^^^^^^^^ > Here you add a vPI object to the PartInfo. Because it should be every time a new fresh vPI object you need to create the new object. Add before using vPI for *new* info storage a *new* instance of it vPI = New CPartInfo You are now using all the time the same and only 1 vPI object !! > To overcome the problem push the value of the object or create a new object > with the value you want. > > > ? ? ? ? ?Form1.TextView1.Text &= "
" & PartInfo[pcounter - 1].Device > > ? ? ? END IF > > ? ?NEXT > > > > ? ?FOR n = 0 TO PartInfo.Max > > So on the line below you are always looking the same object. You --------------------------------------------------^^^^^^^^^^^^ > always get the value you last set this object to. ---------------------------^^^^^^^^^^^^^^^^^^^^ > > You might not like this behaviour. But it is the same as in most > programming languages with objects. > > > ? ? ? Form1.TextView1.Text &= "
" & PartInfo[n].Device > > ? ?NEXT > > > > END Ron From joe1962 at ...626... Fri May 26 06:38:24 2006 From: joe1962 at ...626... (Jose J. Rodriguez) Date: Fri, 26 May 2006 00:38:24 -0400 Subject: [Gambas-user] Object array code gives weird results In-Reply-To: <200605260629.56330.ronstk@...239...> References: <200605260629.56330.ronstk@...239...> Message-ID: <6c208f950605252138j37ab640bt1b7857bdb358129c@...627...> On 5/26/06, ron wrote: > > Here you add a vPI object to the PartInfo. > Because it should be every time a new fresh vPI object you need to > create the new object. > Add before using vPI for *new* info storage a *new* instance of it > > vPI = New CPartInfo > > You are now using all the time the same and only 1 vPI object !! > Got it now! Thanks, Ron. Regards, Joe1962 From joe1962 at ...626... Fri May 26 10:12:17 2006 From: joe1962 at ...626... (Jose J. Rodriguez) Date: Fri, 26 May 2006 04:12:17 -0400 Subject: [Gambas-user] Strange way of working about form dimensions In-Reply-To: <446C7260.4050707@...1237...> References: <446C7260.4050707@...1237...> Message-ID: <6c208f950605260112h6352cc28i81042727efe76860@...627...> On 5/18/06, Leonardo Miliani wrote: > On the notebook, I created a form that is 384x257 pixel(X,Y) in > dimensions but when I open the source code on the desktop PC I find that > the dimensions are changed in (X, Y). I tried to compile the source but > when I run the executable on the desktop I find again the altered > dimensions of the form. > > When I opened the .form files I looked at the first lines and they > appear as: > > " > { frmStart Form > MoveScaled(50.6667,28.6667,42.6667,28.5556) > 'Move(456,258,384,257) > .... > " > > The real dimensions are in the quoted line. Maybe is this the problem? > Gambas does scale the dimensions of the forms looking at the desktop > ratios (the notebook has a 1280x800 display, the desktop has a 1280x1024 > one). > The desktop resolution isn't the only problem. I'm practically going mad here trying to make an app that works in at least the 3 main resolutions (640x480, 800x600 and 1024x768). First I tried fitting the window to the desktop, but that caused untold resizing problems, specially with fonts and buttons. Then i decided to work with a fixed 640x480 size window (size set in startup code, to avoid the same problem as Leonardo), centered in the display at larger resolutions. When the resolution is 640x480, I remove the window borders in code. This seemed to be working more or less, though I did have to implement scrollbars in the TexLlabels, as the font doesn't fit at the 2 lower resolutions. Now I just found out that if I use an external monitor instead of the notebook's LCD (both set at the same resolution, mind you), fonts and buttons look much larger in the monitor and now a lot of stuff doesn't fit in the window anymore! I'm guessing it's something to do with the dpi setting that probably differs between LCD and monitor, but I don't understand why, as both are set to 1024x768 and even the horizontal size is very similar. Regards, Joe1962 From cjro99 at ...67... Fri May 26 15:14:30 2006 From: cjro99 at ...67... (javier romero) Date: Fri, 26 May 2006 13:14:30 +0000 Subject: [Gambas-user] printer.setup Message-ID: I have 3 printers, 1) epson stylus color 480, 2) epson C-45 and a Cannon BJC-4300 attach via Samba and use CUPS, when i use Printer.Setup and press ok button, i think the printer.resolution have the "printer resolution" of the selected printer but its not correct, the 3 printers haves diferent resolutions, but when i print the printer.resolution value for each ,the values are the same, 600 dpi, in my case this is the resolution of the defaul printer, the epson 480. Seems the printer.setup dont change the value of the printer.resolution when is selected another printer. Thank Javier ---------------------------------------- > From: joe1962 at ...626... > To: gambas-user at lists.sourceforge.net > Subject: Re: [Gambas-user] Object array code gives weird results > Date: Fri, 26 May 2006 00:38:24 -0400 > > On 5/26/06, ron wrote: > > > > Here you add a vPI object to the PartInfo. > > Because it should be every time a new fresh vPI object you need to > > create the new object. > > Add before using vPI for *new* info storage a *new* instance of it > > > > vPI = New CPartInfo > > > > You are now using all the time the same and only 1 vPI object !! > > > > > Got it now! Thanks, Ron. > > Regards, > Joe1962 > > > ------------------------------------------------------- > All the advantages of Linux Managed Hosting--Without the Cost and Risk! > Fully trained technicians. The highest number of Red Hat certifications in > the hosting industry. Fanatical Support. Click to learn more > http://sel.as-us.falkag.net/sel?cmd=k&kid7521&bid$8729&dat1642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user _________________________________________________________________ Descarga gratis la Barra de Herramientas de MSN http://www.msn.es/usuario/busqueda/barra?XAPID=2031&DI=1055&SU=http%3A//www.hotmail.com&HL=LINKTAG1OPENINGTEXT_MSNBH From cjro99 at ...67... Fri May 26 15:24:42 2006 From: cjro99 at ...67... (javier romero) Date: Fri, 26 May 2006 13:24:42 +0000 Subject: [Gambas-user] Drawing again Message-ID: Ok, thanks for the moment i'm use an image object to print a previus page, but its very slowly in the strecth method(way i'm use to fit the page into the printer), maybe its have a bug becuase when i do that, when close the form, all forms opens in this moment (includiing Gambas) are redrawing so so slow, the desktop too, its dont looks well. Thanks Javier ---------------------------------------- > From: gambas at ...1... > To: gambas-user at lists.sourceforge.net > Subject: Re: [Gambas-user] Drawing again > Date: Fri, 26 May 2006 01:12:51 +0200 > > On Friday 26 May 2006 00:19, javier romero wrote: > > Ok, now its works, but, in the printing drawing example, the "escaling" > > dont works, now i have the width and the height and when i try escaling it, > > dont works. > > > > in the example: > > draw.begin(printer) > > draw.drawing(drw, (printer.width - DrawWidth) / 2, (printer.height > > - DrawHeight) / 2, DrawWidth, DrawHeigt) draw.end > > > > the content of the draw is printing very small > > > > when i draw into image object an then stretch this, the print fits the > > page, but is so slowly, and the others forms opens are redrawings, what i > > can do? > > > > Thanks > > Javier > > > > At the moment, Gambas does not know how to scale drawings. The width and > height parameters of Draw.Drawing() are just for clipping! > > I will add some rotation/scale/translation support to the Draw class, and > maybe change the meaning of the Draw.Drawing() parameters. But when? :-) > > Regards, > > -- > Benoit Minisini > > > > ------------------------------------------------------- > All the advantages of Linux Managed Hosting--Without the Cost and Risk! > Fully trained technicians. The highest number of Red Hat certifications in > the hosting industry. Fanatical Support. Click to learn more > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user _________________________________________________________________ Descarga gratis la Barra de Herramientas de MSN http://www.msn.es/usuario/busqueda/barra?XAPID=2031&DI=1055&SU=http%3A//www.hotmail.com&HL=LINKTAG1OPENINGTEXT_MSNBH From ronstk at ...239... Fri May 26 17:37:40 2006 From: ronstk at ...239... (ron) Date: Fri, 26 May 2006 17:37:40 +0200 Subject: [Gambas-user] Strange way of working about form dimensions In-Reply-To: <6c208f950605260112h6352cc28i81042727efe76860@...627...> References: <446C7260.4050707@...1237...> <6c208f950605260112h6352cc28i81042727efe76860@...627...> Message-ID: <200605261737.41266.ronstk@...239...> ----8<--- > > The desktop resolution isn't the only problem. I'm practically going > mad here trying to make an app that works in at least the 3 main > resolutions (640x480, 800x600 and 1024x768). First I tried fitting the > window to the desktop, but that caused untold resizing problems, > specially with fonts and buttons. Then i decided to work with a fixed > 640x480 size window (size set in startup code, to avoid the same > problem as Leonardo), centered in the display at larger resolutions. > When the resolution is 640x480, I remove the window borders in code. > This seemed to be working more or less, though I did have to implement > scrollbars in the TexLlabels, as the font doesn't fit at the 2 lower > resolutions. Now I just found out that if I use an external monitor > instead of the notebook's LCD (both set at the same resolution, mind > you), fonts and buttons look much larger in the monitor and now a lot > of stuff doesn't fit in the window anymore! I'm guessing it's > something to do with the dpi setting that probably differs between LCD > and monitor, but I don't understand why, as both are set to 1024x768 > and even the horizontal size is very similar. > > Regards, > Joe1962 > I feel your madness here in Holland :) What about me? I'm making a project that should work on a monitor 90' turned, AKA portrait. Resolution landscape 1280x1024 but portrait 1024x1280 In the upper 1024x768 the project window and the lower part 1024x512 some lookup information for the user. :) (me?) I found in source code MAIN_SCALE=fm.height()/2 and initial a MAIN_SCALE=8 fm is here the font_metrics and asumed as 8x16 ? I must/want use a 8x12 font. During MoveScaled X, Y, W and H are multiplied by same MAIN_SCALE. I believe MAIN_SCALE should be "(fm.width()/fm.height()) x fm.width()" in the first place. But should it not be more correct to use "(screen.width()/screen.height()) x screen.width()" as that is the intension ? The character dimensions are in no way related to the screen dimensions for width/height values. The idea behind it is not bad but it works out not always to be a wanted side effect. Now I understand the form size problems between the to machines/monitor I'm using. Could it not be made a option for the project in gb.Application or gb.qt.Desktop to use xxxScaled or not ? When I use MyForm.Height = MyForm.Width * DeskTop.Scale there is now something wrong with the height :( I thought [object].Width * DeskTop.Scale = [object].Height My 2 x DeskTop.Scale Cents Ron PS For Joe1962: As I asume the Fontmetrics are used as reference I asume a 8x16 font is used as default metrics. You can try in gb.qt/src/main.cpp at line 117: int MAIN_in_wait = 0; int MAIN_loop_level = 0; int MAIN_scale = 8; //<---- Change this to MAIN_scale = 16; (the height) static bool in_event_loop = false; and at line 366: void MAIN_update_scale(void) { QFontMetrics fm(QApplication::font()); MAIN_scale = fm.height() / 2; // <--- change this to fm.height() / 1; } This should effective disable the xxxScale but I have not tested this. Do not forget the "make; make install" Ron From gambas at ...1... Fri May 26 17:53:54 2006 From: gambas at ...1... (Benoit Minisini) Date: Fri, 26 May 2006 17:53:54 +0200 Subject: [Gambas-user] Strange way of working about form dimensions In-Reply-To: <200605261737.41266.ronstk@...239...> References: <446C7260.4050707@...1237...> <6c208f950605260112h6352cc28i81042727efe76860@...627...> <200605261737.41266.ronstk@...239...> Message-ID: <200605261753.54465.gambas@...1...> On Friday 26 May 2006 17:37, ron wrote: > ----8<--- > > > The desktop resolution isn't the only problem. I'm practically going > > mad here trying to make an app that works in at least the 3 main > > resolutions (640x480, 800x600 and 1024x768). First I tried fitting the > > window to the desktop, but that caused untold resizing problems, > > specially with fonts and buttons. Then i decided to work with a fixed > > 640x480 size window (size set in startup code, to avoid the same > > problem as Leonardo), centered in the display at larger resolutions. > > When the resolution is 640x480, I remove the window borders in code. > > This seemed to be working more or less, though I did have to implement > > scrollbars in the TexLlabels, as the font doesn't fit at the 2 lower > > resolutions. Now I just found out that if I use an external monitor > > instead of the notebook's LCD (both set at the same resolution, mind > > you), fonts and buttons look much larger in the monitor and now a lot > > of stuff doesn't fit in the window anymore! I'm guessing it's > > something to do with the dpi setting that probably differs between LCD > > and monitor, but I don't understand why, as both are set to 1024x768 > > and even the horizontal size is very similar. > > > > Regards, > > Joe1962 > > I feel your madness here in Holland :) What about me? > > I'm making a project that should work on a monitor 90' turned, AKA > portrait. Resolution landscape 1280x1024 but portrait 1024x1280 > > In the upper 1024x768 the project window and the lower part > 1024x512 some lookup information for the user. :) (me?) > > I found in source code MAIN_SCALE=fm.height()/2 and initial a MAIN_SCALE=8 > fm is here the font_metrics and asumed as 8x16 ? > I must/want use a 8x12 font. > > During MoveScaled X, Y, W and H are multiplied by same MAIN_SCALE. > I wanted forms to be scaled relatively to the height of the default font (not width, because it depends on the font character). The goal is having forms visible whatever the user font size is. But it isn't finished. I want it to be optional at a window level. I will add something like a 'Scale' property to the Window class to tell if dimensions must be scaled or not. For example, windows don't have to be scaled when they are resizable and correctly managed by the program. But dialogs often must be scaled. > I believe MAIN_SCALE should be "(fm.width()/fm.height()) x fm.width()" > in the first place. But should it not be more correct to use > "(screen.width()/screen.height()) x screen.width()" as that is the > intension ? ?? > The character dimensions are in no way related to the screen > dimensions for width/height values. > > The idea behind it is not bad but it works out not always to be a wanted > side effect. Now I understand the form size problems between the to > machines/monitor I'm using. > > Could it not be made a option for the project in gb.Application or > gb.qt.Desktop to use xxxScaled or not ? Yes. > > When I use MyForm.Height = MyForm.Width * DeskTop.Scale there is now > something wrong with the height :( ???? You didn't undestand what MAIN_Scale is. Look at the source code of the MoveScaled and ResizeScaled methods. > > I thought [object].Width * DeskTop.Scale = [object].Height > > > My 2 x DeskTop.Scale Cents > > Ron > > > > PS > For Joe1962: > As I asume the Fontmetrics are used as reference I asume a 8x16 font is > used as default metrics. > > You can try in gb.qt/src/main.cpp at line 117: > int MAIN_in_wait = 0; > int MAIN_loop_level = 0; > int MAIN_scale = 8; //<---- Change this to MAIN_scale = 16; (the height) This default value is never used, so you can put what you want there. > > static bool in_event_loop = false; > > > and at line 366: > > void MAIN_update_scale(void) > { > QFontMetrics fm(QApplication::font()); > MAIN_scale = fm.height() / 2; // <--- change this to fm.height() / 1; > } > > This should effective disable the xxxScale but I have not tested this. > Do not forget the "make; make install" Of course not, you just scale things twice! You can't disable scale at the moment, unless assigning a fixed value to MAIN_scale. But it won't solve everything, as the IDE already uses the scaling process, i.e. instead of saving absolute coordinates, it saves absolutes coordinates divided by the current scale (see the IDE source code). -- Benoit Minisini From ronstk at ...239... Fri May 26 19:27:17 2006 From: ronstk at ...239... (ron) Date: Fri, 26 May 2006 19:27:17 +0200 Subject: [Gambas-user] Strange way of working about form dimensions In-Reply-To: <200605261753.54465.gambas@...1...> References: <446C7260.4050707@...1237...> <200605261737.41266.ronstk@...239...> <200605261753.54465.gambas@...1...> Message-ID: <200605261927.17981.ronstk@...239...> On Friday 26 May 2006 17:53, Benoit Minisini wrote: > On Friday 26 May 2006 17:37, ron wrote: ----8<--- > > > I believe MAIN_SCALE should be "(fm.width()/fm.height()) x fm.width()" > > in the first place. But should it not be more correct to use > > "(screen.width()/screen.height()) x screen.width()" as that is the > > intension ? > > ?? I did asume a value for height to width relation but itis more like a zoom factor. > > > The character dimensions are in no way related to the screen > > dimensions for width/height values. > > > > The idea behind it is not bad but it works out not always to be a wanted > > side effect. Now I understand the form size problems between the to > > machines/monitor I'm using. > > > > Could it not be made a option for the project in gb.Application or > > gb.qt.Desktop to use xxxScaled or not ? > > Yes. > > > > > When I use MyForm.Height = MyForm.Width * DeskTop.Scale there is now > > something wrong with the height :( > > ???? You didn't undestand what MAIN_Scale is. Look at the source code of the > MoveScaled and ResizeScaled methods. I saw in the code both are using the x,y,w,h / MAIN_Scale and then calling the not Scaled function. CWidget.cpp: BEGIN_METHOD(CWIDGET_resize_scaled, GB_FLOAT w; GB_FLOAT h) int w, h; w = (int)(VARG(w) * MAIN_scale); h = (int)(VARG(h) * MAIN_scale); resize_widget(_object, w , h); END_METHOD Here it act as a zoom factor instead screen width/height relation. > > > > > I thought [object].Width * DeskTop.Scale = [object].Height > > > > > > My 2 x DeskTop.Scale Cents > > > > Ron > > > > > > > > PS > > For Joe1962: > > As I asume the Fontmetrics are used as reference I asume a 8x16 font is > > used as default metrics. > > > > You can try in gb.qt/src/main.cpp at line 117: > > int MAIN_in_wait = 0; > > int MAIN_loop_level = 0; > > int MAIN_scale = 8; //<---- Change this to MAIN_scale = 16; (the height) > > This default value is never used, so you can put what you want there. OK > > > > > static bool in_event_loop = false; > > > > > > and at line 366: > > > > void MAIN_update_scale(void) > > { > > QFontMetrics fm(QApplication::font()); > > MAIN_scale = fm.height() / 2; // <--- change this to fm.height() / 1; > > } > > > > This should effective disable the xxxScale but I have not tested this. > > Do not forget the "make; make install" > > Of course not, you just scale things twice! ?? if in the CWidget.cpp the MAIN_scale equals 1 the valuas for x,y,w, and h stay the same. > > You can't disable scale at the moment, unless assigning a fixed value to > MAIN_scale. But it won't solve everything, as the IDE already uses the > scaling process, i.e. instead of saving absolute coordinates, it saves > absolutes coordinates divided by the current scale (see the IDE source code). > As you say above "But it isn't finished." we wait till it is :) Greets from rainy Holland Ron ------------------------------------------------------------------------------ A programmer does never finish his project, he always find something is missing. :) From sirfabien at ...626... Sat May 27 23:22:26 2006 From: sirfabien at ...626... (Fabien Bodard) Date: Sat, 27 May 2006 23:22:26 +0200 Subject: [Gambas-user] Re: [Gambas-devel] Release of gambas 1.9.30 In-Reply-To: <200605240131.47023.gambas@...1...> References: <200605210031.19713.gambas@...1...> <200605212253.25398.sirfabien@...626...> <200605240131.47023.gambas@...1...> Message-ID: <200605272322.26784.sirfabien@...626...> Le Wednesday 24 Mai 2006 01:31, Benoit Minisini a ?crit?: > On Sunday 21 May 2006 22:53, Fabien Bodard wrote: > > Le Sunday 21 Mai 2006 19:17, Daniel Campos a ?crit?: > > > > Hi, Benoit and Daniel, > > > > For me, no problem like Daniel but the side panel are unusable in a 1024 > > X 768 resolution. if i want to design a form too big it's really not > > usefull. > > > > I think the for designer can't be in the same container (workspace). > > > > It remember a program i don't like ... krita... not for the capability > > but for the same problem on 'little resolution'. I think today 1024X... i > > the standard resolution... and the max that my laptop can do ! > > > > Regards, > > Fabien Bodard > > I reworked shortcuts, and added some to hide the side panels, and one > shortcut (F10) to show/hide every visible side panels. > > Anyway, if your form is too big in the IDE with a 1024x768 resolution, it > may be too big to the user at runtime with the same resolution :-) > > Regards, Maybe my explanation was bad... it's the workspace with the side panel that is too little nevertheless i think this shortcut can resolve my problem ! From tim.thelion at ...626... Sun May 28 23:45:33 2006 From: tim.thelion at ...626... (Tim hobbs) Date: Sun, 28 May 2006 14:45:33 -0700 Subject: [Gambas-user] weird error Message-ID: <650efde80605281445w7d521d0u9e7622112f36d4c4@...627...> when I try to run gui apps I get X Error: BadDevice, invalid or uninitialized input device 154 Major opcode: 143 Minor opcode: 3 Resource id: 0x0 Failed to open device X Error: BadDevice, invalid or uninitialized input device 154 Major opcode: 143 Minor opcode: 3 Resource id: 0x0 Failed to open device ERROR: #2: Cannot load class 'FBrowser': Unable to load class file -- - Tim tim.thelion at ...626... From gambas at ...1... Sun May 28 23:50:31 2006 From: gambas at ...1... (Benoit Minisini) Date: Sun, 28 May 2006 23:50:31 +0200 Subject: [Gambas-user] Release of gambas 1.9.31 Message-ID: <200605282350.31753.gambas@...1...> Hi, folks. This new release mainly enhances the MDI development environment: * The Editor control is used instead of the old GambasEditor control that was removed. * The hierarchy window and the icon editor toolbox were put in the right side panel. * The arrow keys now move controls in the form editor. * The text editor has HTML syntax highlighting now. The database manager has a new dialog for importing CSV files too. Note that there are problems yet with shortcuts, as many menus have the same shortcuts. For example, you get srange behaviours when hitting CTRL+C/CTRL+X/CTRL+V in the editor, as these shortcuts are defined in the popup menu of the project treeview. I don't know how to solve this problem in a clean way. I plan to make a class named Action. This class will centralize all actions associated with menu entries, buttons, toolbar buttons... The menu entries, and the buttons will subscribe to an action, and then you will be able to catch the activation of these controls, or to enable/disable them in one shot, by using the Action class. Nothing is done yet! And there are of course a bunch of bug fixes. Here is the ChangeLog: --8<------------------------------------------------------------------------ DEVELOPMENT ENVIRONMENT * NEW: The GambasEditor control has been replaced by the Editor control. * NEW: The hierarchy window and the icon editor toolbox were put in the right side panel. * NEW: The arrow keys now move controls in the form editor. * NEW: A new menu entry to copy the path of a project data file into the clipboard. * BUG: Constraints between components should be correctly managed now, in the project properties dialog. * NEW: The text editor has HTML syntax highlighting now. * BUG: The translation dialog does not fail anymore when the project directory includes non-ASCII characters. * NEW: Defining the project startup class is optimized now. DATABASE MANAGER * NEW: A new dialog for importing CSV files. * BUG: Image.Load() is static now. Some fixes of image loading. INTERPRETER * BUG: RDir() was fixed, and should work with very long file names now. COMPILER * BUG: A bug in the reading of *.list file was fixed. It prevented the compilation of project using EXPORT OPTIONAL. GB.QT COMPONENT * BUG: The default and cancel buttons management was fixed. * BUG: Drawing.Width and Drawing.Height should always return an accurate value now. * BUG: Stretching a null image now creates a void image of the specified size. * BUG: Menu events generated by a menu opened with the Popup method are now delivered before the method returns. GB.QT.EXT COMPONENT * BUG: Many fixes in the keyboard and focus handling of the Editor control. * NEW: All line numbers are displayed in the Editor control. * BUG: Gambas sytnax highlighting does not leak memory anymore. GB.QT.EDITOR COMPONENT * This component has been removed. GB.FORM COMPONENT * BUG: The DirChooser now raises its events correctly. * NEW: SidePanel buttons now can display a tooltip. GB.DB COMPONENT * BUG: Void table, index or field names are correctly handled now, and do not crash the interpreter anymore. --8<------------------------------------------------------------------------ Enjoy it! -- Benoit Minisini From rohnny at ...1248... Mon May 29 06:39:05 2006 From: rohnny at ...1248... (R. Stormo) Date: Sun, 28 May 2006 21:39:05 -0700 (PDT) Subject: [Gambas-user] Release of gambas 1.9.31 In-Reply-To: <200605282350.31753.gambas@...1...> References: <200605282350.31753.gambas@...1...> Message-ID: <4605859.post@...1379...> Not able to "make" V. 1,9,31. Have had the same problem in the latest version. --snip Making all in gb.pdf make[2]: Entering directory `/home/rohnny/Desktop/gambas2-1.9.31/gb.pdf' make all-recursive make[3]: Entering directory `/home/rohnny/Desktop/gambas2-1.9.31/gb.pdf' Making all in src make[4]: Entering directory `/home/rohnny/Desktop/gambas2-1.9.31/gb.pdf/src' if /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/poppler -pipe -Wall -fno-exceptions -Wno-unused-value -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT main.lo -MD -MP -MF ".deps/main.Tpo" -c -o main.lo main.cpp; \ then mv -f ".deps/main.Tpo" ".deps/main.Plo"; else rm -f ".deps/main.Tpo"; exit 1; fi g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/poppler -pipe -Wall -fno-exceptions -Wno-unused-value -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT main.lo -MD -MP -MF .deps/main.Tpo -c main.cpp -fPIC -DPIC -o .libs/main.o main.cpp: In function 'int GB_INIT()': main.cpp:63: error: 'class GlobalParams' has no member named 'setupBaseFontsFc' make[4]: *** [main.lo] Error 1 make[4]: Leaving directory `/home/rohnny/Desktop/gambas2-1.9.31/gb.pdf/src' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/rohnny/Desktop/gambas2-1.9.31/gb.pdf' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/rohnny/Desktop/gambas2-1.9.31/gb.pdf' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/rohnny/Desktop/gambas2-1.9.31' make: *** [all] Error 2 --snap Regards R. Stormo ----------------------------------------- Gambas brings Basic to Linux. My Gambas Community http://forum.stormweb.no -- View this message in context: http://www.nabble.com/Release+of+gambas+1.9.31-t1696256.html#a4605859 Sent from the gambas-user forum at Nabble.com. From gambas at ...1... Mon May 29 06:59:48 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 29 May 2006 06:59:48 +0200 Subject: [Gambas-user] Release of gambas 1.9.31 In-Reply-To: <4605859.post@...1379...> References: <200605282350.31753.gambas@...1...> <4605859.post@...1379...> Message-ID: <200605290659.48299.gambas@...1...> On Monday 29 May 2006 06:39, R. Stormo wrote: > Not able to "make" V. 1,9,31. Have had the same problem in the latest > version. > --snip > Making all in gb.pdf > make[2]: Entering directory `/home/rohnny/Desktop/gambas2-1.9.31/gb.pdf' > make all-recursive > make[3]: Entering directory `/home/rohnny/Desktop/gambas2-1.9.31/gb.pdf' > Making all in src > make[4]: Entering directory > `/home/rohnny/Desktop/gambas2-1.9.31/gb.pdf/src' if /bin/sh ../libtool > --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. > -I/usr/include/poppler -pipe -Wall -fno-exceptions > -Wno-unused-value -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT > main.lo -MD -MP -MF ".deps/main.Tpo" -c -o main.lo main.cpp; \ > then mv -f ".deps/main.Tpo" ".deps/main.Plo"; else rm -f > ".deps/main.Tpo"; exit 1; fi > g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/poppler -pipe -Wall > -fno-exceptions -Wno-unused-value -fvisibility=hidden -g -Os > -fno-omit-frame-pointer -MT main.lo -MD -MP -MF .deps/main.Tpo -c main.cpp > -fPIC -DPIC -o .libs/main.o > main.cpp: In function 'int GB_INIT()': > main.cpp:63: error: 'class GlobalParams' has no member named > 'setupBaseFontsFc' > make[4]: *** [main.lo] Error 1 > make[4]: Leaving directory `/home/rohnny/Desktop/gambas2-1.9.31/gb.pdf/src' > make[3]: *** [all-recursive] Error 1 > make[3]: Leaving directory `/home/rohnny/Desktop/gambas2-1.9.31/gb.pdf' > make[2]: *** [all] Error 2 > make[2]: Leaving directory `/home/rohnny/Desktop/gambas2-1.9.31/gb.pdf' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/rohnny/Desktop/gambas2-1.9.31' > make: *** [all] Error 2 > --snap > Regards > R. Stormo > ----------------------------------------- > Gambas brings Basic to Linux. > My Gambas Community http://forum.stormweb.no > > You have to disable the gb.pdf component, it only compile with the stable release of poppler (0.4), not the development one. Regards, -- Benoit Minisini From eilert-sprachen at ...221... Mon May 29 09:32:42 2006 From: eilert-sprachen at ...221... (Eilert) Date: Mon, 29 May 2006 09:32:42 +0200 Subject: [Gambas-user] Why 1.9.x doesn't show up In-Reply-To: <200605231928.02324.gambas@...1...> References: <4472C9E1.3050506@...221...> <200605231928.02324.gambas@...1...> Message-ID: <447AA39A.3050509@...221...> Benoit Minisini schrieb: > On Tuesday 23 May 2006 10:37, Eilert wrote: >> Morning, Benoit, >> >> is there a log file by the gbx2 binaries where I might find a hint to >> what causes Gambas2 to not show up on my system? >> >> Or can I start it with an option that gives error messages? >> >> You'll remember: since you introduced MDI, Gambas will run like "hidden" >> on my system, i. e. it's running but you cannot see any windows (the >> only thing you get to see is the greeting window). >> >> By the way, the dancing symbol KDE produces doesn't stop, so KDE never >> knows that Gambas2 has started. But the binary is in the list of >> processes, and if you just log out and log in again, Gambas will pop up >> and greet again. >> >> But there should be a way to find out where it hangs... :-) Maybe some >> too old library or something missing on my system? >> >> Regards >> >> Rolf >> > > 1) Check that you compile it without optimization and with debugging > information (this is the default normally). > > 2) Launch the IDE. > > 3) Get its process id with 'ps'. > > 4) Run gdb by telling it to attach to this process id, like that: > $ gdb /usr/bin/gbx2 > > 5) Stop it with CTRL+C in gdb. > > 6) Type bt, get the backtrace, and send it to me. > > Another useful information is launching the IDE with strace until it freezes, > and sending the output. This way: > $ cd > $ strace gbx2 2> strace.out > > Regards, > I hope I did it right, just started gambas2 as usual, then looked for the pid of gbx2, connected gbd to it and pressed Ctrl+C. So this is the result of bt: #0 0xffffe410 in ?? () #1 0xbfffd93c in ?? () #2 0x080b355c in ?? () #3 0x080b33d8 in ?? () #4 0x407f235d in ___newselect_nocancel () from /lib/tls/libc.so.6 #5 0x401f5cc7 in QEventLoop::processEvents () from /usr/lib/libqt-mt.so.3 #6 0x40d90f25 in MyEventLoop::processEvents (this=0x80b3358, flags=4) at main.cpp:240 #7 0x4025ea31 in QEventLoop::enterLoop () from /usr/lib/libqt-mt.so.3 #8 0x4025e876 in QEventLoop::exec () from /usr/lib/libqt-mt.so.3 #9 0x402488df in QApplication::exec () from /usr/lib/libqt-mt.so.3 #10 0x40d909f3 in hook_loop () at main.cpp:444 #11 0x0805fdd4 in main (argc=1, argv=0xbfffdbc4) at gbx.c:323 I tried the second one as well, this is the contents of strace.out: execve("./gbx2", ["./gbx2"], [/* 74 vars */]) = 0 uname({sys="Linux", node="server02", ...}) = 0 brk(0) = 0x8072000 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000 open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=104584, ...}) = 0 old_mmap(NULL, 104584, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40018000 close(3) = 0 open("/lib/tls/libm.so.6", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p5\0\000"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=170563, ...}) = 0 old_mmap(NULL, 137712, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40032000 madvise(0x40032000, 137712, MADV_SEQUENTIAL|0x1) = 0 old_mmap(0x40053000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x20000) = 0x40053000 close(3) = 0 open("/lib/libdl.so.2", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`\33\0\000"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=13647, ...}) = 0 old_mmap(NULL, 8628, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40054000 madvise(0x40054000, 8628, MADV_SEQUENTIAL|0x1) = 0 old_mmap(0x40056000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x2000) = 0x40056000 close(3) = 0 open("/lib/tls/libc.so.6", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360U\1"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=1349081, ...}) = 0 old_mmap(NULL, 1132940, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40057000 madvise(0x40057000, 1132940, MADV_SEQUENTIAL|0x1) = 0 old_mmap(0x40161000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x10a000) = 0x40161000 old_mmap(0x40169000, 10636, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40169000 close(3) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4016c000 set_thread_area({entry_number:-1 -> 6, base_addr:0x4016c660, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0 munmap(0x40018000, 104584) = 0 getcwd("/raid/usr/local/bin", 4096) = 20 chdir("/raid/usr/local/bin/.") = 0 getcwd("/raid/usr/local/bin", 4096) = 20 brk(0) = 0x8072000 brk(0x8093000) = 0x8093000 brk(0) = 0x8093000 open("/raid/usr/local/bin/.project", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory) getuid32() = 1000 mkdir("/tmp/gambas.1000", 0700) = -1 EEXIST (File exists) getpid() = 16023 getuid32() = 1000 mkdir("/tmp/gambas.1000/16023", 0700) = 0 gettimeofday({1148887793, 631162}, NULL) = 0 open("/etc/localtime", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=837, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40018000 read(3, "TZif\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10\0\0\0\10"..., 4096) = 837 close(3) = 0 munmap(0x40018000, 4096) = 0 gettimeofday({1148887793, 633543}, NULL) = 0 getcwd("/raid/usr/local/bin", 4096) = 20 access("/usr/bin/gbx2", F_OK) = 0 readlink("/usr/bin/gbx2", "/usr/local/bin/gbx2", 512) = 19 getuid32() = 1000 socket(PF_UNIX, SOCK_STREAM, 0) = 3 connect(3, {sa_family=AF_UNIX, path="/var/run/.nscd_socket"}, 110) = 0 writev(3, [{"\2\0\0\0\1\0\0\0\5\0\0\0", 12}, {"1000\0", 5}], 2) = 17 read(3, "\2\0\0\0\1\0\0\0\7\0\0\0\2\0\0\0\350\3\0\0d\0\0\0\23\0"..., 36) = 36 read(3, "tester\0x\0Testervor Nachname\0/hom"..., 51) = 51 close(3) = 0 getcwd("/raid/usr/local/bin", 4096) = 20 chdir("/raid/usr/local/bin/.") = 0 getcwd("/raid/usr/local/bin", 4096) = 20 chdir("/raid/usr/local/bin") = 0 open("/raid/usr/local/bin/.project", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory) write(2, "ERROR: ", 7ERROR: ) = 7 write(2, "#45: ", 5#45: ) = 5 write(2, "File or directory does not exist"..., 33File or directory does not exist ) = 33 getuid32() = 1000 stat64("/tmp/gambas.1000/16023", {st_mode=S_IFDIR|0700, st_size=48, ...}) = 0 open("/tmp/gambas.1000/16023", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3 fstat64(3, {st_mode=S_IFDIR|0700, st_size=48, ...}) = 0 fcntl64(3, F_SETFD, FD_CLOEXEC) = 0 getdents64(3, /* 2 entries */, 4096) = 48 getdents64(3, /* 0 entries */, 4096) = 0 close(3) = 0 exit_group(1) = ? Now, can you recognize anything out of it? Thanks for your time! Regards Rolf From eilert-sprachen at ...221... Mon May 29 09:35:11 2006 From: eilert-sprachen at ...221... (Eilert) Date: Mon, 29 May 2006 09:35:11 +0200 Subject: [Gambas-user] Why 1.9.x doesn't show up In-Reply-To: <200605231928.02324.gambas@...1...> References: <4472C9E1.3050506@...221...> <200605231928.02324.gambas@...1...> Message-ID: <447AA42F.7050800@...221...> Benoit Minisini schrieb: > On Tuesday 23 May 2006 10:37, Eilert wrote: >> Morning, Benoit, >> >> is there a log file by the gbx2 binaries where I might find a hint to >> what causes Gambas2 to not show up on my system? >> >> Or can I start it with an option that gives error messages? >> >> You'll remember: since you introduced MDI, Gambas will run like "hidden" >> on my system, i. e. it's running but you cannot see any windows (the >> only thing you get to see is the greeting window). >> >> By the way, the dancing symbol KDE produces doesn't stop, so KDE never >> knows that Gambas2 has started. But the binary is in the list of >> processes, and if you just log out and log in again, Gambas will pop up >> and greet again. >> >> But there should be a way to find out where it hangs... :-) Maybe some >> too old library or something missing on my system? >> >> Regards >> >> Rolf >> > > 1) Check that you compile it without optimization and with debugging > information (this is the default normally). > > 2) Launch the IDE. > > 3) Get its process id with 'ps'. > > 4) Run gdb by telling it to attach to this process id, like that: > $ gdb /usr/bin/gbx2 > > 5) Stop it with CTRL+C in gdb. > > 6) Type bt, get the backtrace, and send it to me. > > Another useful information is launching the IDE with strace until it freezes, > and sending the output. This way: > $ cd > $ strace gbx2 2> strace.out > > Regards, > Just forgot to mention that I downloaded and installed the 1.9.31 this morning, and now the maskot appears, but nothing else :-)) I hope I did it right, just started gambas2 as usual, then looked for the pid of gbx2, connected gbd to it and pressed Ctrl+C. So this is the result of bt: #0 0xffffe410 in ?? () #1 0xbfffd93c in ?? () #2 0x080b355c in ?? () #3 0x080b33d8 in ?? () #4 0x407f235d in ___newselect_nocancel () from /lib/tls/libc.so.6 #5 0x401f5cc7 in QEventLoop::processEvents () from /usr/lib/libqt-mt.so.3 #6 0x40d90f25 in MyEventLoop::processEvents (this=0x80b3358, flags=4) at main.cpp:240 #7 0x4025ea31 in QEventLoop::enterLoop () from /usr/lib/libqt-mt.so.3 #8 0x4025e876 in QEventLoop::exec () from /usr/lib/libqt-mt.so.3 #9 0x402488df in QApplication::exec () from /usr/lib/libqt-mt.so.3 #10 0x40d909f3 in hook_loop () at main.cpp:444 #11 0x0805fdd4 in main (argc=1, argv=0xbfffdbc4) at gbx.c:323 I tried the second one as well, this is the contents of strace.out: execve("./gbx2", ["./gbx2"], [/* 74 vars */]) = 0 uname({sys="Linux", node="server02", ...}) = 0 brk(0) = 0x8072000 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000 open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=104584, ...}) = 0 old_mmap(NULL, 104584, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40018000 close(3) = 0 open("/lib/tls/libm.so.6", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p5\0\000"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=170563, ...}) = 0 old_mmap(NULL, 137712, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40032000 madvise(0x40032000, 137712, MADV_SEQUENTIAL|0x1) = 0 old_mmap(0x40053000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x20000) = 0x40053000 close(3) = 0 open("/lib/libdl.so.2", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`\33\0\000"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=13647, ...}) = 0 old_mmap(NULL, 8628, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40054000 madvise(0x40054000, 8628, MADV_SEQUENTIAL|0x1) = 0 old_mmap(0x40056000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x2000) = 0x40056000 close(3) = 0 open("/lib/tls/libc.so.6", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360U\1"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=1349081, ...}) = 0 old_mmap(NULL, 1132940, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40057000 madvise(0x40057000, 1132940, MADV_SEQUENTIAL|0x1) = 0 old_mmap(0x40161000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x10a000) = 0x40161000 old_mmap(0x40169000, 10636, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40169000 close(3) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4016c000 set_thread_area({entry_number:-1 -> 6, base_addr:0x4016c660, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0 munmap(0x40018000, 104584) = 0 getcwd("/raid/usr/local/bin", 4096) = 20 chdir("/raid/usr/local/bin/.") = 0 getcwd("/raid/usr/local/bin", 4096) = 20 brk(0) = 0x8072000 brk(0x8093000) = 0x8093000 brk(0) = 0x8093000 open("/raid/usr/local/bin/.project", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory) getuid32() = 1000 mkdir("/tmp/gambas.1000", 0700) = -1 EEXIST (File exists) getpid() = 16023 getuid32() = 1000 mkdir("/tmp/gambas.1000/16023", 0700) = 0 gettimeofday({1148887793, 631162}, NULL) = 0 open("/etc/localtime", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=837, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40018000 read(3, "TZif\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10\0\0\0\10"..., 4096) = 837 close(3) = 0 munmap(0x40018000, 4096) = 0 gettimeofday({1148887793, 633543}, NULL) = 0 getcwd("/raid/usr/local/bin", 4096) = 20 access("/usr/bin/gbx2", F_OK) = 0 readlink("/usr/bin/gbx2", "/usr/local/bin/gbx2", 512) = 19 getuid32() = 1000 socket(PF_UNIX, SOCK_STREAM, 0) = 3 connect(3, {sa_family=AF_UNIX, path="/var/run/.nscd_socket"}, 110) = 0 writev(3, [{"\2\0\0\0\1\0\0\0\5\0\0\0", 12}, {"1000\0", 5}], 2) = 17 read(3, "\2\0\0\0\1\0\0\0\7\0\0\0\2\0\0\0\350\3\0\0d\0\0\0\23\0"..., 36) = 36 read(3, "tester\0x\0Testervor Nachname\0/hom"..., 51) = 51 close(3) = 0 getcwd("/raid/usr/local/bin", 4096) = 20 chdir("/raid/usr/local/bin/.") = 0 getcwd("/raid/usr/local/bin", 4096) = 20 chdir("/raid/usr/local/bin") = 0 open("/raid/usr/local/bin/.project", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory) write(2, "ERROR: ", 7ERROR: ) = 7 write(2, "#45: ", 5#45: ) = 5 write(2, "File or directory does not exist"..., 33File or directory does not exist ) = 33 getuid32() = 1000 stat64("/tmp/gambas.1000/16023", {st_mode=S_IFDIR|0700, st_size=48, ...}) = 0 open("/tmp/gambas.1000/16023", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3 fstat64(3, {st_mode=S_IFDIR|0700, st_size=48, ...}) = 0 fcntl64(3, F_SETFD, FD_CLOEXEC) = 0 getdents64(3, /* 2 entries */, 4096) = 48 getdents64(3, /* 0 entries */, 4096) = 0 close(3) = 0 exit_group(1) = ? Now, can you recognize anything out of it? Thanks for your time! Regards Rolf From gambas at ...1... Mon May 29 18:58:23 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 29 May 2006 18:58:23 +0200 Subject: [Gambas-user] Why 1.9.x doesn't show up In-Reply-To: <447AA42F.7050800@...221...> References: <4472C9E1.3050506@...221...> <200605231928.02324.gambas@...1...> <447AA42F.7050800@...221...> Message-ID: <200605291858.23489.gambas@...1...> On Monday 29 May 2006 09:35, Eilert wrote: > Benoit Minisini schrieb: > > Another useful information is launching the IDE with strace until it > > freezes, and sending the output. This way: > > $ cd > > $ strace gbx2 2> strace.out > > > > Regards, > > Just forgot to mention that I downloaded and installed the 1.9.31 this > morning, and now the maskot appears, but nothing else :-)) > > > I hope I did it right, just started gambas2 as usual, then looked for > the pid of gbx2, connected gbd to it and pressed Ctrl+C. > > So this is the result of bt: > > #0 0xffffe410 in ?? () > #1 0xbfffd93c in ?? () > #2 0x080b355c in ?? () > #3 0x080b33d8 in ?? () > #4 0x407f235d in ___newselect_nocancel () from /lib/tls/libc.so.6 > #5 0x401f5cc7 in QEventLoop::processEvents () from /usr/lib/libqt-mt.so.3 > #6 0x40d90f25 in MyEventLoop::processEvents (this=0x80b3358, flags=4) > at main.cpp:240 > #7 0x4025ea31 in QEventLoop::enterLoop () from /usr/lib/libqt-mt.so.3 > #8 0x4025e876 in QEventLoop::exec () from /usr/lib/libqt-mt.so.3 > #9 0x402488df in QApplication::exec () from /usr/lib/libqt-mt.so.3 > #10 0x40d909f3 in hook_loop () at main.cpp:444 > #11 0x0805fdd4 in main (argc=1, argv=0xbfffdbc4) at gbx.c:323 > > > I tried the second one as well, this is the contents of strace.out: > Sorry, I made a mistake. You must type 'strace gbx2 -p 2> strace.out'. I will compare it with my own... Regards, -- Benoit Minisini From cjro99 at ...67... Mon May 29 20:13:38 2006 From: cjro99 at ...67... (javier romero) Date: Mon, 29 May 2006 18:13:38 +0000 Subject: [Gambas-user] printer.setup Message-ID: I have 3 printers, 1) epson stylus color 480, 2) epson C-45 3) Cannon BJC-4300 all attach via Samba and use CUPS, when i use Printer.Setup and press ok button, i think the printer.resolution have the "printer resolution" of the selected printer but its not correct, the 3 printers haves diferent resolutions, but when i print the printer.resolution value for each , the values are the same, 600 dpi, in my case this is the resolution of the defaul printer, the epson 480. Seems the printer.setup dont change the value of the printer.resolution when is selected another printer. Thank Javier _________________________________________________________________ Descarga gratis la Barra de Herramientas de MSN http://www.msn.es/usuario/busqueda/barra?XAPID=2031&DI=1055&SU=http%3A//www.hotmail.com&HL=LINKTAG1OPENINGTEXT_MSNBH From cjro99 at ...67... Mon May 29 20:18:54 2006 From: cjro99 at ...67... (javier romero) Date: Mon, 29 May 2006 18:18:54 +0000 Subject: [Gambas-user] Drawing again Message-ID: When i stretch an image to fit this properly into the printer size, its very slowly, and when finish, when goes out the proyect, all open forms opened in this moment (including the gambas IDE), are redraw. this takes a several seconds and do an very ugly effect Why? Im use gambas 1.0.15 in red hat 9 with genome, i have 512K of memory Thanks Javier _________________________________________________________________ Descarga gratis la Barra de Herramientas de MSN http://www.msn.es/usuario/busqueda/barra?XAPID=2031&DI=1055&SU=http%3A//www.hotmail.com&HL=LINKTAG1OPENINGTEXT_MSNBH From sourceforge-raindog2 at ...94... Mon May 29 20:02:14 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Mon, 29 May 2006 14:02:14 -0400 Subject: [Gambas-user] Mandriva packages of 1.0.16 and 1.9.31 Message-ID: <200605291402.14358.sourceforge-raindog2@...94...> Here you go.... maybe I can stay on top of releases now. http://www.kudla.org/blog.php?wl_mode=more&wl_eid=84 Rob From gambas at ...1... Mon May 29 20:22:39 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 29 May 2006 20:22:39 +0200 Subject: [Gambas-user] printer.setup In-Reply-To: References: Message-ID: <200605292022.39227.gambas@...1...> On Monday 29 May 2006 20:13, javier romero wrote: > I have 3 printers, > 1) epson stylus color 480, > 2) epson C-45 > 3) Cannon BJC-4300 > all attach via Samba and use CUPS, when i use Printer.Setup and press ok > button, i think the printer.resolution have the "printer resolution" of the > selected printer but its not correct, the 3 printers haves diferent > resolutions, but when i print the printer.resolution value for each , the > values are the same, 600 dpi, in my case this is the resolution of the > defaul printer, the epson 480. Seems the printer.setup dont change the > value of the printer.resolution when is selected another printer. > > Thank > Javier > According to the Qt doc, the resolution is what the user wants, and not what the printer provides. As Qt does not CUPS at all, the Printer.Setup dialog is not aware of the printers connected to the system, and so is almost useless. The only useful thing at the moment is printing to a postcript file, and send the file to the kprinter program (if you have KDE). For Gnome users, maybe there is an equivalent program that does the same thing, I don't know. Maybe someone has the answer? In the future, QT may use CUPS, and if it won't, I may make a CUPS component. A lof of conditionals, isn't it? :-) Regards, -- Benoit Minisini From gambas at ...1... Mon May 29 20:56:34 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 29 May 2006 20:56:34 +0200 Subject: [Gambas-user] Drawing again In-Reply-To: References: Message-ID: <200605292056.34532.gambas@...1...> On Monday 29 May 2006 20:18, javier romero wrote: > When i stretch an image to fit this properly into the printer size, its > very slowly, and when finish, when goes out the proyect, all open forms > opened in this moment (including the gambas IDE), are redraw. this takes a > several seconds and do an very ugly effect Why? > Im use gambas 1.0.15 in red hat 9 with genome, i have 512K of memory 512 Mb I think :-) > > Thanks > Javier Maybe the scaled image takes all the memory, and so Linux starts swapping (i.e. using the disk to emulate the needed memory). Two hints when printing images: - Don't use smooth scale. - Draw the image little parts by little parts. Regards, -- Benoit Minisini From el.carly at ...626... Mon May 29 21:04:19 2006 From: el.carly at ...626... (Carlos Cuello) Date: Mon, 29 May 2006 16:04:19 -0300 Subject: [Gambas-user] Mandriva packages of 1.0.16 and 1.9.31 In-Reply-To: <200605291402.14358.sourceforge-raindog2@...94...> References: <200605291402.14358.sourceforge-raindog2@...94...> Message-ID: Thanks Rob!!! Great Job for those (like me :P) who are just too lazy (and often can't really make it even by trying) to compile!!! Best Regards for you! Carlos 2006/5/29, Rob Kudla : > > Here you go.... maybe I can stay on top of releases now. > > http://www.kudla.org/blog.php?wl_mode=more&wl_eid=84 > > Rob > > > ------------------------------------------------------- > All the advantages of Linux Managed Hosting--Without the Cost and Risk! > Fully trained technicians. The highest number of Red Hat certifications in > the hosting industry. Fanatical Support. Click to learn more > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- An HTML attachment was scrubbed... URL: From eilert-sprachen at ...221... Tue May 30 08:12:40 2006 From: eilert-sprachen at ...221... (Eilert) Date: Tue, 30 May 2006 08:12:40 +0200 Subject: [Gambas-user] Why 1.9.x doesn't show up In-Reply-To: <200605291858.23489.gambas@...1...> References: <4472C9E1.3050506@...221...> <200605231928.02324.gambas@...1...> <447AA42F.7050800@...221...> <200605291858.23489.gambas@...1...> Message-ID: <447BE258.3050808@...221...> Benoit Minisini schrieb: > On Monday 29 May 2006 09:35, Eilert wrote: >> Benoit Minisini schrieb: >>> Another useful information is launching the IDE with strace until it >>> freezes, and sending the output. This way: >>> $ cd >>> $ strace gbx2 2> strace.out >>> >>> Regards, >> Just forgot to mention that I downloaded and installed the 1.9.31 this >> morning, and now the maskot appears, but nothing else :-)) >> >> >> I hope I did it right, just started gambas2 as usual, then looked for >> the pid of gbx2, connected gbd to it and pressed Ctrl+C. >> >> So this is the result of bt: >> >> #0 0xffffe410 in ?? () >> #1 0xbfffd93c in ?? () >> #2 0x080b355c in ?? () >> #3 0x080b33d8 in ?? () >> #4 0x407f235d in ___newselect_nocancel () from /lib/tls/libc.so.6 >> #5 0x401f5cc7 in QEventLoop::processEvents () from /usr/lib/libqt-mt.so.3 >> #6 0x40d90f25 in MyEventLoop::processEvents (this=0x80b3358, flags=4) >> at main.cpp:240 >> #7 0x4025ea31 in QEventLoop::enterLoop () from /usr/lib/libqt-mt.so.3 >> #8 0x4025e876 in QEventLoop::exec () from /usr/lib/libqt-mt.so.3 >> #9 0x402488df in QApplication::exec () from /usr/lib/libqt-mt.so.3 >> #10 0x40d909f3 in hook_loop () at main.cpp:444 >> #11 0x0805fdd4 in main (argc=1, argv=0xbfffdbc4) at gbx.c:323 >> >> >> I tried the second one as well, this is the contents of strace.out: >> > > Sorry, I made a mistake. You must type 'strace gbx2 -p 2> strace.out'. I will > compare it with my own... > > Regards, > No problem, here we go: execve("./gbx2", ["./gbx2", "-p"], [/* 74 vars */]) = 0 uname({sys="Linux", node="server02", ...}) = 0 brk(0) = 0x8072000 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000 open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=104584, ...}) = 0 old_mmap(NULL, 104584, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40018000 close(3) = 0 open("/lib/tls/libm.so.6", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p5\0\000"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=170563, ...}) = 0 old_mmap(NULL, 137712, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40032000 madvise(0x40032000, 137712, MADV_SEQUENTIAL|0x1) = 0 old_mmap(0x40053000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x20000) = 0x40053000 close(3) = 0 open("/lib/libdl.so.2", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`\33\0\000"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=13647, ...}) = 0 old_mmap(NULL, 8628, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40054000 madvise(0x40054000, 8628, MADV_SEQUENTIAL|0x1) = 0 old_mmap(0x40056000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x2000) = 0x40056000 close(3) = 0 open("/lib/tls/libc.so.6", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360U\1"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=1349081, ...}) = 0 old_mmap(NULL, 1132940, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40057000 madvise(0x40057000, 1132940, MADV_SEQUENTIAL|0x1) = 0 old_mmap(0x40161000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x10a000) = 0x40161000 old_mmap(0x40169000, 10636, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40169000 close(3) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4016c000 set_thread_area({entry_number:-1 -> 6, base_addr:0x4016c660, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0 munmap(0x40018000, 104584) = 0 getuid32() = 1000 mkdir("/tmp/gambas.1000", 0700) = -1 EEXIST (File exists) getpid() = 20338 getuid32() = 1000 mkdir("/tmp/gambas.1000/20338", 0700) = 0 gettimeofday({1148969414, 269981}, NULL) = 0 brk(0) = 0x8072000 brk(0x8093000) = 0x8093000 brk(0) = 0x8093000 open("/etc/localtime", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=837, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40018000 read(3, "TZif\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10\0\0\0\10"..., 4096) = 837 close(3) = 0 munmap(0x40018000, 4096) = 0 gettimeofday({1148969414, 272351}, NULL) = 0 getcwd("/raid/usr/local/bin", 4096) = 20 access("/usr/bin/gbx2", F_OK) = 0 readlink("/usr/bin/gbx2", "/usr/local/bin/gbx2", 512) = 19 getuid32() = 1000 socket(PF_UNIX, SOCK_STREAM, 0) = 3 connect(3, {sa_family=AF_UNIX, path="/var/run/.nscd_socket"}, 110) = 0 writev(3, [{"\2\0\0\0\1\0\0\0\5\0\0\0", 12}, {"1000\0", 5}], 2) = 17 read(3, "\2\0\0\0\1\0\0\0\7\0\0\0\2\0\0\0\350\3\0\0d\0\0\0\23\0"..., 36) = 36 read(3, "tester\0x\0Testervor Nachname\0/hom"..., 51) = 51 close(3) = 0 getcwd("/raid/usr/local/bin", 4096) = 20 chdir("/raid/usr/local/bin/.") = 0 getcwd("/raid/usr/local/bin", 4096) = 20 chdir("/raid/usr/local/bin") = 0 open("/raid/usr/local/bin/.project", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory) write(2, "ERROR: ", 7ERROR: ) = 7 write(2, "#45: ", 5#45: ) = 5 write(2, "File or directory does not exist"..., 33File or directory does not exist ) = 33 getuid32() = 1000 stat64("/tmp/gambas.1000/20338", {st_mode=S_IFDIR|0700, st_size=48, ...}) = 0 open("/tmp/gambas.1000/20338", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3 fstat64(3, {st_mode=S_IFDIR|0700, st_size=48, ...}) = 0 fcntl64(3, F_SETFD, FD_CLOEXEC) = 0 getdents64(3, /* 2 entries */, 4096) = 48 getdents64(3, /* 0 entries */, 4096) = 0 close(3) = 0 exit_group(1) = ? Regards Rolf From gambas at ...1... Tue May 30 11:36:01 2006 From: gambas at ...1... (Benoit Minisini) Date: Tue, 30 May 2006 11:36:01 +0200 Subject: [Gambas-user] Why 1.9.x doesn't show up In-Reply-To: <447BE258.3050808@...221...> References: <4472C9E1.3050506@...221...> <200605291858.23489.gambas@...1...> <447BE258.3050808@...221...> Message-ID: <200605301136.01282.gambas@...1...> On Tuesday 30 May 2006 08:12, Eilert wrote: > Benoit Minisini schrieb: > > On Monday 29 May 2006 09:35, Eilert wrote: > >> Benoit Minisini schrieb: > >>> Another useful information is launching the IDE with strace until it > >>> freezes, and sending the output. This way: > >>> $ cd > >>> $ strace gbx2 2> strace.out > >>> > >>> Regards, > >> > >> Just forgot to mention that I downloaded and installed the 1.9.31 this > >> morning, and now the maskot appears, but nothing else :-)) > >> > >> > >> I hope I did it right, just started gambas2 as usual, then looked for > >> the pid of gbx2, connected gbd to it and pressed Ctrl+C. > >> > >> So this is the result of bt: > >> > >> #0 0xffffe410 in ?? () > >> #1 0xbfffd93c in ?? () > >> #2 0x080b355c in ?? () > >> #3 0x080b33d8 in ?? () > >> #4 0x407f235d in ___newselect_nocancel () from /lib/tls/libc.so.6 > >> #5 0x401f5cc7 in QEventLoop::processEvents () from > >> /usr/lib/libqt-mt.so.3 #6 0x40d90f25 in MyEventLoop::processEvents > >> (this=0x80b3358, flags=4) at main.cpp:240 > >> #7 0x4025ea31 in QEventLoop::enterLoop () from /usr/lib/libqt-mt.so.3 > >> #8 0x4025e876 in QEventLoop::exec () from /usr/lib/libqt-mt.so.3 > >> #9 0x402488df in QApplication::exec () from /usr/lib/libqt-mt.so.3 > >> #10 0x40d909f3 in hook_loop () at main.cpp:444 > >> #11 0x0805fdd4 in main (argc=1, argv=0xbfffdbc4) at gbx.c:323 > >> > >> > >> I tried the second one as well, this is the contents of strace.out: > > > > Sorry, I made a mistake. You must type 'strace gbx2 -p 2> strace.out'. I > > will compare it with my own... > > > > Regards, > > No problem, here we go: > > execve("./gbx2", ["./gbx2", "-p"], [/* 74 vars */]) = 0 > uname({sys="Linux", node="server02", ...}) = 0 > brk(0) = 0x8072000 > old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, > -1, 0) = 0x40017000 > open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or > directory) > open("/etc/ld.so.cache", O_RDONLY) = 3 > fstat64(3, {st_mode=S_IFREG|0644, st_size=104584, ...}) = 0 > old_mmap(NULL, 104584, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40018000 > close(3) = 0 > open("/lib/tls/libm.so.6", O_RDONLY) = 3 > read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p5\0\000"..., > 512) = 512 > fstat64(3, {st_mode=S_IFREG|0755, st_size=170563, ...}) = 0 > old_mmap(NULL, 137712, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40032000 > madvise(0x40032000, 137712, MADV_SEQUENTIAL|0x1) = 0 > old_mmap(0x40053000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, > 3, 0x20000) = 0x40053000 > close(3) = 0 > open("/lib/libdl.so.2", O_RDONLY) = 3 > read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`\33\0\000"..., > 512) = 512 > fstat64(3, {st_mode=S_IFREG|0755, st_size=13647, ...}) = 0 > old_mmap(NULL, 8628, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40054000 > madvise(0x40054000, 8628, MADV_SEQUENTIAL|0x1) = 0 > old_mmap(0x40056000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, > 3, 0x2000) = 0x40056000 > close(3) = 0 > open("/lib/tls/libc.so.6", O_RDONLY) = 3 > read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360U\1"..., > 512) = 512 > fstat64(3, {st_mode=S_IFREG|0755, st_size=1349081, ...}) = 0 > old_mmap(NULL, 1132940, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = > 0x40057000 madvise(0x40057000, 1132940, MADV_SEQUENTIAL|0x1) = 0 > old_mmap(0x40161000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, > 3, 0x10a000) = 0x40161000 > old_mmap(0x40169000, 10636, PROT_READ|PROT_WRITE, > MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40169000 > close(3) = 0 > old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, > -1, 0) = 0x4016c000 > set_thread_area({entry_number:-1 -> 6, base_addr:0x4016c660, > limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, > limit_in_pages:1, seg_not_present:0, useable:1}) = 0 > munmap(0x40018000, 104584) = 0 > getuid32() = 1000 > mkdir("/tmp/gambas.1000", 0700) = -1 EEXIST (File exists) > getpid() = 20338 > getuid32() = 1000 > mkdir("/tmp/gambas.1000/20338", 0700) = 0 > gettimeofday({1148969414, 269981}, NULL) = 0 > brk(0) = 0x8072000 > brk(0x8093000) = 0x8093000 > brk(0) = 0x8093000 > open("/etc/localtime", O_RDONLY) = 3 > fstat64(3, {st_mode=S_IFREG|0644, st_size=837, ...}) = 0 > mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, > 0) = 0x40018000 > read(3, "TZif\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10\0\0\0\10"..., > 4096) = 837 > close(3) = 0 > munmap(0x40018000, 4096) = 0 > gettimeofday({1148969414, 272351}, NULL) = 0 > getcwd("/raid/usr/local/bin", 4096) = 20 As I told you, please run gbx2 *inside* then gambas IDE source directory! Not in "/raid/usr/local/bin". Regards, -- Benoit Minisini From eilert-sprachen at ...221... Tue May 30 12:28:55 2006 From: eilert-sprachen at ...221... (Eilert) Date: Tue, 30 May 2006 12:28:55 +0200 Subject: [Gambas-user] Why 1.9.x doesn't show up In-Reply-To: <200605301136.01282.gambas@...1...> References: <4472C9E1.3050506@...221...> <200605291858.23489.gambas@...1...> <447BE258.3050808@...221...> <200605301136.01282.gambas@...1...> Message-ID: <447C1E67.4060807@...221...> [...] >> getcwd("/raid/usr/local/bin", 4096) = 20 > > As I told you, please run gbx2 *inside* then gambas IDE source directory! Not > in "/raid/usr/local/bin". > > Regards, > Arrgh :-O Ok, so what does it tell you now? Looks pretty much the same to me... execve("/usr/local/bin/gbx2", ["gbx2", "-p"], [/* 74 vars */]) = 0 uname({sys="Linux", node="server02", ...}) = 0 brk(0) = 0x8072000 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000 open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=104584, ...}) = 0 old_mmap(NULL, 104584, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40018000 close(3) = 0 open("/lib/tls/libm.so.6", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p5\0\000"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=170563, ...}) = 0 old_mmap(NULL, 137712, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40032000 madvise(0x40032000, 137712, MADV_SEQUENTIAL|0x1) = 0 old_mmap(0x40053000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x20000) = 0x40053000 close(3) = 0 open("/lib/libdl.so.2", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`\33\0\000"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=13647, ...}) = 0 old_mmap(NULL, 8628, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40054000 madvise(0x40054000, 8628, MADV_SEQUENTIAL|0x1) = 0 old_mmap(0x40056000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x2000) = 0x40056000 close(3) = 0 open("/lib/tls/libc.so.6", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360U\1"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=1349081, ...}) = 0 old_mmap(NULL, 1132940, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40057000 madvise(0x40057000, 1132940, MADV_SEQUENTIAL|0x1) = 0 old_mmap(0x40161000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x10a000) = 0x40161000 old_mmap(0x40169000, 10636, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40169000 close(3) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4016c000 set_thread_area({entry_number:-1 -> 6, base_addr:0x4016c660, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0 munmap(0x40018000, 104584) = 0 getuid32() = 1000 mkdir("/tmp/gambas.1000", 0700) = -1 EEXIST (File exists) getpid() = 29622 getuid32() = 1000 mkdir("/tmp/gambas.1000/29622", 0700) = 0 gettimeofday({1148984801, 806697}, NULL) = 0 brk(0) = 0x8072000 brk(0x8093000) = 0x8093000 brk(0) = 0x8093000 open("/etc/localtime", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=837, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40018000 read(3, "TZif\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10\0\0\0\10"..., 4096) = 837 close(3) = 0 munmap(0x40018000, 4096) = 0 gettimeofday({1148984801, 808417}, NULL) = 0 getcwd("/raid/home/tester/Downloads/gambas2/gambas2-1.9.31", 4096) = 51 access("/usr/bin/gbx2", F_OK) = 0 readlink("/usr/bin/gbx2", "/usr/local/bin/gbx2", 512) = 19 getuid32() = 1000 socket(PF_UNIX, SOCK_STREAM, 0) = 3 connect(3, {sa_family=AF_UNIX, path="/var/run/.nscd_socket"}, 110) = 0 writev(3, [{"\2\0\0\0\1\0\0\0\5\0\0\0", 12}, {"1000\0", 5}], 2) = 17 read(3, "\2\0\0\0\1\0\0\0\7\0\0\0\2\0\0\0\350\3\0\0d\0\0\0\23\0"..., 36) = 36 read(3, "tester\0x\0Testervor Nachname\0/hom"..., 51) = 51 close(3) = 0 getcwd("/raid/home/tester/Downloads/gambas2/gambas2-1.9.31", 4096) = 51 chdir("/raid/home/tester/Downloads/gambas2/gambas2-1.9.31/.") = 0 getcwd("/raid/home/tester/Downloads/gambas2/gambas2-1.9.31", 4096) = 51 chdir("/raid/home/tester/Downloads/gambas2/gambas2-1.9.31") = 0 open("/raid/home/tester/Downloads/gambas2/gambas2-1.9.31/.project", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory) write(2, "ERROR: ", 7ERROR: ) = 7 write(2, "#45: ", 5#45: ) = 5 write(2, "File or directory does not exist"..., 33File or directory does not exist ) = 33 getuid32() = 1000 stat64("/tmp/gambas.1000/29622", {st_mode=S_IFDIR|0700, st_size=48, ...}) = 0 open("/tmp/gambas.1000/29622", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3 fstat64(3, {st_mode=S_IFDIR|0700, st_size=48, ...}) = 0 fcntl64(3, F_SETFD, FD_CLOEXEC) = 0 getdents64(3, /* 2 entries */, 4096) = 48 getdents64(3, /* 0 entries */, 4096) = 0 close(3) = 0 exit_group(1) = ? Regards Rolf From gambas at ...1... Tue May 30 17:40:49 2006 From: gambas at ...1... (Benoit Minisini) Date: Tue, 30 May 2006 17:40:49 +0200 Subject: [Gambas-user] Why 1.9.x doesn't show up In-Reply-To: <447C1E67.4060807@...221...> References: <4472C9E1.3050506@...221...> <200605301136.01282.gambas@...1...> <447C1E67.4060807@...221...> Message-ID: <200605301740.49565.gambas@...1...> On Tuesday 30 May 2006 12:28, Eilert wrote: > [...] > > >> getcwd("/raid/usr/local/bin", 4096) = 20 > > > > As I told you, please run gbx2 *inside* then gambas IDE source directory! > > Not in "/raid/usr/local/bin". > > > > Regards, > > Arrgh :-O Ok, so what does it tell you now? Looks pretty much the same > to me... > > execve("/usr/local/bin/gbx2", ["gbx2", "-p"], [/* 74 vars */]) = 0 > uname({sys="Linux", node="server02", ...}) = 0 > brk(0) = 0x8072000 > old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, > -1, 0) = 0x40017000 > open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or > directory) > open("/etc/ld.so.cache", O_RDONLY) = 3 > fstat64(3, {st_mode=S_IFREG|0644, st_size=104584, ...}) = 0 > old_mmap(NULL, 104584, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40018000 > close(3) = 0 > open("/lib/tls/libm.so.6", O_RDONLY) = 3 > read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p5\0\000"..., > 512) = 512 > fstat64(3, {st_mode=S_IFREG|0755, st_size=170563, ...}) = 0 > old_mmap(NULL, 137712, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40032000 > madvise(0x40032000, 137712, MADV_SEQUENTIAL|0x1) = 0 > old_mmap(0x40053000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, > 3, 0x20000) = 0x40053000 > close(3) = 0 > open("/lib/libdl.so.2", O_RDONLY) = 3 > read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`\33\0\000"..., > 512) = 512 > fstat64(3, {st_mode=S_IFREG|0755, st_size=13647, ...}) = 0 > old_mmap(NULL, 8628, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40054000 > madvise(0x40054000, 8628, MADV_SEQUENTIAL|0x1) = 0 > old_mmap(0x40056000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, > 3, 0x2000) = 0x40056000 > close(3) = 0 > open("/lib/tls/libc.so.6", O_RDONLY) = 3 > read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360U\1"..., > 512) = 512 > fstat64(3, {st_mode=S_IFREG|0755, st_size=1349081, ...}) = 0 > old_mmap(NULL, 1132940, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = > 0x40057000 madvise(0x40057000, 1132940, MADV_SEQUENTIAL|0x1) = 0 > old_mmap(0x40161000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, > 3, 0x10a000) = 0x40161000 > old_mmap(0x40169000, 10636, PROT_READ|PROT_WRITE, > MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40169000 > close(3) = 0 > old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, > -1, 0) = 0x4016c000 > set_thread_area({entry_number:-1 -> 6, base_addr:0x4016c660, > limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, > limit_in_pages:1, seg_not_present:0, useable:1}) = 0 > munmap(0x40018000, 104584) = 0 > getuid32() = 1000 > mkdir("/tmp/gambas.1000", 0700) = -1 EEXIST (File exists) > getpid() = 29622 > getuid32() = 1000 > mkdir("/tmp/gambas.1000/29622", 0700) = 0 > gettimeofday({1148984801, 806697}, NULL) = 0 > brk(0) = 0x8072000 > brk(0x8093000) = 0x8093000 > brk(0) = 0x8093000 > open("/etc/localtime", O_RDONLY) = 3 > fstat64(3, {st_mode=S_IFREG|0644, st_size=837, ...}) = 0 > mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, > 0) = 0x40018000 > read(3, "TZif\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10\0\0\0\10"..., > 4096) = 837 > close(3) = 0 > munmap(0x40018000, 4096) = 0 > gettimeofday({1148984801, 808417}, NULL) = 0 > getcwd("/raid/home/tester/Downloads/gambas2/gambas2-1.9.31", 4096) = 51 > access("/usr/bin/gbx2", F_OK) = 0 > readlink("/usr/bin/gbx2", "/usr/local/bin/gbx2", 512) = 19 > getuid32() = 1000 > socket(PF_UNIX, SOCK_STREAM, 0) = 3 > connect(3, {sa_family=AF_UNIX, path="/var/run/.nscd_socket"}, 110) = 0 > writev(3, [{"\2\0\0\0\1\0\0\0\5\0\0\0", 12}, {"1000\0", 5}], 2) = 17 > read(3, "\2\0\0\0\1\0\0\0\7\0\0\0\2\0\0\0\350\3\0\0d\0\0\0\23\0"..., 36) > = 36 > read(3, "tester\0x\0Testervor Nachname\0/hom"..., 51) = 51 > close(3) = 0 > getcwd("/raid/home/tester/Downloads/gambas2/gambas2-1.9.31", 4096) = 51 > chdir("/raid/home/tester/Downloads/gambas2/gambas2-1.9.31/.") = 0 > getcwd("/raid/home/tester/Downloads/gambas2/gambas2-1.9.31", 4096) = 51 > chdir("/raid/home/tester/Downloads/gambas2/gambas2-1.9.31") = 0 > open("/raid/home/tester/Downloads/gambas2/gambas2-1.9.31/.project", > O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory) > write(2, "ERROR: ", 7ERROR: ) = 7 > write(2, "#45: ", 5#45: ) = 5 > write(2, "File or directory does not exist"..., 33File or directory does > not exist > ) = 33 > getuid32() = 1000 > stat64("/tmp/gambas.1000/29622", {st_mode=S_IFDIR|0700, st_size=48, > ...}) = 0 > open("/tmp/gambas.1000/29622", > O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3 > fstat64(3, {st_mode=S_IFDIR|0700, st_size=48, ...}) = 0 > fcntl64(3, F_SETFD, FD_CLOEXEC) = 0 > getdents64(3, /* 2 entries */, 4096) = 48 > getdents64(3, /* 0 entries */, 4096) = 0 > close(3) = 0 > exit_group(1) = ? > > > Regards > Rolf > No, in the gambas *IDE* source directory! According to what I read, it is for you: /raid/home/tester/Downloads/gambas2/gambas2-1.9.31/app/src/gambas2 Regards, -- Benoit Minisini From eilert-sprachen at ...221... Tue May 30 18:11:42 2006 From: eilert-sprachen at ...221... (Eilert) Date: Tue, 30 May 2006 18:11:42 +0200 Subject: [Gambas-user] Why 1.9.x doesn't show up In-Reply-To: <200605301740.49565.gambas@...1...> References: <4472C9E1.3050506@...221...> <200605301136.01282.gambas@...1...> <447C1E67.4060807@...221...> <200605301740.49565.gambas@...1...> Message-ID: <447C6EBE.4020801@...221...> > No, in the gambas *IDE* source directory! > > According to what I read, it is for you: > /raid/home/tester/Downloads/gambas2/gambas2-1.9.31/app/src/gambas2 > > Regards, > Oh my goodness, now it's so much text, I zip and attach it. Regards Rolf -------------- next part -------------- A non-text attachment was scrubbed... Name: strace.out.gz Type: application/x-gzip Size: 29834 bytes Desc: not available URL: From gambas at ...1... Tue May 30 18:32:08 2006 From: gambas at ...1... (Benoit Minisini) Date: Tue, 30 May 2006 18:32:08 +0200 Subject: [Gambas-user] Why 1.9.x doesn't show up In-Reply-To: <447C6EBE.4020801@...221...> References: <4472C9E1.3050506@...221...> <200605301740.49565.gambas@...1...> <447C6EBE.4020801@...221...> Message-ID: <200605301832.09099.gambas@...1...> On Tuesday 30 May 2006 18:11, Eilert wrote: > > No, in the gambas *IDE* source directory! > > > > According to what I read, it is for you: > > /raid/home/tester/Downloads/gambas2/gambas2-1.9.31/app/src/gambas2 > > > > Regards, > > Oh my goodness, now it's so much text, I zip and attach it. > > Regards > > Rolf The libc is hanging on the following socket: ... socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 8 getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0 setsockopt(8, SOL_TCP, TCP_NODELAY, [1], 4) = 0 setsockopt(8, SOL_SOCKET, SO_KEEPALIVE, [1], 4) = 0 connect(8, {sa_family=AF_INET, sin_port=htons(6000), sin_addr=inet_addr("192.168.10.151")}, 16) = 0 getsockname(8, {sa_family=AF_INET, sin_port=htons(52678), sin_addr=inet_addr("192.168.10.102")}, [16]) = 0 getpeername(8, {sa_family=AF_INET, sin_port=htons(6000), sin_addr=inet_addr("192.168.10.151")}, [16]) = 0 ... select(10, [6 8 9], [], [], {0, 0}) = 0 (Timeout) ioctl(8, FIONREAD, [0]) = 0 select(10, [6 8 9], [], [], {0, 0}) = 0 (Timeout) ioctl(8, FIONREAD, [0]) = 0 select(10, [6 8 9], [], [], {0, 0}) = 0 (Timeout) ioctl(8, FIONREAD, [0]) = 0 ... It seems that this socket is the one used to communicate with the X server. This is logical, as the backtrace told that the program was blocked inside the QT event loop. Is your X server local, on another machine? Do you have this problem only with the gambas IDE, or other QT-based programs? Regards, -- Benoit Minisini From joe1962 at ...626... Tue May 30 20:06:30 2006 From: joe1962 at ...626... (Jose J. Rodriguez) Date: Tue, 30 May 2006 14:06:30 -0400 Subject: [Gambas-user] LINK syntax reversed in the Wiki? Message-ID: <6c208f950605301106l128cbac9vb230e050564125f4@...627...> Hi: The syntax and explanation for the LINK command are reversed in the Wiki docs, if I'm reading it right. This: MKDIR BaseDir &/ "usr/local/share/doc" LINK BaseDir &/ "usr/local/share/doc" TO BaseDir &/ "usr/local/doc" givesan error: "File already exists". While this: MKDIR BaseDir &/ "usr/local/doc" LINK BaseDir &/ "usr/local/share/doc" TO BaseDir &/ "usr/local/doc" creates a symlink $BaseDir/usr/local/share/doc pointing to $BaseDir/usr/local/doc. Regards, Joe1962 From stefanopalmeri at ...152... Wed May 31 01:06:51 2006 From: stefanopalmeri at ...152... (Stefano Palmeri) Date: Wed, 31 May 2006 01:06:51 +0200 Subject: [Gambas-user] special chars bug solved! Message-ID: <200605310106.51871.stefanopalmeri@...152...> Hi, Benoit. Last week I posted some messages about a 'special chars bug' in the Editor control. Finally, I've got the solution. I noticed that if in the Editor control properties I select a font different than my KDE (.qtrc?) default font or I set Editor1.Font.* in the code, then I can type and see those special chars (??????). Moreover, I saw that Gambas2 doesn't store the Editor font value in the relative *.form file, if the selected font is equal to the Application.Font.Name. So, I modified Gambas2 FProperty.class this way: PRIVATE FUNCTION GetFont(sFont AS String) AS String DIM bDefault AS Boolean bDefault = Font[sFont].Name = Application.Font.Name IF bDefault THEN [...] WEND IF NOT sFont THEN sFont = "+0" <----- patch ENDIF to make Gambas2 always store the font size value of controls. This workaround is partial because the user has to set at least once the font value in the properties. After recompiling, the bug has gone and I can see all chars in the Editor control, even the special ones. To draw conclusions: if the Editor control Font value is not specified in the relative *.form file or in the project code, I get the bug. Probably the bug is only for my system (nobody else reported it). If it doesn't hurt Gambas2, could you modify next Gambas2 so that, when the user adds an Editor control to a Form, the default value Font = Font["+0"] is automatically stored? Anyway, now I know how to work around the bug :-) Thanks for reading. Regards, Stefano Palmeri P.S. Using some kind of fonts, the cursor of the Editor control progressively moves away from typed chars. I experienced that with "Bitstream Vera Sans", "Cursor", "Luxi Sans". From gambas at ...1... Wed May 31 02:08:57 2006 From: gambas at ...1... (Benoit Minisini) Date: Wed, 31 May 2006 02:08:57 +0200 Subject: [Gambas-user] special chars bug solved! In-Reply-To: <200605310106.51871.stefanopalmeri@...152...> References: <200605310106.51871.stefanopalmeri@...152...> Message-ID: <200605310208.58223.gambas@...1...> On Wednesday 31 May 2006 01:06, Stefano Palmeri wrote: > Hi, Benoit. > > Last week I posted some messages about > a 'special chars bug' in the Editor control. > > Finally, I've got the solution. > > I noticed that if in the Editor control properties I select a font > different than my KDE (.qtrc?) default font or I set Editor1.Font.* > in the code, then I can type and see those special chars (??????). > > Moreover, I saw that Gambas2 doesn't store > the Editor font value in the relative *.form file, > if the selected font is equal to the Application.Font.Name. > > So, I modified Gambas2 FProperty.class this way: > > PRIVATE FUNCTION GetFont(sFont AS String) AS String > > DIM bDefault AS Boolean > > bDefault = Font[sFont].Name = Application.Font.Name > IF bDefault THEN > [...] > WEND > IF NOT sFont THEN sFont = "+0" <----- patch > ENDIF > > to make Gambas2 always store the font size value of controls. > > This workaround is partial because the user has to set at least > once the font value in the properties. > > After recompiling, the bug has gone and I can see all chars in the Editor > control, even the special ones. > > To draw conclusions: if the Editor control Font value is not specified > in the relative *.form file or in the project code, I get the bug. > > Probably the bug is only for my system (nobody else reported it). > > If it doesn't hurt Gambas2, could you modify next Gambas2 > so that, when the user adds an Editor control to a Form, the > default value Font = Font["+0"] is automatically stored? No, it is a bad hack. But I think I found the problem: the Editor by default sets its font to "monospace", and I don't know what happens if you do not have "monospace" on your system. There is no "default fixed font" on X Window, but I noticed that on systems using freetype, the following font aliases are defined: "monospace", "sans" and "serif". I did that, because the Editor works only with a fixed font. > > Anyway, now I know how to work around the bug :-) > > Thanks for reading. > > Regards, > > Stefano Palmeri > > P.S. Using some kind of fonts, the cursor of the Editor control > progressively moves away from typed chars. > I experienced that with "Bitstream Vera Sans", "Cursor", > "Luxi Sans". > Of course, as Editor only tolerates a fixed font! Regards, -- Benoit Minisini From stefanopalmeri at ...152... Wed May 31 02:37:23 2006 From: stefanopalmeri at ...152... (Stefano Palmeri) Date: Wed, 31 May 2006 02:37:23 +0200 Subject: [Gambas-user] special chars bug solved! In-Reply-To: <200605310208.58223.gambas@...1...> References: <200605310106.51871.stefanopalmeri@...152...> <200605310208.58223.gambas@...1...> Message-ID: <200605310237.23750.stefanopalmeri@...152...> Alle 02:08, mercoled? 31 maggio 2006, Benoit Minisini ha scritto: > > If it doesn't hurt Gambas2, could you modify next Gambas2 > > so that, when the user adds an Editor control to a Form, the > > default value Font = Font["+0"] is automatically stored? > > No, it is a bad hack. > > But I think I found the problem: the Editor by default sets its font to > "monospace", and I don't know what happens if you do not have "monospace" on > your system. > > There is no "default fixed font" on X Window, but I noticed that on systems > using freetype, the following font aliases are defined: "monospace", "sans" > and "serif". > > I did that, because the Editor works only with a fixed font. You've got it! If I set Editor1.Font = Font["monospace"] the bug comes back. If I set Editor1.Font = Font["sans"] the bug goes away. Anyway, it seems that monospace is on my system. Stefano Palmeri From stefanopalmeri at ...152... Wed May 31 04:19:41 2006 From: stefanopalmeri at ...152... (Stefano Palmeri) Date: Wed, 31 May 2006 04:19:41 +0200 Subject: [Gambas-user] special chars bug solved! In-Reply-To: <200605310237.23750.stefanopalmeri@...152...> References: <200605310106.51871.stefanopalmeri@...152...> <200605310208.58223.gambas@...1...> <200605310237.23750.stefanopalmeri@...152...> Message-ID: <200605310419.42024.stefanopalmeri@...152...> Some other clues(?): In KDE Control Center "Monospace" and "Bitstream Vera Sans Mono", when selected, show the same chars and both give me no problems with special chars. In Gambas2, if I select in the Editor control "Bitstream Vera Sans Mono" everything works fine; with Monospace not. Bye, Stefano Palmeri From eilert-sprachen at ...221... Wed May 31 08:32:35 2006 From: eilert-sprachen at ...221... (Eilert) Date: Wed, 31 May 2006 08:32:35 +0200 Subject: [Gambas-user] Why 1.9.x doesn't show up In-Reply-To: <200605301832.09099.gambas@...1...> References: <4472C9E1.3050506@...221...> <200605301740.49565.gambas@...1...> <447C6EBE.4020801@...221...> <200605301832.09099.gambas@...1...> Message-ID: <447D3883.1010304@...221...> Benoit Minisini schrieb: > On Tuesday 30 May 2006 18:11, Eilert wrote: >>> No, in the gambas *IDE* source directory! >>> >>> According to what I read, it is for you: >>> /raid/home/tester/Downloads/gambas2/gambas2-1.9.31/app/src/gambas2 >>> >>> Regards, >> Oh my goodness, now it's so much text, I zip and attach it. >> >> Regards >> >> Rolf > > The libc is hanging on the following socket: > > ... > socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 8 > getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0 > setsockopt(8, SOL_TCP, TCP_NODELAY, [1], 4) = 0 > setsockopt(8, SOL_SOCKET, SO_KEEPALIVE, [1], 4) = 0 > connect(8, {sa_family=AF_INET, sin_port=htons(6000), > sin_addr=inet_addr("192.168.10.151")}, 16) = 0 > getsockname(8, {sa_family=AF_INET, sin_port=htons(52678), > sin_addr=inet_addr("192.168.10.102")}, [16]) = 0 > getpeername(8, {sa_family=AF_INET, sin_port=htons(6000), > sin_addr=inet_addr("192.168.10.151")}, [16]) = 0 > ... > select(10, [6 8 9], [], [], {0, 0}) = 0 (Timeout) > ioctl(8, FIONREAD, [0]) = 0 > select(10, [6 8 9], [], [], {0, 0}) = 0 (Timeout) > ioctl(8, FIONREAD, [0]) = 0 > select(10, [6 8 9], [], [], {0, 0}) = 0 (Timeout) > ioctl(8, FIONREAD, [0]) = 0 > ... > > It seems that this socket is the one used to communicate with the X server. > This is logical, as the backtrace told that the program was blocked inside > the QT event loop. > > Is your X server local, on another machine? Do you have this problem only with > the gambas IDE, or other QT-based programs? > > Regards, > This problem is only with gambas 1.9.x, and it is on the machine itself as well as on the X server I'm usually sitting at (in my office). Yes, I log in via X into the server from my office, but when I go to the server directly and start gambas on the screen there, there is the same problem: I log in under one of my guest accounts, then start "gambas2", the first window appears asking for loading a new or existing or example project, I click on "Kate Browser" or something, it says "This project is write protected", OK, then the Tip of the Day appears, the maskot appears, and when I close the Tip of the Day, the maskot remains the only thing to see. On my office machine, it doesn't show the Tip of the Day anymore, maybe I switched it off (don't remember), the rest is the same. I will have to killall gbx2 to stop it. 102 is the server, 151 is my office machine running the X server. Up to gambas 1.9.24, this problem has never arisen (arosen, arised? :-) ) before. Any help if I compiled it under a guest account and issued the strace from there directly on the server? Regards, Rolf From gambas at ...1... Wed May 31 10:53:12 2006 From: gambas at ...1... (Benoit Minisini) Date: Wed, 31 May 2006 10:53:12 +0200 Subject: [Gambas-user] Why 1.9.x doesn't show up In-Reply-To: <447D3883.1010304@...221...> References: <4472C9E1.3050506@...221...> <200605301832.09099.gambas@...1...> <447D3883.1010304@...221...> Message-ID: <200605311053.12787.gambas@...1...> On Wednesday 31 May 2006 08:32, Eilert wrote: > Benoit Minisini schrieb: > > On Tuesday 30 May 2006 18:11, Eilert wrote: > >>> No, in the gambas *IDE* source directory! > >>> > >>> According to what I read, it is for you: > >>> /raid/home/tester/Downloads/gambas2/gambas2-1.9.31/app/src/gambas2 > >>> > >>> Regards, > >> > >> Oh my goodness, now it's so much text, I zip and attach it. > >> > >> Regards > >> > >> Rolf > > > > The libc is hanging on the following socket: > > > > ... > > socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 8 > > getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0 > > setsockopt(8, SOL_TCP, TCP_NODELAY, [1], 4) = 0 > > setsockopt(8, SOL_SOCKET, SO_KEEPALIVE, [1], 4) = 0 > > connect(8, {sa_family=AF_INET, sin_port=htons(6000), > > sin_addr=inet_addr("192.168.10.151")}, 16) = 0 > > getsockname(8, {sa_family=AF_INET, sin_port=htons(52678), > > sin_addr=inet_addr("192.168.10.102")}, [16]) = 0 > > getpeername(8, {sa_family=AF_INET, sin_port=htons(6000), > > sin_addr=inet_addr("192.168.10.151")}, [16]) = 0 > > ... > > select(10, [6 8 9], [], [], {0, 0}) = 0 (Timeout) > > ioctl(8, FIONREAD, [0]) = 0 > > select(10, [6 8 9], [], [], {0, 0}) = 0 (Timeout) > > ioctl(8, FIONREAD, [0]) = 0 > > select(10, [6 8 9], [], [], {0, 0}) = 0 (Timeout) > > ioctl(8, FIONREAD, [0]) = 0 > > ... > > > > It seems that this socket is the one used to communicate with the X > > server. This is logical, as the backtrace told that the program was > > blocked inside the QT event loop. > > > > Is your X server local, on another machine? Do you have this problem only > > with the gambas IDE, or other QT-based programs? > > > > Regards, > > This problem is only with gambas 1.9.x, and it is on the machine itself > as well as on the X server I'm usually sitting at (in my office). > > Yes, I log in via X into the server from my office, but when I go to the > server directly and start gambas on the screen there, there is the same > problem: I log in under one of my guest accounts, then start "gambas2", > the first window appears asking for loading a new or existing or example > project, I click on "Kate Browser" or something, it says "This project > is write protected", OK, then the Tip of the Day appears, the maskot > appears, and when I close the Tip of the Day, the maskot remains the > only thing to see. > > On my office machine, it doesn't show the Tip of the Day anymore, maybe > I switched it off (don't remember), the rest is the same. > > I will have to killall gbx2 to stop it. > > 102 is the server, 151 is my office machine running the X server. Up to > gambas 1.9.24, this problem has never arisen (arosen, arised? :-) ) before. > > Any help if I compiled it under a guest account and issued the strace > from there directly on the server? > > Regards, > > Rolf > Do you use exactly the same system since 1.9.24? Can you try again with this version, and if it works, can you send me the strace output of both version so that I can compare? Regards, -- Benoit Minisini From gambas at ...1... Wed May 31 11:01:26 2006 From: gambas at ...1... (Benoit Minisini) Date: Wed, 31 May 2006 11:01:26 +0200 Subject: [Gambas-user] LINK syntax reversed in the Wiki? In-Reply-To: <6c208f950605301106l128cbac9vb230e050564125f4@...627...> References: <6c208f950605301106l128cbac9vb230e050564125f4@...627...> Message-ID: <200605311101.26301.gambas@...1...> On Tuesday 30 May 2006 20:06, Jose J. Rodriguez wrote: > Hi: > > The syntax and explanation for the LINK command are reversed in the > Wiki docs, if I'm reading it right. > > This: > MKDIR BaseDir &/ "usr/local/share/doc" > LINK BaseDir &/ "usr/local/share/doc" TO BaseDir &/ > "usr/local/doc" givesan error: "File already exists". > > While this: > MKDIR BaseDir &/ "usr/local/doc" > LINK BaseDir &/ "usr/local/share/doc" TO BaseDir &/ > "usr/local/doc" creates a symlink $BaseDir/usr/local/share/doc pointing to > $BaseDir/usr/local/doc. > > Regards, > Joe1962 > OK, fixed. -- Benoit Minisini From stefanopalmeri at ...152... Wed May 31 11:52:15 2006 From: stefanopalmeri at ...152... (Stefano Palmeri) Date: Wed, 31 May 2006 11:52:15 +0200 Subject: [Gambas-user] special chars bug solved! In-Reply-To: <200605310208.58223.gambas@...1...> References: <200605310106.51871.stefanopalmeri@...152...> <200605310208.58223.gambas@...1...> Message-ID: <200605311152.15952.stefanopalmeri@...152...> Alle 02:08, mercoled? 31 maggio 2006, Benoit Minisini ha scritto: > But I think I found the problem: the Editor by default sets its font to > "monospace", and I don't know what happens if you do not have "monospace" on > your system. Well. I noticed that if I add a line like: IF Editor1.Font.Name = "monospace" THEN Editor1.Font.Name = "Monospace" everything works fine. So I edited "gb.qt/src/ext/gview.cpp" in Gambas2 source, replacing "monospace" with "Monospace". My default font for Editor control is now "Monospace" and the bug has definitively gone, but I don't know if it could be a good definitive solution. What could happen in all other systems after this hack? Regards, Stefano Palmeri From lordheavy at ...512... Wed May 31 17:01:28 2006 From: lordheavy at ...512... (Laurent Carlier) Date: Wed, 31 May 2006 17:01:28 +0200 Subject: [Gambas-user] Why 1.9.x doesn't show up In-Reply-To: <447D3883.1010304@...221...> References: <4472C9E1.3050506@...221...> <200605301832.09099.gambas@...1...> <447D3883.1010304@...221...> Message-ID: <200605311701.28338.lordheavy@...512...> Le Mercredi 31 Mai 2006 08:32, Eilert a ?crit?: > > This problem is only with gambas 1.9.x, and it is on the machine itself > as well as on the X server I'm usually sitting at (in my office). > > Yes, I log in via X into the server from my office, but when I go to the > server directly and start gambas on the screen there, there is the same > problem: I log in under one of my guest accounts, then start "gambas2", > the first window appears asking for loading a new or existing or example > project, I click on "Kate Browser" or something, it says "This project > is write protected", OK, then the Tip of the Day appears, the maskot > appears, and when I close the Tip of the Day, the maskot remains the > only thing to see. > > On my office machine, it doesn't show the Tip of the Day anymore, maybe > I switched it off (don't remember), the rest is the same. > > I will have to killall gbx2 to stop it. > > 102 is the server, 151 is my office machine running the X server. Up to > gambas 1.9.24, this problem has never arisen (arosen, arised? :-) ) before. > > Any help if I compiled it under a guest account and issued the strace > from there directly on the server? > > Regards, > > Rolf > I've try to run gambas2 through my network with ssh and it work fine for me. Regards, -- jabber : lordheavy at ...943... mail : lordheavymREMOVEME at ...626... From ronstk at ...239... Wed May 31 18:10:58 2006 From: ronstk at ...239... (ron) Date: Wed, 31 May 2006 18:10:58 +0200 Subject: [Gambas-user] special chars bug solved! In-Reply-To: <200605311152.15952.stefanopalmeri@...152...> References: <200605310106.51871.stefanopalmeri@...152...> <200605310208.58223.gambas@...1...> <200605311152.15952.stefanopalmeri@...152...> Message-ID: <200605311810.58805.ronstk@...239...> On Wednesday 31 May 2006 11:52, Stefano Palmeri wrote: > Alle 02:08, mercoled? 31 maggio 2006, Benoit Minisini ha scritto: > > But I think I found the problem: the Editor by default sets its font to > > "monospace", and I don't know what happens if you do not have "monospace" on > > your system. > > Well. I noticed that if I add a line like: > > IF Editor1.Font.Name = "monospace" THEN Editor1.Font.Name = "Monospace" > > everything works fine. > > So I edited "gb.qt/src/ext/gview.cpp" in Gambas2 source, replacing "monospace" > with "Monospace". My default font for Editor control is now "Monospace" and > the bug has definitively gone, but I don't know if it could be a good > definitive solution. > What could happen in all other systems after this hack? > > Regards, > > Stefano Palmeri > Maybe a symbolic link was posible. In the directory where the monospace font exists you can try /the/dir/of/the/font # ln -s Monospace.??? monospace.??? This way I could solve may time upper/lower case problems in linux without edit a mass of files working in the past on different OS. Ron