lazarus+GTK2的问题

JPEXE 2008-01-16 01:48:24
首先想问,Lazarus+GTK2是否好用,通过自己一段时间的了解,总感觉Lazarus似乎还不够成熟,至少我在Win32下用着它那个CodeEditor就很是不爽。公司需要跨平台开发应用软件,想要Write once, run everywhere,主要针对Win和Mac。因为QT收费,所以就打算使用GTK2,为了快速开发界面,所以又选择Lazarus,C写界面太麻烦,公司之前一直用Delphi做界面的。所以想问问有这方面经验的朋友,Lazarus+GTK2这种模式是否好用。

在Win32下,我刚写了个极简单的程序(窗口上放一个按钮,按下时弹出一个对话框),就遇到了两个烦人问题,也请大家能帮忙解答一下:
1.按钮Caption和弹出对话框上的字符是乱码,全是一个个空心方块,英文/中文字符都如果此。窗口的标题却能正常显示。
2.弹出的对话框超极大!刚好占满全屏。
该怎么办?

Lazarus方面的资料好难找,似乎目前在使用研究它的人还不多吧。
若有这方面经验的大侠们,请不吝帮小弟解惑,谢谢了先!
...全文
129 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
lextm 2008-01-22
  • 打赏
  • 举报
回复
Lazarus还没有强大到可以支持商业的跨平台开发。一旦你遇到核心的问题,就很难找到解决方案了。

建议Windows平台用Delphi,而改用其他技术做Linux的版本,这方面Skype是个很好的例子。或者改用Java、或者C++。没有更好的方式。

现在Delphi没有很好的解决方法,但是C++Builder下面通过使用wxVCL却可以做到跨平台开发。
gosyzj 2008-01-21
  • 打赏
  • 举报
回复
用WXWIDGET更好~
JPEXE 2008-01-16
  • 打赏
  • 举报
回复
顶上去,大家帮忙关注一下吧。
Current version ---------------------------- + [Lazarus] Added LazChart RTTI modules - Fixed bug when reports threads may stall inside IIS DLL (New synch threads mechanism for DLL). - [Lazarus] Fixed bug when TfrxBitBtnControl doesn't show glyph when run desigher from Lazarus IDE - [Lazarus] Fixed Toolbar in the report designer for scale larger than 100% - Syntax memo Drag and Drop DataTree insert text to mouse position - Syntax memo code completion disabled inside string 'Text' block - Fixed saving sizes; - Fixed scope of script variables in code completion; - Fixed var parameter in declaration for code completion + Added arrows left - right keys for filtration during Code completion * Code completion now replaces whole ident , not just insert new in cursor position * Code completion window now resizable - Fixed code completion bug for variables declared in group like : 'm1, m2, m3: TfrxView;' + Added helper for Fill casting AsBrushFill/AsGradientFill/AsGlassFill (TfrxCustomFill) + Added TfrxPostProcessor.ResetDuplicates - can reset duplicated from script + Added DrillState property to rtti (check how to use in 151.fr3 report) - [Lazarus] Fixed Map object de-serialization of points - [Lazarus] Fixed bug with preview PageCache wich causes wrong behavior in interactive reports * Interactive charts fix with zoom in preview * Added New "What's new" report * Improved few demo reports in MainDemo - Fixed RestoreDefaults behavior - Fixed bug when interactive events may fire before chart was filled - Fixed bug with TfrxMapGeodataLayer.MapDataSet in Map Editor dialog * [Lazarus] Optmized MaxiCode output - Fixed bug with Mercator property * [Lazarus] Fixed modal dialogs in preview under linux GTK - Fixed Detail report bug when rebuilds report using TfrxCustomPreview.Report (Collapse/expand drills). - Fixed bug with KeepHeader and ReprintOnNewPage in multi-column reports * [Lazarus] Optmized work with fonts inder Linux GTK + Added TfrxDesigner.OnAfterUpdateReport event - Fixed font charset for RTF export
Current version ---------------------------- + Fixed preview tabs in custom preview control + Added Processing for TfrxSysMemoView [6.6.1 - 6.6.12] + [Lazarus] Added LazChart RTTI modules - Fixed bug when reports threads may stall inside IIS DLL (New synch threads mechanism for DLL). - [Lazarus] Fixed bug when TfrxBitBtnControl doesn't show glyph when run desigher from Lazarus IDE - [Lazarus] Fixed Toolbar in the report designer for scale larger than 100% - Syntax memo Drag and Drop DataTree insert text to mouse position - Syntax memo code completion disabled inside string 'Text' block - Fixed saving sizes; - Fixed scope of script variables in code completion; - Fixed var parameter in declaration for code completion + Added arrows left - right keys for filtration during Code completion * Code completion now replaces whole ident , not just insert new in cursor position * Code completion window now resizable - Fixed code completion bug for variables declared in group like : 'm1, m2, m3: TfrxView;' + Added helper for Fill casting AsBrushFill/AsGradientFill/AsGlassFill (TfrxCustomFill) + Added TfrxPostProcessor.ResetDuplicates - can reset duplicated from script + Added DrillState property to rtti (check how to use in 151.fr3 report) - [Lazarus] Fixed Map object de-serialization of points - [Lazarus] Fixed bug with preview PageCache wich causes wrong behavior in interactive reports * Interactive charts fix with zoom in preview * Added New "What's new" report * Improved few demo reports in MainDemo - Fixed RestoreDefaults behavior - Fixed bug when interactive events may fire before chart was filled - Fixed bug with TfrxMapGeodataLayer.MapDataSet in Map Editor dialog * [Lazarus] Optmized MaxiCode output - Fixed bug with Mercator property * [Lazarus] Fixed modal dialogs in preview under linux GTK - Fixed Detail report bug when rebuilds report using TfrxCustomPreview.Report (Collapse/expand drills). - Fixed bug with KeepHeader and ReprintOnNewPage in multi-column reports * [Lazarus] Optmized work with fonts inder Linux GTK + Added TfrxDesigner.OnAfterUpdateReport event - Fixed font charset for RTF export
Current version ---------------------------- + [Lazarus] Added LazChart RTTI modules - Fixed bug when reports threads may stall inside IIS DLL (New synch threads mechanism for DLL). - [Lazarus] Fixed bug when TfrxBitBtnControl doesn't show glyph when run desigher from Lazarus IDE - [Lazarus] Fixed Toolbar in the report designer for scale larger than 100% - Syntax memo Drag and Drop DataTree insert text to mouse position - Syntax memo code completion disabled inside string 'Text' block - Fixed saving sizes; - Fixed scope of script variables in code completion; - Fixed var parameter in declaration for code completion + Added arrows left - right keys for filtration during Code completion * Code completion now replaces whole ident , not just insert new in cursor position * Code completion window now resizable - Fixed code completion bug for variables declared in group like : 'm1, m2, m3: TfrxView;' + Added helper for Fill casting AsBrushFill/AsGradientFill/AsGlassFill (TfrxCustomFill) + Added TfrxPostProcessor.ResetDuplicates - can reset duplicated from script + Added DrillState property to rtti (check how to use in 151.fr3 report) - [Lazarus] Fixed Map object de-serialization of points - [Lazarus] Fixed bug with preview PageCache wich causes wrong behavior in interactive reports * Interactive charts fix with zoom in preview * Added New "What's new" report * Improved few demo reports in MainDemo - Fixed RestoreDefaults behavior - Fixed bug when interactive events may fire before chart was filled - Fixed bug with TfrxMapGeodataLayer.MapDataSet in Map Editor dialog * [Lazarus] Optmized MaxiCode output - Fixed bug with Mercator property * [Lazarus] Fixed modal dialogs in preview under linux GTK - Fixed Detail report bug when rebuilds report using TfrxCustomPreview.Report (Collapse/expand drills). - Fixed bug with KeepHeader and ReprintOnNewPage in multi-column reports * [Lazarus] Optmized work with fonts inder Linux GTK + Added TfrxDesigner.OnAfterUpdateReport event - Fixed font charset for RTF export

16,749

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 语言基础/算法/系统设计
社区管理员
  • 语言基础/算法/系统设计社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧