Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2013-04

[FR] LCLWidgetType not easy

21 messages · 8 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Reinier Olislagers
to Zaher Dirkey
Zaher Dirkey wrote
Would you please make LCLWidgetType more easy to define it in Project options instead of define it in IDE macros And more, also passing conditional values like "DEBUG" in a text box.

Please post feature requests in the bugtracker so they don't get forgotten...

Reply by email

Zaher Dirkey
to Reinier Olislagers

On Sun, Apr 7, 2013 at 5:03 AM, Reinier Olislagers <

Show quoted text 5 lines
wrote: Please post feature requests in the bugtracker so they don't get forgotten...

?Done?

http://bugs.freepascal.org/view.php?id=24244

I am using last revision of Lazarus, FPC 2.6 on Windows XP SP3 Best Regards Zaher Dirkey -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130407/ede9bf99/attachment.html>

Reply by email

Michael Schnell
to Zaher Dirkey: Would you please make LCLWidgetType more easy to define it in Project options instead of…
Zaher Dirkey wrote
Would you please make LCLWidgetType more easy to define it in Project options instead of define it in IDE macros

I played with this a lit and did not find it "uneasy" at all (once you understand how it works). (Regarding you usually need do do this not very often during your workflow.)

-Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130408/ad513976/attachment.html>

Reply by email

Zaher Dirkey
to Michael Schnell: I played with this a lit and did not find it "uneasy" at all (once you understand how it…
Michael Schnell wrote
I played with this a lit and did not find it "uneasy" at all (once you understand how it works).

?When
?youneed to compile for Wince you need to define 4 parameters in compile options, OS, cpu, processor(we can leave it) ? then the widgetset, what you expected to see this field with its brothers fields not in "IDE macro Values"?

?I have bad memory, i always forget where is the last one, not easy believe me.
?

Best Regards
Zaher Dirkey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130408/1376ed53/attachment.html>

Reply by email

Mattias Gaertner
to Zaher Dirkey
Show quoted text 11 lines
On Mon, Apr 8, 2013 at 10:33 AM, Michael Schnell wrote: > I played with this a lit and did not find it "uneasy" at all (once you > understand how it works). ?When ?youneed to compile for Wince you need to define 4 parameters in compile options, OS, cpu, processor(we can leave it) ? then the widgetset, what you expected to see this field with its brothers fields not in "IDE macro Values"?

When you set OS wince then the default widgetset is wince. So you only need to set OS and CPU.

?I have bad memory, i always forget where is the last one, not easy believe me.

Mattias

Reply by email

Zaher Dirkey
to Mattias Gaertner

?I retested it with new project i get this error

W:\programs\lazarus\components\lazutils\ttinterp.pas(736,23) Hint: Mixing signed expressions and longwords gives a 64bit result "Compiling package LazUtils 1.0" completed
"Compiling package LCLBase 1.0.1" completed
win32\win32wsdialogs.pp(38,12) Fatal: Can't find unit shlobj used by Win32WSDialogs
?
So it seem a bug?

Mattias Gaertner wrote
When you set OS wince then the default widgetset is wince. So you only need to set OS and CPU.
I am using last revision of Lazarus, FPC 2.6 on Windows XP SP3 Best Regards Zaher Dirkey -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130408/22cea810/attachment.html>

Reply by email

Mattias Gaertner
to Zaher Dirkey
Show quoted text 10 lines
?I retested it with new project i get this error W:\programs\lazarus\components\lazutils\ttinterp.pas(736,23) Hint: Mixing signed expressions and longwords gives a 64bit result "Compiling package LazUtils 1.0" completed "Compiling package LCLBase 1.0.1" completed win32\win32wsdialogs.pp(38,12) Fatal: Can't find unit shlobj used by Win32WSDialogs ? So it seem a bug?

Either that or you have some misconfiguration.

What do you see in "Project / Project Options / Compiler Options / Inherited"?

What do you see in "View / IDE Internals / About FPC"? You don't need to post all paths.

Mattias

Reply by email

Zaher Dirkey
to Mattias Gaertner
Mattias Gaertner wrote 8 lines
Either that or you have some misconfiguration. What do you see in "Project / Project Options / Compiler Options / Inherited"? What do you see in "View / IDE Internals / About FPC"? You don't need to post all paths.

?All

W:\programs\lazarus\lcl\units\arm-wince\win32
W:\programs\lazarus\lcl\units\arm-wince
W:\programs\lazarus\components\lazutils\lib\arm-wince W:\programs\lazarus\packager\units\arm-wince
?
?LCL 1.0.1?

W:\programs\lazarus\lcl\units\arm-wince\win32

?But why i have it, it is very new project??

--------------------
Lazarus version: 1.1
Lazarus svn revision: 40683M
Lazarus build date: 2013/04/03
Lazarus was compiled for i386-win32
Lazarus was compiled with fpc 2.6.2

Global IDE options:
LazarusDirectory=w:\programs\lazarus\
Resolved LazarusDirectory=W:\programs\lazarus\
CompilerFilename=P:\programs\fpc\2.6\bin\i386-Win32\fpc.exe Resolved CompilerFilename=P:\programs\fpc\2.6\bin\i386-Win32\fpc.exe CompilerMessagesFilename=
Resolved CompilerMessagesFilename=

Project:
lpi=C:\temp\project1.lpi
Directory=C:\temp\
TargetOS=wince
TargetCPU=arm
CompilerFilename=$(CompPath)

Active target:
TargetOS=wince
TargetCPU=arm

FPC executable:
Compiler=P:\programs\fpc\2.6\bin\i386-Win32\fpc.exe Options=
CompilerDate=12/02/2013 18:55:52
RealCompiler=P:\programs\fpc\2.6\bin\i386-Win32\ppcrossarm.exe RealCompilerDate=12/02/2013 19:04:52
RealTargetOS=wince
RealTargetCPU=arm
RealCompilerInPath=P:\programs\fpc\2.6\bin\i386-Win32\ppcrossarm.exe Version=2.6.2
CfgFilename=P:\programs\fpc\2.6\bin\i386-Win32\fpc.cfg --------------------------

I am using last revision of Lazarus, FPC 2.6 on Windows XP SP3

Best Regards
Zaher Dirkey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130408/37269e41/attachment-0001.html>

Reply by email

patspiper
to Mattias Gaertner: On Mon, 8 Apr 2013 19:47:06 +0300 Either that or you have some misconfiguration. What do…
Mattias Gaertner wrote 14 lines
On Mon, 8 Apr 2013 19:47:06 +0300 Zaher Dirkey wrote: > ?I retested it with new project i get this error > > W:\programs\lazarus\components\lazutils\ttinterp.pas(736,23) Hint: Mixing > signed expressions and longwords gives a 64bit result > "Compiling package LazUtils 1.0" completed > "Compiling package LCLBase 1.0.1" completed > win32\win32wsdialogs.pp(38,12) Fatal: Can't find unit shlobj used by > Win32WSDialogs > ? > So it seem a bug? Either that or you have some misconfiguration.

I can reproduce it (Linux -> WinCE cross-compilation) if I don't set explicitly the widgetset to WinCE:
gtk2/gtk2int.pas(56,3) Fatal: Can't find unit gdk2pixbuf used by Gtk2Int

What do you see in "Project / Project Options / Compiler Options / Inherited"?

All (notice the gtk2):
/home/me/Programs/lazarus/lazarus-svn/lcl/units/arm-wince/gtk2 <- LCL 1.0.1 package
/home/me/Programs/lazarus/lazarus-svn/lcl/units/arm-wince <- LCLBase 1.0.1 package
/home/me/Programs/lazarus/lazarus-svn/components/lazutils/lib/arm-wince /home/me/Programs/lazarus/lazarus-svn/packager/units/arm-wince

What do you see in "View / IDE Internals / About FPC"? You don't need to post all paths.

Lazarus version: 1.1
Lazarus svn revision: 40749
Lazarus build date: 2013/04/08
Lazarus was compiled for i386-linux
Lazarus was compiled with fpc 2.6.3

Global IDE options:
LazarusDirectory=../lazarus-svn/
Resolved LazarusDirectory=/home/me/Programs/lazarus/lazarus-svn/ CompilerFilename=fpc
Resolved CompilerFilename=/home/me/Programs/fpc/2.6.3/bin/fpc CompilerMessagesFilename=
Resolved CompilerMessagesFilename=

Project:
lpi=
Directory=
TargetOS=wince
TargetCPU=arm
CompilerFilename=$(CompPath)

Active target:
TargetOS=wince
TargetCPU=arm

FPC executable:
Compiler=/home/me/Programs/fpc/2.6.3/bin/fpc
Options=
CompilerDate=08/04/13 8:47:32 PM
RealCompiler=/home/me/Programs/fpc/2.6.3/lib/fpc/2.6.3/ppcrossarm RealCompilerDate=08/04/13 8:49:51 PM
RealTargetOS=wince
RealTargetCPU=arm
RealCompilerInPath=/home/me/Programs/fpc/2.6.3/lib/fpc/2.6.3/ppcrossarm Version=2.6.3
CfgFilename=/home/me/.fpc.cfg

Stephano

Reply by email

Juha Manninen
to Michael Schnell
Michael Schnell wrote
The CVS Version supports definable project-specific or global "build mode" setting, that seem to do what you want. (Right now this feature is marked as "under construction".

Yes, this "under construction" is by me. I faced some technical problems and it takes more time than expected.
However, only the GUI is under construction. Build modes already work, just their user interface is not very intuitive.
Now the build mode tab is at the same level with other settings tabs. It should be visually "above" the others to indicate that it applies to all of them.

Yet, I will only change the user interface, not the functionality.

Juha

Reply by email

Michael Schnell
to Juha Manninen
Juha Manninen wrote 11 lines
Yes, this "under construction" is by me. I faced some technical problems and it takes more time than expected. However, only the GUI is under construction. Build modes already work, just their user interface is not very intuitive. Now the build mode tab is at the same level with other settings tabs. It should be visually "above" the others to indicate that it applies to all of them. Yet, I will only change the user interface, not the functionality.

Thanks for this !

So I already can happily use it ? (I did not dare to try it, yet.)

-Michael

Reply by email

patspiper
to Juha Manninen: Yes. The feature is made by Mattias and has worked well already for some time. Juha
Juha Manninen wrote
On 4/9/13, Michael Schnell wrote: > So I already can happily use it ? (I did not dare to try it, yet.) Yes. The feature is made by Mattias and has worked well already for some time.

Is the under construction interface functional? Here it only provides a dropdown list which does nothing.

Btw, build modes can be a little bit difficult to use. In a use case close to the OP's, compilation may be required for Win32/i386, Linux/i386, WinCE/arm, and Linux/arm (4 build modes). If debug and release modes are needed on top, the number of build modes goes up to 8. These can be defined once, and set as project defaults.

However, the difficulty is in switching build modes. Using the change build mode dropdown toolbar button (to the left of the run button) is acceptable for a few build modes, but becomes difficult to use with a large number of build modes. A solution could be to let the user define a list of 'generic' build modes list (names only) and have a matrix to define which combination (generic mode + debug/release) yields which actual build mode (see attached mockup). The build mode selection dropdown button would be extended to include 2 dropdowns, one for the generic mode and the other for debug/release. A debug/release macro would be useful for the output path.

Another nice feature to have is the ability to use LCL, FCL, and or other installed packages debug/release ppu's (to debug Lazarus and/or FPC code). We can have 2 folders (release and debug) for each Lazarus package, while a macro (like FPCVER) decides which one gets used. I am not sure where the GUI setting should be.

Stephano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Buildmodes.jpg
Type: image/jpeg
Size: 19113 bytes
Desc: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130409/21cabb5f/attachment-0001.jpg>

Reply by email

waldo kitty
to Michael Schnell: The CVS Version supports definable project-specific or global "build mode" setting, that…
Michael Schnell wrote
The CVS Version supports definable project-specific or global "build mode" setting, that seem to do what you want. (Right now this feature is marked as "under construction".

yep! i had this working on my setup at one time but then when it went "under construction" it doesn't look the same any more and i haven't figured out how it should work now as compared to the (slightly convoluted) way it worked previously :?

Reply by email

Zaher Dirkey
to Mattias Gaertner: On Mon, 08 Apr 2013 21:04:59 +0300 Yes. Fixed. Please test. Mattias

Tested and works for me too,

But still need to be easy to set it in same options window, the idea sometime i like to set GTK2 or QT in Windows, and maybe in Linux.

Thanks

Mattias Gaertner wrote 18 lines
On Mon, 08 Apr 2013 21:04:59 +0300 patspiper wrote: >[...] > >> So it seem a bug? Yes. Fixed. Please test. Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
I am using last revision of Lazarus, FPC 2.6 on Windows XP SP3 Best Regards Zaher Dirkey -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130410/34288c47/attachment.html>

Reply by email