[MSEide-MSEgui-talk] TIcon.Colorglyph - why doesn't work?
Hi Martin, I have created spinner from this site: http://preloaders.net/en/search/spinner . I need to change color dynamically at runtime by changing TIcon.Colorglyph but it doesn't work. I see that it work with your embedded stock glyphs (e.g. grids sort indicator). But in my case it is always black. I'm not sure where is the trick, is it in bitmap format or imagelist option? Here is what I do: 1. Pick any spinner from that site. In website creator I'm checking: - ImageType: APNG - Transparent Background: Yes - Keep original colors: Yes - Invert colors: No - Rest options default 2. Click "generate preloader" 3. In "additional download options" check "download as sprites" 4. Click download 5. In MSE ide prepare imagelist size to downloaded preloader size. Add downloaded spinner, it should be nicely split to 8 frames Use attached demo Sorry that I'm bother you recently but I'm close to finish porting my LCL app and I'm very happy that it is going so well :) . This issue is cosmetic and it is realy fine if spinner will be always black but I'm curious guy :). Tried spinner generated from font awesome with rotate option which you added but it doesn't look good - rotate animation is fine but pixels have offset for each angle (frame) so animation is "shaking" Regards mse_spinner.7z Description: application/7z-compressed -- Find and fix application performance issues faster with Applications Manager Applications Manager provides deep performance insights into multiple tiers of your business applications. It resolves application problems quickly and reduces your MTTR. Get your free trial! https://ad.doubleclick.net/ddm/clk/302982198;130105516;z___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] TDrawgrid sort
2016-04-27 16:22 GMT+02:00 Martin Schreiber: > git master d3c83b58ac422ee5b8e599c82a3f5ce50efe5335 has > dco_nodisabledsortindicator and dco_wholecellsortclick. Great! > Please use T*Grid.DataCols[n].OnBeforeDrawcell, OnDrawCell or OnAfterDrawCell: > " > procedure tmainfo.drawcell(const sender: tcol; const canvas: tcanvas; >var cellinfo: cellinfoty); > begin > if cellinfo.calcautocellsize then begin > cellinfo.autocellsize.cx:= TheCellWidth; > end; > end; > " > "const" has been changed to "var" for OnDrawCell. Should I use all events or pickup one? This code seems to work but size is not correct (looks like 1/3 of expected width): procedure TGenericListWidget.DrawTitle(const sender: tcol; const canvas: tcanvas; var cellinfo: cellinfoty); var r: PMusicTag; begin with cellinfo,cell do begin r := FPlaylist[row]; if calcautocellsize then autocellsize.cx:= textrect(canvas, r^.Title).cx; drawtext(canvas,r^.Title,innerrect,[tf_ycentered,tf_ellipseright]); end; end; -- Find and fix application performance issues faster with Applications Manager Applications Manager provides deep performance insights into multiple tiers of your business applications. It resolves application problems quickly and reduces your MTTR. Get your free trial! https://ad.doubleclick.net/ddm/clk/302982198;130105516;z ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] TDrawgrid sort
On Wednesday 27 April 2016 15:28:58 Krzysztof wrote: > 2016-04-27 15:17 GMT+02:00 Martin Schreiber: > > Probably, but if is a usefull extension I'll add that option. What do you > > think? > > If it's not a problem then why not :) > git master d3c83b58ac422ee5b8e599c82a3f5ce50efe5335 has dco_nodisabledsortindicator and dco_wholecellsortclick. > BTW: I'm drawing text by my self so double click on column resize > point is not handling text width and column is collapsed. Is there any > event for that? Some kind OnGetColumnSize? > Please use T*Grid.DataCols[n].OnBeforeDrawcell, OnDrawCell or OnAfterDrawCell: " procedure tmainfo.drawcell(const sender: tcol; const canvas: tcanvas; var cellinfo: cellinfoty); begin if cellinfo.calcautocellsize then begin cellinfo.autocellsize.cx:= TheCellWidth; end; end; " "const" has been changed to "var" for OnDrawCell. Martin -- Find and fix application performance issues faster with Applications Manager Applications Manager provides deep performance insights into multiple tiers of your business applications. It resolves application problems quickly and reduces your MTTR. Get your free trial! https://ad.doubleclick.net/ddm/clk/302982198;130105516;z ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] TDrawgrid sort
2016-04-27 15:17 GMT+02:00 Martin Schreiber: > Probably, but if is a usefull extension I'll add that option. What do you > think? If it's not a problem then why not :) BTW: I'm drawing text by my self so double click on column resize point is not handling text width and column is collapsed. Is there any event for that? Some kind OnGetColumnSize? -- Find and fix application performance issues faster with Applications Manager Applications Manager provides deep performance insights into multiple tiers of your business applications. It resolves application problems quickly and reduces your MTTR. Get your free trial! https://ad.doubleclick.net/ddm/clk/302982198;130105516;z ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] TDrawgrid sort
On Wednesday 27 April 2016 15:02:03 Patrick Goupell wrote: > On 04/27/2016 08:56 AM, Krzysztof wrote: > >> Not supported. Is another flag necessary? ;-) > > > > That would be handy :) > > Couldn't you use a column onclick event to call the header sort event? > Probably, but if is a usefull extension I'll add that option. What do you think? Martin -- Find and fix application performance issues faster with Applications Manager Applications Manager provides deep performance insights into multiple tiers of your business applications. It resolves application problems quickly and reduces your MTTR. Get your free trial! https://ad.doubleclick.net/ddm/clk/302982198;130105516;z ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] TDrawgrid sort
On 04/27/2016 08:56 AM, Krzysztof wrote: > >> Not supported. Is another flag necessary? ;-) > That would be handy :) > > Couldn't you use a column onclick event to call the header sort event? Patrick -- Find and fix application performance issues faster with Applications Manager Applications Manager provides deep performance insights into multiple tiers of your business applications. It resolves application problems quickly and reduces your MTTR. Get your free trial! https://ad.doubleclick.net/ddm/clk/302982198;130105516;z ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] TDrawgrid sort
2016-04-27 14:42 GMT+02:00 Martin Schreiber: >> 1. How tu disable showing sort indicator on not sorted columns? >> Currently if column is not sorted then icon is grayed / disabled. I >> would like to show indicator only on sorted column > > Remove the dco_colsort flag but then the sorting can not switched on by > clicking on that header. Why do you dislike indication of the possibility to > sort? Well, I'm just porting "report like" lists from my LCL app and comparing behaviors. In LCL (Qt,Gtk,Win), lists are sorted by clicking on column header and never saw indicators on not sorted columns. This is something you have to get used, no problem. User just always can sort on all columns in my app so showing possibilities is overloaded and showing indicator only on sorted column is little more "eye catching" ;) > Not supported. Is another flag necessary? ;-) That would be handy :) -- Find and fix application performance issues faster with Applications Manager Applications Manager provides deep performance insights into multiple tiers of your business applications. It resolves application problems quickly and reduces your MTTR. Get your free trial! https://ad.doubleclick.net/ddm/clk/302982198;130105516;z ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] TDrawgrid sort
2016-04-27 14:30 GMT+02:00 Martin Schreiber: > Works for me. What is "compdesigner.pas"? I don't find it in MSEide+MSEgui > source tree. og_noresetselect has been replaced by optionsgrid1 > og_noresetselect1 several versions before. Ahh, sorry. Forgot that long time ago I tested this package: mseuniverse/add-on/lib/addon/compdesigner . I'm not using it at all, so remove it from regcomponents solved problem -- Find and fix application performance issues faster with Applications Manager Applications Manager provides deep performance insights into multiple tiers of your business applications. It resolves application problems quickly and reduces your MTTR. Get your free trial! https://ad.doubleclick.net/ddm/clk/302982198;130105516;z ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] TDrawgrid sort
On Wednesday 27 April 2016 13:54:15 Krzysztof wrote: > 2016-04-26 8:21 GMT+02:00 Martin Schreiber: > > In normal datagrids sorting is done by the mergesort mechanism of the > > grid and the comparison functions of the TDatalist descendants in the > > datacolumns or by comparison in T*Grid.OnSort event. Because you don't > > use TDatalist you can't use that, please try T*Grid.OnSortChanged > > instead. > > 1. How tu disable showing sort indicator on not sorted columns? > Currently if column is not sorted then icon is grayed / disabled. I > would like to show indicator only on sorted column Remove the dco_colsort flag but then the sorting can not switched on by clicking on that header. Why do you dislike indication of the possibility to sort? > 2. How to force sort on column click, not only on indicator icon? > Not supported. Is another flag necessary? ;-) Martin -- Find and fix application performance issues faster with Applications Manager Applications Manager provides deep performance insights into multiple tiers of your business applications. It resolves application problems quickly and reduces your MTTR. Get your free trial! https://ad.doubleclick.net/ddm/clk/302982198;130105516;z ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] TDrawgrid sort
On Wednesday 27 April 2016 13:33:10 Krzysztof wrote: > Can't rebuild mymseide latest git 055154f363ab422e5ce88af018a2a68bba4da8e6: > compdesigner.pas(3469,100) Error: Identifier not found "og_noresetselect" > Works for me. What is "compdesigner.pas"? I don't find it in MSEide+MSEgui source tree. og_noresetselect has been replaced by optionsgrid1 og_noresetselect1 several versions before. Martin -- Find and fix application performance issues faster with Applications Manager Applications Manager provides deep performance insights into multiple tiers of your business applications. It resolves application problems quickly and reduces your MTTR. Get your free trial! https://ad.doubleclick.net/ddm/clk/302982198;130105516;z ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] TDrawgrid sort
2016-04-26 8:21 GMT+02:00 Martin Schreiber: > In normal datagrids sorting is done by the mergesort mechanism of the grid and > the comparison functions of the TDatalist descendants in the datacolumns or > by comparison in T*Grid.OnSort event. Because you don't use TDatalist you > can't use that, please try T*Grid.OnSortChanged instead. 1. How tu disable showing sort indicator on not sorted columns? Currently if column is not sorted then icon is grayed / disabled. I would like to show indicator only on sorted column 2. How to force sort on column click, not only on indicator icon? -- Find and fix application performance issues faster with Applications Manager Applications Manager provides deep performance insights into multiple tiers of your business applications. It resolves application problems quickly and reduces your MTTR. Get your free trial! https://ad.doubleclick.net/ddm/clk/302982198;130105516;z ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] TDrawgrid sort
Can't rebuild mymseide latest git 055154f363ab422e5ce88af018a2a68bba4da8e6: compdesigner.pas(3469,100) Error: Identifier not found "og_noresetselect" -- Find and fix application performance issues faster with Applications Manager Applications Manager provides deep performance insights into multiple tiers of your business applications. It resolves application problems quickly and reduces your MTTR. Get your free trial! https://ad.doubleclick.net/ddm/clk/302982198;130105516;z ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] TDrawgrid sort
On Tuesday 26 April 2016 08:21:26 Martin Schreiber wrote: > On Monday 25 April 2016 20:31:46 Krzysztof wrote: > > Hi Martin, > > > > I have own data in TList, I already have sort functions for items but > > how to connect it to TDrawgrid? Grid should emit some event when > > clicked on header column so I could sort list > > In normal datagrids sorting is done by the mergesort mechanism of the grid > and the comparison functions of the TDatalist descendants in the > datacolumns or by comparison in T*Grid.OnSort event. Because you don't use > TDatalist you can't use that, please try T*Grid.OnSortChanged instead. > Please additionally activate TCustomGrid.OptionsGrid og_sorted and og_customsort (git master 055154f363ab422e5ce88af018a2a68bba4da8e6). Martin -- Find and fix application performance issues faster with Applications Manager Applications Manager provides deep performance insights into multiple tiers of your business applications. It resolves application problems quickly and reduces your MTTR. Get your free trial! https://ad.doubleclick.net/ddm/clk/302982198;130105516;z ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] SQLDB - can't find bufdataset_parser
On Sunday 24 April 2016 09:18:17 Martin Schreiber wrote: > On Friday 22 April 2016 17:47:59 Martin Schreiber wrote: > > On Friday 22 April 2016 17:14:50 Krzysztof wrote: > > > I'm confused too. I'm not familiar with compiling from command line. > > > Always used IDE build option. But finally got it compile with little > > > trick. These are my MSEide project directories: > > > ${MSELIBDIR}*/ > > > ${MSELIBDIR}kernel/$TARGETOSDIR/ > > > ${MSEDIR}lib/addon/*/ > > > /usr/share/fpcsrc/2.6.4/packages/fcl-db/src/sqldb/sqlite > > > /usr/share/fpcsrc/2.6.4/packages/sqlite/src > > > > > > Exactly in that orded. > > > > That probably means that FPC searches the the first unitpath first which > > possibly is a bug. > > http://thread.gmane.org/gmane.comp.compilers.free-pascal.general/41565 > Because FPC does not search as documented I reversed the order for the -F* parameters. Please activate 'Project'-'Options'-'Make'-'Directories'-'Reverse directory order' for old behaviour (git master 055154f363ab422e5ce88af018a2a68bba4da8e6). Martin -- Find and fix application performance issues faster with Applications Manager Applications Manager provides deep performance insights into multiple tiers of your business applications. It resolves application problems quickly and reduces your MTTR. Get your free trial! https://ad.doubleclick.net/ddm/clk/302982198;130105516;z ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk