[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: New documentation of gb.pcre
[Thread Prev] | [Thread Next]
- Subject: Re: New documentation of gb.pcre
- From: Bruce Steers <bsteers4@xxxxxxxxx>
- Date: Sun, 3 May 2026 22:26:45 +0100
- To: user@xxxxxxxxxxxxxxxxxxxxxx
On Sun, 3 May 2026 at 21:02, Olivier Cruilles <olivier.cruilles@xxxxxxxx> wrote: > Yes I added recently > > https://gambaswiki.org/edit/doc/gb-args > > > https://gambaswiki.org/edit/doc/gb-highlight > > > https://gambaswiki.org/edit/doc/gb-pcre > > > And for sure others will come > > Olivier > > Le 3 mai 2026 à 15:39, gbWilly <gbWilly@xxxxxxxxxxxxxx> a écrit : > > > On Sunday, May 3rd, 2026 at 17:21, Olivier Cruilles < > olivier.cruilles@xxxxxxxx> wrote: > > Hello, > > I have add a new documentation in the Gambas wiki about the usage of > gb.pcre component. > > https://gambaswiki.org/edit/doc/gb-pcre > > If you can take a quick look just to check if no error/mistake is into. > > Thank you > > -- > Olivier > > > Hi Olivier, > > Nice work you are doing. > You did add the gb.highlight (https://gambaswiki.org/edit/doc/gb-highlight) > recently didn't you? > > You write that you need a timer to make things work. Have you tried the > Form Show event as when it comes to the form that need to be drawn. Show > event often works where Open fails. All a matter of timing as you explain > properly. > > gbWilly > > I Agree with Willy there. I do a lot of initialisation stuff in Form_Show rather than Form_Open as the GUI creation is a little more progressed and can help when things do not seem to initialise properly in Form_Open() But you must be careful with Form_Show() as it does not only fire when the window first shows like Form_Open(). For example if you minimise the window then restore it Form_Show() will fire again (it actually fires twice again when i restore my windows) If I need to use Form_Show for better timing i make a bInitialised variable to ensure the code is not re-run multiple times. Ie.. Private bInitialised As Boolean Public Sub Form_Show() If bInitialised Then Return bInitialised = True ' Do initialisation code only once. End Did you try simply using Wait in Form_Open() to let the event lop cycle? Ps. in the highlight loading example code you have used "End If" (as 2 words) not Endif a couple of times. Thanks for your efforts :) BruceS
| Re: New documentation of gb.pcre | BB <adamnt42@xxxxxxxxx> |
| New documentation of gb.pcre | Olivier Cruilles <olivier.cruilles@xxxxxxxx> |
| Re: New documentation of gb.pcre | Olivier Cruilles <olivier.cruilles@xxxxxxxx> |